VPS侦探论坛

 找回密码
 注册
查看: 9557|回复: 6

ubuntu 11.04下phpadmin502错误,如何解决?

[复制链接]
发表于 2011-4-30 18:29:56 | 显示全部楼层 |阅读模式

安装了lnmp包,完毕之后,测试了nginx和php -v 都没问题
直接mysql命令也没问题,直接访问:http://loca lhost/ 也没啥问题

但是访问:http://localhost/phpmyadmin/ 就是 502错误。
查看了一下/home/wwwlogs/nginx_error.log

错误显示如下:
2011/04/30 18:28:27 [crit] 2515#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.xxxxxx.com, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"

这个问题怎么处理?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-30 19:02:53 | 显示全部楼层


补充一下:
http://localhost/p.php
http://localhost/phpinfo.php

都是502错误。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-30 19:46:37 | 显示全部楼层

php没有安装成功
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-30 22:52:41 | 显示全部楼层



如果说php没有安装成功,当我执行:php -v 后,出现:
PHP 5.3.5-1ubuntu7.1 with Suhosin-Patch (cli) (built: Apr 26 2011 22:29:43)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-5-1 08:25:40 | 显示全部楼层

oot@wangbin-ThinkPad-T60:/home/wangbin/下载/lnmp0.7-full# php -v程序“php”尚未安装。  您可以使用以下命令安装:apt-get install php5-cli军哥,怎么处理。

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-5-1 09:02:43 | 显示全部楼层

用 Centos 吧  ,军哥 的集成包在 ubuntu 下比较悲剧
发表于 2011-5-1 13:05:46 | 显示全部楼层

回复 4# 的帖子


这个php应该是ubuntu上自己带的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-20 11:01 , Processed in 0.027066 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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