- 积分
- 198
- 威望
-
- 金钱
-
- 注册时间
- 2012-3-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
使用的是lnmp1.2,php5.4.41,开启的是自带的zend opcache7.0.4. 系统是centos6.5
开启後多个网站出现502甚至500,于是将opcache配置参数移到[Zend ZendGuard Loader]的上方,并且将zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/opcache.so" 的双引号去掉,改为:zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/opcache.so。
结果是其他网站如discuz、mediawiki、wecenter搭建的网站恢复正常,但discuz后台显示空白,而moodle搭建的网站出现500现象,及Command line scripts must define CLI_SCRIPT before requiring config.php错误提示。
vi /usr/local/php/var/log/php-fpm*log:
[04-Nov-2016 12:07:39] NOTICE: ready to handle connections
[04-Nov-2016 12:09:45] NOTICE: Finishing ...
[04-Nov-2016 12:09:45] NOTICE: exiting, bye-bye!
[04-Nov-2016 12:09:49] NOTICE: fpm is running, pid 9185
[04-Nov-2016 12:09:49] NOTICE: ready to handle connections
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9196, script '/home/wwrot/www/index.php' (request: "HEAD /index.php") execution timed out (347.266284 sec), terminating
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9194, script '/home/wwrot/www/home.php' (request: "GET /home.php") execution timed out (341.136443 sec), terminating
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9191, script '/home/wwrot/wiki/index.php' (request: "GET /index.php") execution timed out (351.090878 sec), terminating
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9196 exited on signal 15 (SIGTERM) after 900.019190 seconds from start
[04-Nov-2016 12:24:49] NOTICE: [pool www] child 10308 started
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9191 exited on signal 15 (SIGTERM) after 900.023240 seconds from start
[04-Nov-2016 12:24:49] NOTICE: [pool www] child 10309 started
[04-Nov-2016 12:24:49] WARNING: [pool www] child 9194 exited on signal 15 (SIGTERM) after 900.022998 seconds from start
[04-Nov-2016 12:24:49] NOTICE: [pool www] child 10310 started
[04-Nov-2016 12:26:54] NOTICE: Finishing ...
[04-Nov-2016 12:26:54] NOTICE: exiting, bye-bye!
[04-Nov-2016 12:26:57] NOTICE: fpm is running, pid 10921
[04-Nov-2016 12:26:57] NOTICE: ready to handle connections
vi /var/log/slow.log提示文件为空白,php-fpm.conf已经开启该错误记录
vi /home/wwwlogs/nginx_error.log:
2016/11/04 12:06:02 [crit] 7661#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 117.44.16.115, server: 省略, request: "GET /topic/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "省略", referrer: "省略"
2016/11/04 12:06:04 [crit] 7661#0: *3 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 54.223.190.116, server: 省略, request: "GET /news/whzc/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "省略"
2016/11/04 12:26:56 [crit] 10512#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 1.58.136.229, server: 省略, request: "GET 省略网址 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "省略", referrer: "省略"
2016/11/04 12:26:57 [crit] 10512#0: *5 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 123.125.71.109, server: 省略, request: "GET 省略网址 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "省略"
呼叫军哥,已经修改php-fpm的max_children到128,并调节min_children到20,discuz后台显示恢复正常,但moodle错误依旧 |
|