PHP server could not launch

I have installed the atom and also installed PHP live server.
But whenever i am starting the php live server, it displays
“PHP Server could not launch
Have you defined the right path to PHP in your settings? Using php”

Please guide me how to resolve this issue.

Kumar Ravi

Edit > Preferences > Packages > PHP Server > Settings > Path to PHP Executable

… and other settings such as path to ini file.

Sorry to say you that inside the edit there is no preference menu.

Guide me the full process that how to do so and what to do, because i am new to use this Atom tool.

Kumar Ravi

Getting to settings varies by platform, but the command Settings View: Open should work in the command palette. Then go to the Packages tab and follow on from there

1 Like

I am writing here as a Ubuntu (Linux) user with PHP Server installed.

When I refer to Edit I refer to Edit in Atom top toolbar.
Drop down the menu to select Preferences (or you can open Preferences directly usingCtrl+Comma keys). Then you will be taken to Settings page where you select Packages, wait for the packages info to load, and then type PHP server to be taken to that package’s settings.

Really you should study the Flight Manual if you are starting.

Hi there, I am getting the same error message under windows, the server path is set as c:/xampp/
I folowed d_l 's instruction but once I am in to PHP package setting what shall I do?? I have tried all sort of addresses indicating where the .exe file is etc . But it is not working. I need xampp to follow a php course, So, i do not need to go crazy over reading all the fligh manual. Still I have read it but I found no solution.
Any Idea?

I had to remind myself of the settings (bearing in mind that I am in Ubuntu and not Windows).

I opened Preferences > Packages > Settings > php-server

and in there is …

  • Path to PHP Executable

  • On windows this might need to be the full path to php.exe

  • Default: php

Thus if you cannot open a normal terminal and run PHP interactively

php -a

then you will need to set the full path to php.exe before php-server will work.

1 Like

d_l thanks so much I got it, the eror was that i did set up the path as c:\xamp\php but i did not indicate the file php.exe so, to make it clear for who is experiencing the same problem the correct path that worked for me was:
Thanks again