我遇到了一种奇怪的行为。我正在使用PHP运行NGINX。
当我在php.ini中启用PHP错误日志时
error_log = /var/www/logs/php-scripts.error.log
log_errors = on
错误日志按预期写入:
...
[15-Feb-2017 19:35:28 Etc/UTC] PHP Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /var/www/html/index.php on line 7
但是,同时,在我的
我有一个php docker应用程序运行在多个容器中,如
j_php-fpm_1和j_nginx_1
j_php-fpm_1是包含整个项目的容器(Magento / php,但这与此无关)。
我的问题如下
在应用程序中的某个时候,我触发了A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.,这意味着我的php中甚至在进入框架之前就有一个服务器错误。
因此,我已经进入了我的j
我已经将PHP配置为直接使用日志文件(即不使用syslog)。我注意到,我偶尔会收到非常奇怪的消息,这些消息缺乏正常的PHP日志记录信息。通常,PHP日志条目看起来有点像这样:
[26-May-2011 13:43:07] PHP Notice: blahblahblah in /var/www/foo.php on line 21
但我得到的条目是这样的:
[26-May-2011 13:43:07] Not Found
最近:
[26-May-2011 13:36:03] tweetlyUpdater_oldpost-edited-skippages: 1
Twe声是我们已经安装的东西,我
我在码头容器中有php-fpm,在Dockerfile中,我编辑fpm配置文件(/etc/php5/fpm/pool.d/www.conf)以设置访问日志以转到/var/log/fpm-access.log,而错误日志设置为转到/var/log/fpm-php.www.log:
# Do some php-fpm config
# Redirect worker stdout and stderr into main error log
# Activate the fpm access log
# Enable display errors
# Enable the error lo