Php Apache2不记录错误
我有一个挑战,希望能在SO社区的帮助下克服 我的apache服务器不会记录错误,PHP或HTTP 以下是我的一个站点的配置:Php Apache2不记录错误,php,linux,apache,ubuntu,error-log,Php,Linux,Apache,Ubuntu,Error Log,我有一个挑战,希望能在SO社区的帮助下克服 我的apache服务器不会记录错误,PHP或HTTP 以下是我的一个站点的配置: <VirtualHost *:80> ServerName website ServerAdmin webmaster@website.com DocumentRoot /var/www/website <Directory /var/www/website> Options FollowSymLinks MultiViews A
<VirtualHost *:80>
ServerName website
ServerAdmin webmaster@website.com
DocumentRoot /var/www/website
<Directory /var/www/website>
Options FollowSymLinks MultiViews
AllowOverride ALL
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/website.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/website.access.log combined
以前都能正常工作,但现在无法记录,我尝试删除/var/log/apache2中的日志文件并重新启动apache。它会重新创建日志文件,但不会写入日志文件
我做的下一件事是将完全权限和所有权授予apache用户。当这不起作用时,我给每个人读写的权限。这仍然不起作用
与此同时,我甚至对php.ini文件进行了更改,并将php设置为将其错误写入一个单独的文件
我没有对apache的默认设置做任何更改。我只是不确定apache发生了什么…它的日志级别设置为警告。可能没有发生警告级别的事件。请将其更改为“调试”,然后重试