Home > Backend Development > PHP Tutorial > The solution to the problem that Phpstorm cannot run php scripts when installed on Unbuntu

The solution to the problem that Phpstorm cannot run php scripts when installed on Unbuntu

WBOY
Release: 2016-08-08 09:23:46
Original
1187 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template