# How to set up Local's PHP with VS Code on Mac?

**URL:** <https://community.localwp.com/t/how-to-set-up-locals-php-with-vs-code-on-mac/30630>\
**Category:** Support\
**Created:** [March 5, 2022, 11:43am UTC](https://community.localwp.com/t/how-to-set-up-locals-php-with-vs-code-on-mac/30630 "2022-03-05T11:43:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertandrews](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/robertandrews/32/15405_2.png) [@robertandrews](https://community.localwp.com/u/robertandrews)\
**Post date:** [March 5, 2022, 11:43am UTC](https://community.localwp.com/t/how-to-set-up-locals-php-with-vs-code-on-mac/30630/1 "2022-03-05T11:43:18Z")

</div>

I’m not yet a Local user.

How would I set up the PHP that Local ships with for use as in VS Code?

In VS Code, things like Linters/Prettier/PHP Server will depend on knowing the path to the PHP executable on Mac.

I’m familiar with at least two necessary settings;

- phpserver.ip
- php.validate.executablePath

What’s the correct Mac path?

–

Also, general question:  
Why Local and no MAMP/AMPPS/similar?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [June 3, 2022, 11:44am UTC](https://community.localwp.com/t/how-to-set-up-locals-php-with-vs-code-on-mac/30630/2 "2022-06-03T11:44:15Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
