VPS侦探论坛

 找回密码
 注册
查看: 7201|回复: 2

求助;localhost可以显示"恭喜,LNMP一键安装包安装成功!"点击“探针”页面502报错

[复制链接]
发表于 2011-12-22 22:53:43 | 显示全部楼层 |阅读模式

求助;localhost可以显示"恭喜,LNMP一键安装包安装成功!"点击“探针”页面502报错
虽然看了论坛置顶的502的帮助页,因为本人菜鸟一只,所以也没有看懂,也不知如何排错。

现在不懂是nginx配置问题?还是安装文件没有安装完全问题?或者是权限问题?
我在安装的时候配置的域名是:9itao.cn,并且现在已经更改/etc/hosts下的记录为:(本机IP)192.168.1.3  9itao.cn
求助大家解答一下。

以下是几条访问http://localhost时的nginx_error.log记录!!!
  1. 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/"
  2. 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/"
  3. 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/"
  4. 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没有安装?!
  1. fz420-Lenovo-G450 ~ # /etc/init.d/php-fpm start
  2. Starting php_fpm /etc/init.d/php-fpm: 156: /usr/local/php/bin/php-cgi: not found
  3. failed
  4. fz420-Lenovo-G450 ~ # ls /usr/local/php/
  5. etc
  6. fz420-Lenovo-G450 ~ #
复制代码
怎么办?

以下是我自己手动编译安装PHP后的目录信息!sbin目录木有!是不是PHP编译不完整?


============================================================================================
  1. fz420@fz420-Lenovo-G450:/usr/local/php$ pwd
  2. /usr/local/php
  3. fz420@fz420-Lenovo-G450:/usr/local/php$ ls
  4. bin  etc  include  lib  php
  5. fz420@fz420-Lenovo-G450:/usr/local/php$ cd bin
  6. fz420@fz420-Lenovo-G450:/usr/local/php/bin$ ll
  7. 总用量 16144
  8. drwxr-xr-x 2 root root     4096 2011-12-23 00:51 ./
  9. drwxr-xr-x 7 root root     4096 2011-12-23 00:03 ../
  10. -rwxr-xr-x 1 root root      819 2011-12-23 00:03 pear*
  11. -rwxr-xr-x 1 root root      840 2011-12-23 00:03 peardev*
  12. -rwxr-xr-x 1 root root      756 2011-12-23 00:03 pecl*
  13. -rwxr-xr-x 1 root root 12480696 2011-12-23 00:03 php*
  14. -rwxr-xr-x 1 root root  4013680 2011-12-23 00:51 php-cgi*
  15. -rwxr-xr-x 1 root root     2089 2011-12-23 00:03 php-config*
  16. -rwxr-xr-x 1 root root     4510 2011-12-23 00:03 phpize*
  17. fz420@fz420-Lenovo-G450:/usr/local/php/bin$
复制代码

[ 本帖最后由 fz420 于 2011-12-24 11:04 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-12-23 09:02:20 | 显示全部楼层


php没编译安装成功

建议手动安装看看错误信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-12-24 10:44:58 | 显示全部楼层

原帖由 licess 于 2011-12-23 09:02 发表
php没编译安装成功

建议手动安装看看错误信息


嗯,谢谢指导,已经搜索论坛了,知道是php没有安装好,但是自己重新编译也还是没有装好 。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-16 08:20 , Processed in 0.026293 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表