ubuntu 11.04下phpadmin502错误,如何解决?
安装了lnmp包,完毕之后,测试了nginx和php -v 都没问题直接mysql命令也没问题,直接访问:http://loca lhost/ 也没啥问题
但是访问:http://localhost/phpmyadmin/ 就是 502错误。
查看了一下/home/wwwlogs/nginx_error.log
错误显示如下:
2011/04/30 18:28:27 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/"
这个问题怎么处理? 补充一下:
http://localhost/p.php
http://localhost/phpinfo.php
都是502错误。 php没有安装成功 如果说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 oot@wangbin-ThinkPad-T60:/home/wangbin/下载/lnmp0.7-full# php -v程序“php”尚未安装。您可以使用以下命令安装:apt-get install php5-cli军哥,怎么处理。 用 Centos 吧,军哥 的集成包在 ubuntu 下比较悲剧
回复 4# 的帖子
这个php应该是ubuntu上自己带的。
页:
[1]