: This article describes how to install Phpstorm in Unbuntu to run php scripts. For more information about PHP tutorials, see. Run the php file. the webpage displays 502 error,
Return to the top-right corner of phpstorm and check that the php interpreter is not configured.
Please ensure that configured php interpreter built as CGI program
The same error occurs after you add a locally installed php interpreter,
I have been searching for the Internet for a long time, turning over a lot of overseas forum websites, and seeing many people with the same problems as me,
However, most of them are windows versions. if you want to install php on your mac, you cannot use the version installed on the system.
Ubuntu and a series of its same-source systems
You only need to enter:
Sudo apt-get install php-cgi
You can.
Reference: http://blog.jetbrains.com/phpstorm/2013/09/built-in-webserver-in-phpstorm/
The above describes how to install Phpstorm in Unbuntu to run php scripts, including some content, and hope to help those who are interested in PHP tutorials.