Error 502 when accessing PHP file by phpstorm browser

Knowledge map advanced must read: read how large-scale map data efficient storage and retrieval>>>

Recently, when configuring lamp environment on Ubuntu, editing PHP file on phpstorm and browsing, the browser always prompts 502 bad gateway. Baidu has been unable to find a solution, and finally found it on stackoverflow, as follows:

sudoapt-getinstallphp5-cgi

Depressed, it turned out that I installed this guy less when I installed PHP

Similar Posts: