ritwickdey / live-server-web-extension

It makes your existing server live. This is a browser extension that helps you to live reload feature for dynamic content (PHP, Node.js, ASP.NET -- Whatever, it doesn't matter)
https://chrome.google.com/webstore/detail/live-server-web-extension/fiegdmejfepffgpnejdinekhfieaogmj/
MIT License
801 stars 332 forks source link

Put the correct paths in my Live Server Web Extension - Error: PHP NOT FOUND #82

Closed asanchezgerani closed 2 years ago

asanchezgerani commented 2 years ago

Good morning, I have a problem about which route to put on the current server in the Live Server Web Extension, it is to mount a local server with PHP without the need to use Xampp or another web server.

Captura de pantalla (978)

Of course I also installed the PHP Server Extension which is the one that lifts the server with PHP but when I run it it tells me: 'PHP not found'

Captura de pantalla (980)

I've already configured my path within the editor, but I can't find the correct path to put in this extension so that it allows me to get the server up once and for all.

I installed direct php and put it in a folder called PHP8 and in it, an Exercises(Ejercicios) Folder where I have my scripts that are the ones I want to build (Something similar to how Xampp is)

Captura de pantalla (979)

asanchezgerani commented 2 years ago

It was resolved.

1.Create the files or folders that we will use within the folder where PHP is installed (Similar to what happens with Xampp's Htdocs and WAMP's www)

2.When Visual Studio Code is opened, the entire folder must be imported, not just the file where we are going to work

3.We set the current server address with our file path, or folder and it works.