php-cgi not found
程序员文章站
2022-05-26 20:54:22
...
错误描述
用PHPStorm运行PHP脚本的时候浏览器提示"502 Bad Gateway",PHPStorm提示"php-cgi not found"。
系统为:MacOS X EI Captian
解决方案
- 重新安装PHP,不使用mac默认的PHP。
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
- 在PHPStorm中设置新安装的PHP解释器,PHPStorm->Preferences->PHP中将解释器路径更改为"
/usr/local/php5/bin
"
最后
虽然这个方案会让系统中存在两套PHP,更好的办法当然是下载个跟系统一样的PHP源代码,然后重新编译,但是考虑到时间因素,就先不折腾了。
以上就介绍了php-cgi not found,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
推荐阅读
-
php学习之道:mysql SELECT FOUND
-
nginx - php file not found
-
什么是CGI、FastCGI、PHP-CGI、PHP-FPM、Spawn-FCGI
-
mysql-求助。。java程序访问数据库试用AS别名报错Column 'userid' not found.
-
Spring3有关问题之-org.gjt.mm.mysql.Driver not found
-
MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)
-
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘user_id‘ in ‘where clause‘
-
Idea-SpringBoot:There was an unexpected error (type=Not Found, status=404). /WEB-INF/page//XX.jsp
-
More than one file was found with OS independent path ‘lib/armeabi-v7a/xxxx.so
-
Cannot complete the install because one or more required items could not be found.