g_dub
November 5, 2024, 7:36am
1
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
Nick-B
November 5, 2024, 2:15pm
2
This post and thread might provide some insight you need @g_dub !
@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;
…
g_dub
November 5, 2024, 4:19pm
3
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
Nick-B
November 5, 2024, 4:23pm
4
We love to hear it @g_dub ! Happy Developing