- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2011-12-22
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
求助;localhost可以显示"恭喜,LNMP一键安装包安装成功!"点击“探针”页面502报错
虽然看了论坛置顶的502的帮助页,因为本人菜鸟一只,所以也没有看懂,也不知如何排错。
现在不懂是nginx配置问题?还是安装文件没有安装完全问题?或者是权限问题?
我在安装的时候配置的域名是:9itao.cn,并且现在已经更改/etc/hosts下的记录为:(本机IP)192.168.1.3 9itao.cn
求助大家解答一下。
以下是几条访问http://localhost时的nginx_error.log记录!!!- 2011/12/22 22:29:35 [crit] 1572#0: *34 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.103, server: www.9itao.cn, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "9itao.cn", referrer: "http://9itao.cn/"
- 2011/12/22 22:36:36 [crit] 1572#0: *37 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.9itao.cn, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
- 2011/12/22 22:40:24 [crit] 1572#0: *39 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.9itao.cn, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
- 2011/12/22 22:40:28 [crit] 1572#0: *39 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.9itao.cn, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
复制代码 再插一张图片
php-fpm没有安装?!- fz420-Lenovo-G450 ~ # /etc/init.d/php-fpm start
- Starting php_fpm /etc/init.d/php-fpm: 156: /usr/local/php/bin/php-cgi: not found
- failed
- fz420-Lenovo-G450 ~ # ls /usr/local/php/
- etc
- fz420-Lenovo-G450 ~ #
复制代码 怎么办?
以下是我自己手动编译安装PHP后的目录信息!sbin目录木有!是不是PHP编译不完整?
============================================================================================
- fz420@fz420-Lenovo-G450:/usr/local/php$ pwd
- /usr/local/php
- fz420@fz420-Lenovo-G450:/usr/local/php$ ls
- bin etc include lib php
- fz420@fz420-Lenovo-G450:/usr/local/php$ cd bin
- fz420@fz420-Lenovo-G450:/usr/local/php/bin$ ll
- 总用量 16144
- drwxr-xr-x 2 root root 4096 2011-12-23 00:51 ./
- drwxr-xr-x 7 root root 4096 2011-12-23 00:03 ../
- -rwxr-xr-x 1 root root 819 2011-12-23 00:03 pear*
- -rwxr-xr-x 1 root root 840 2011-12-23 00:03 peardev*
- -rwxr-xr-x 1 root root 756 2011-12-23 00:03 pecl*
- -rwxr-xr-x 1 root root 12480696 2011-12-23 00:03 php*
- -rwxr-xr-x 1 root root 4013680 2011-12-23 00:51 php-cgi*
- -rwxr-xr-x 1 root root 2089 2011-12-23 00:03 php-config*
- -rwxr-xr-x 1 root root 4510 2011-12-23 00:03 phpize*
- fz420@fz420-Lenovo-G450:/usr/local/php/bin$
复制代码
[ 本帖最后由 fz420 于 2011-12-24 11:04 编辑 ] |
|