Run the php file, and the web page displays a 502 error.
Back to phpstorm. The upper right corner shows that the php interpreter is not configured.
please ensure that configured php interpreter built as CGI program
It still persists after adding the locally installed php interpreter. It’s the same error.
I’ve been searching online for a long time. I’ve looked through many foreign forums and websites, and I’ve seen many people who have encountered the same problem as me.
But most of them are versions on Windows. On Mac, they say you have to install it yourself. php, you cannot use the system-installed version
Ubuntu and a series of its homologous systems
Just enter in the console:
sudo apt-get install php-cgi
then
Reference URL: http ://blog.jetbrains.com/phpstorm/2013/09/built-in-webserver-in-phpstorm/
The above introduces the solution to the problem that Unbuntu cannot run php scripts when installing Phpstorm, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.