0
在/etc/apache2/apache2.conf
我註釋掉了下面一行:如何禁用apache2錯誤日誌記錄?
# ErrorLog ${APACHE_LOG_DIR}/error.log
這就造成了以下內容:
serv:/var/log/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
我如何禁用不包含錯誤日誌/ CustomLog指令虛擬主機的錯誤日誌?
聽起來像是http://serverfault.com – JJJ 2013-03-08 13:26:41
簡單'觸摸的/ etc/apache2的/日誌/ error_log'問題啓動Apache,你應該罰款。如果你不想記錄,你爲什麼首先取消apache.conf中的ErrorLog指令? – Simon 2013-03-08 13:31:09