看一按指定贴502排查方法启用php慢日志和错误日志看看作者: yanqzh 时间: 2016-11-4 13:46
php慢日志和错误日志已经启用,php的错误日志是放在什么位置的呢
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
error_log = php_errors.log
; Log errors to syslog (Event Log on Windows).
;error_log = syslog作者: yanqzh 时间: 2016-11-4 13:49
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors = Off作者: yanqzh 时间: 2016-11-4 13:49
; Development Value: On
; Production Value: On
; http://php.net/log-errors
log_errors = On作者: yanqzh 时间: 2016-11-4 13:54
查看到错误日志了,moodle下日志错误:
[04-Nov-2016 13:04:33 PRC] PHP Warning: require_once(/home/wwrot/moodle/moodle/cache/lib.php): failed to open stream: No such file or directory in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 13:04:33 PRC] PHP Fatal error: require_once(): Failed opening required '/home/wwrot/moodle/moodle/cache/lib.php' (include_path='/home/wwrot/moodle/moodle/lib/pear:.:/usr/local/php/lib/php') in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 13:04:35 PRC] PHP Warning: require_once(/home/wwrot/moodle/moodle/cache/lib.php): failed to open stream: No such file or directory in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 13:04:35 PRC] PHP Fatal error: require_once(): Failed opening required '/home/wwrot/moodle/moodle/cache/lib.php' (include_path='/home/wwrot/moodle/moodle/lib/pear:.:/usr/local/php/lib/php') in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 13:04:35 PRC] PHP Warning: require_once(/home/wwrot/moodle/moodle/cache/lib.php): failed to open stream: No such file or directory in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 13:04:35 PRC] PHP Fatal error: require_once(): Failed opening required '/home/wwrot/moodle/moodle/cache/lib.php' (include_path='/home/wwrot/moodle/moodle/lib/pear:.:/usr/local/php/lib/php') in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 11:47:01 PRC] PHP Warning: require_once(/home/wwrot/moodle/moodle/cache/lib.php): failed to open stream: No such file or directory in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 11:47:01 PRC] PHP Fatal error: require_once(): Failed opening required '/home/wwrot/moodle/moodle/cache/lib.php' (include_path='/home/wwrot/moodle/moodle/lib/pear:.:/usr/local/php/lib/php') in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 11:48:02 PRC] PHP Warning: require_once(/home/wwrot/moodle/moodle/cache/lib.php): failed to open stream: No such file or directory in /home/wwrot/moodle/moodle/lib/setup.php on line 606
[04-Nov-2016 11:12:44 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 11:24:53 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 11:25:42 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 11:35:22 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 11:41:12 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 12:01:02 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 12:20:33 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 12:49:23 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14
[04-Nov-2016 12:59:34 PRC] PHP Notice: Undefined variable: _SERVER in /home/wwwroot/discuz/archiver/index.php on line 14作者: yanqzh 时间: 2016-11-4 13:59
这是打开探针页时返回的错误:
[04-Nov-2016 10:52:32 Etc/GMT-8] PHP Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli prepare error: MySQL server has gone away' in /home/wwwroot/ask/system/Zend/Db/Statement/Mysqli.php:77
Stack trace:
#0 /home/wwwroot/ask/system/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT `aws_ses...')
#1 /home/wwwroot/ask/system/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT `aws_ses...')
#2 /home/wwwroot/ask/system/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT `aws_ses...')
#3 /home/wwwroot/ask/system/Zend/Db/Table/Abstract.php(1577): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/wwwroot/ask/system/Zend/Db/Table/Abstract.php(1392): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/wwwroot/ask/system/Zend/Db/Table/Abstract.php(1357): Zend_Db_Table_Abstract->fetchAll('((`aws_sessions...')
#6 [internal function]: Zend_Db_Table_Abstract->find('9mslh1ih2daoh0f...')
#7 /home/wwwroot/ask/system/Zend in /home/wwwroot/ask/system/Zend/Db/Statement/Mysqli.php on line 77作者: yanqzh 时间: 2016-11-6 18:50
军哥,麻烦回一下吖,谢谢!作者: licess 时间: 2016-11-7 09:49
6楼 日志里显示你网站目录文件不存在,检测提示的 /home/wwrot/moodle。。。的目录和文件