# How to get PHP executable

**URL:** https://community.localwp.com/t/how-to-get-php-executable/44019
**Category:** Local Add-ons
**Tags:** add-on
**Created:** [August 3, 2024, 4:21pm UTC](https://community.localwp.com/t/how-to-get-php-executable/44019 "2024-08-03T16:21:23Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [August 3, 2024, 4:31pm UTC](https://community.localwp.com/t/how-to-get-php-executable/44019/2 "2024-08-03T16:31:51Z")

</div>

These might be helpful for you @picklebrownie

> [@PHP Location To Solve VSCode Error](https://community.localwp.com/t/php-location-to-solve-vscode-error/31245/5):
>
> And in macOS is the php executable file path. /Applications/Local.app/Contents/Resources/extraResources/lightning-services/php-7.4.1+18/bin/darwin/bin/php

> [@VS Code + Xdebug + PHP Linter](https://community.localwp.com/t/vs-code-xdebug-php-linter/25234/3):
>
> A couple of things: You don’t mention it explicitly, but if you’re eventually wanting to use Xdebug’s step debugger, you might be interested in installing the [Xdebug + VS Code](https://localwp.com/add-ons/xdebug-vscode) Local addon. To your specific question of where the PHP binary lives. You’re correct that in Local Classic (\<3.3.x) PHP was a linux binary within a Docker container, that was within a VM Under Local lightning, there’s no virtual machine, but each site does have its own configuration for the various pieces of server…

---

_[View the full topic](https://community.localwp.com/t/how-to-get-php-executable/44019)._
