# Is a local/native install of PHP/MySQL required for XDebug (on MacOS)?

**URL:** <https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364>\
**Category:** Local Add-ons\
**Tags:** mac, php-error\
**Created:** [November 5, 2024, 7:36am UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364 "2024-11-05T07:36:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_dub](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/g_dub/32/23075_2.png) [@g\_dub](https://community.localwp.com/u/g_dub)\
**Post date:** [November 5, 2024, 7:36am UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364/1 "2024-11-05T07:36:43Z")

</div>

Hi… I’m used to running WordPress on Docker, but wanted to try LocalWP. OOTB the install and setup work seamlessly… I’m a bit confused about ‘where is the PHP executable’ though… is it accessible from outside localWP? TIA

---

<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:** [November 5, 2024, 2:15pm UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364/2 "2024-11-05T14:15:00Z")

</div>

This post and thread might provide some insight you need @g_dub!

> [@How to get PHP executable](https://community.localwp.com/t/how-to-get-php-executable/44019/5):
>
> @picklebrownie The PHP path is determined dynamically depending on the OS and system architecture, which is why it’s not available on the site object. To display it in a component, you could use an IPC call. For example: main.ts import \* as LocalMain from '@getflywheel/local/main'; export default function (context: LocalMain.AddonMainContext): void { const { electron } = context; const { ipcMain } = electron; const { siteData, lightningServices } = LocalMain.getServiceContainer().cradle; …

---

<div class="post-metadata">

**Author:** ![g\_dub](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/g_dub/32/23075_2.png) [@g\_dub](https://community.localwp.com/u/g_dub)\
**Post date:** [November 5, 2024, 4:19pm UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364/3 "2024-11-05T16:19:07Z")

</div>

That’s amazing!!! I now have VSCode XDebug working for this LocalWP site now know the PHP executable for that site (e.g. php.validate.executablePath).

LocalWP is now working perfectly for me. Thanks for the support from all… (esp @Nick-B )  
Gary

---

<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:** [November 5, 2024, 4:23pm UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364/4 "2024-11-05T16:23:08Z")

</div>

We love to hear it @g_dub! Happy Developing 💚

---

<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:** [November 7, 2024, 4:23am UTC](https://community.localwp.com/t/is-a-local-native-install-of-php-mysql-required-for-xdebug-on-macos/45364/5 "2024-11-07T04:23:32Z")

</div>

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