# About how to find your php.exe installed by localwp on Windows

**URL:** <https://community.localwp.com/t/about-how-to-find-your-php-exe-installed-by-localwp-on-windows/23702>\
**Category:** Workflow\
**Tags:** installation, windows-10\
**Created:** [January 3, 2021, 2:14am UTC](https://community.localwp.com/t/about-how-to-find-your-php-exe-installed-by-localwp-on-windows/23702 "2021-01-03T02:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lagacy](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lagacy](https://community.localwp.com/u/lagacy)\
**Post date:** [January 3, 2021, 2:14am UTC](https://community.localwp.com/t/about-how-to-find-your-php-exe-installed-by-localwp-on-windows/23702/1 "2021-01-03T02:14:30Z")

</div>

Hey there!

So i’ve been searching for a way to use the php versions installed by LocalWP with composer.

After some research on different forums(like this one), the only approved answer i got was that local was using linux binaries ([Where is PHP.exe?](https://localwp.com/community/t/where-is-php-exe/5165)) (There is no such thing…Why did someone approved that).

I finally found it, there is 2 places where you can find your php.exe( and other ressources like nginx, appache, mariadb etc.)

1. **C:\Program Files (x86)\Local\resources\extraResources\lightning-services** _(If installed for all users. If not it is in App Data if i remembers,anyway this one is easy just click on you “Local” shortcut and do “Open File Folder” until you get trough the root Local folder)_

There you will find the default ressources that comes already installed by local like:

- php-7.3.5

- mariadb-10.4.10

- Etc…

but you wont find versions that wasn`t natively there like others post installed php versions(like 7.4.1).

1. **C:\Users\[your-user-name]\AppData\Roaming\Local\lightning-services**

There you will find those versions:

- php-7.4.1

- apache-2.4.43

- Etc…

So you can even add them to your path or use this for Composer.

I hope it can help you in some way! 🙂

---

<div class="post-metadata">

**Author:** ![Jayden](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jayden](https://community.localwp.com/u/Jayden)\
**Post date:** [October 17, 2023, 8:25am UTC](https://community.localwp.com/t/about-how-to-find-your-php-exe-installed-by-localwp-on-windows/23702/2 "2023-10-17T08:25:23Z")

</div>

For Mac, the php executable path seems to be something like this:

/Users/results/Library/Application Support/Local/lightning-services/php-8.1.23+0/bin/darwin/bin/php

For any macOS users out there getting an error like this when starting Visual Studio Code:

Cannot validate since a PHP installation could not be found. Use the setting ‘php.validate.executablePath’ to configure the PHP executable.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 17, 2023, 3:14pm UTC](https://community.localwp.com/t/about-how-to-find-your-php-exe-installed-by-localwp-on-windows/23702/3 "2023-10-17T15:14:17Z")

</div>

Closed on October 17, 2023, 3:14pm UTC


