VPS侦探论坛

 找回密码
 注册
查看: 6489|回复: 3

升级nginx和php后,安装eaccelerator,网站访问空白

[复制链接]
发表于 2012-2-4 20:53:58 | 显示全部楼层 |阅读模式

先用upgrade_php.sh升级php到5.3.10,再用upgrade_nginx.sh升级nginx到1.0.11,网站访问一切正常;
最后用lnmp0.8中的eaccelerator.sh安装,安装完成后网站访问一片空白,./lnmp restart如下:

Restarting LNMP...
Starting Nginx...
Test Nginx configure...
Nginx program is reloding!
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Starting php-fpm Failed loading /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so:  /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so: cannot open shared object file: No such file or directory
Zend Optimizer requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Optimizer.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-2-4 22:34:32 | 显示全部楼层


看了看php.ini,文件中并没有no-debug-non-zts-20060613,只好傻傻地建个目录,把 /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626复制到/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613,这回正常了,但是谁能告诉我原因啊,这个设置是写在那个文件里面的?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-2-5 03:15:22 | 显示全部楼层

换了台机器,重新安装lnmp0.8后,再分别升级nginx和php到最新版本,最后安装eaccelerator,没有出现异常
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-2-5 08:27:43 | 显示全部楼层



原因就是php版本判断错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 14:53 , Processed in 0.025857 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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