[ 本帖最后由 konloned 于 2011-1-22 17:22 编辑 ]作者: konloned 时间: 2011-1-22 17:01
忘了说了,我安装的是lnmp0.5完整版。作者: ttxx 时间: 2011-1-23 13:04
没用过debian,一直用centos,,,用的是0.4,没发现你说的问题
刚买了个VPS,正在安装0.5,一会儿看有你说的问题没。我也都是用完整版作者: ttxx 时间: 2011-1-23 13:05
另外你的VPS是不是最小化安装的,如果不是,最好是用最小化安装,这样比较方便。作者: licess 时间: 2011-1-23 21:00 标题: 回复 4# 的帖子 /usr/local/php/下面有什么内容?作者: konloned 时间: 2011-1-23 22:38 标题: 回复 5# 的帖子 /usr/local/php/下只有有一个etc文件夹,etc文件夹内只有两个文件:php.ini 和php-fpm.conf,就没有其它的了作者: konloned 时间: 2011-1-23 22:42 标题: 回复 4# 的帖子 最小化安装和完整安装我都试过了,涛声依旧。作者: mzppfen 时间: 2011-1-23 22:46
我今天安装也是这样子,我用一台服务器最小化安装的Centos5.4 32bit
安装LNMP是用在线安装的。
安装过程没看到有什么错误,安装完毕,打不开安装成功的页面,查看/usr/local/php/跟楼上一样的。。
应该是没安装成功~作者: konloned 时间: 2011-1-23 22:53
我这里 /root/lnmp restart 之后提示:
konloned:~# /root/lnmp restart
=========================================================================
Manager for LNMP V0.5 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
Shutting down MySQL..
Starting MySQL..
/root/lnmp: line 70: /usr/local/php/sbin/php-fpm: 没有那个文件或目录
konloned:~#
我安装过无数次,usr/local/php/ 下面从来没有过sbin目录,只有一个etc目录,etc目录内只有两个文件:php.ini 和php-fpm.conf,真的很郁闷。完整包安装/在线安装都是如此。作者: konloned 时间: 2011-1-24 03:11
我估计是PHP没有安装成功,就手动安装PHP:
konloned:~/lnmp0.5# gzip -d ./suhosin-patch-5.2.14-0.9.7.patch.gz
gzip: ./suhosin-patch-5.2.14-0.9.7.patch already exists; do you wish to overwrite (y or n)? y <-------------我这里输入y覆盖!!
not overwritten
为什么会不能覆盖呢?我用的是root登录,应该不是权限不够的问题吧?
konloned:~# /root/lnmp restart
=========================================================================
Manager for LNMP V0.5 , Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
Shutting down MySQL..
Starting MySQL..
/root/lnmp: line 70: /usr/local/php/sbin/php-fpm: 没有那个文件或目录
konloned:~#
意思就是PHP一直没有安装成功?PHP目录下仍然是只有etc文件夹和文件夹下的php.ini和php-fpm.conf文件,sbin目录仍然没有创建成功。
wwwlogs目录下的nginx_error.log内容如下:
2011/01/24 14:45:12 [emerg] 22489#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/24 14:45:12 [emerg] 22489#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/24 14:45:12 [emerg] 22489#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/24 14:45:12 [emerg] 22489#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/24 14:45:12 [emerg] 22489#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2011/01/24 14:45:12 [emerg] 22489#0: still could not bind()
2011/01/24 14:50:17 [crit] 2506#0: *1 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.abc.com, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/24 14:50:23 [crit] 2506#0: *1 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.abc.com, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/24 14:50:26 [crit] 2506#0: *1 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.abc.com, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/24 15:14:17 [crit] 3179#0: *5 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.abc.com, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/24 15:14:21 [crit] 3179#0: *5 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.abc.com, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"
2011/01/24 15:14:24 [crit] 3179#0: *5 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.abc.com, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"