我有点过时的托管公司。我有一个PHP/Apache安装程序。PHP和Apache - 我该如何阻止写入日志的东西太多
由于某些原因,它不断写入日志文件。有两个日志文件:
访问日志和
是error_log我从来没有考虑访问日志,那么有没有可以打开或关闭该打开将停止所有写入访问日志一些Apache的配置?
而对于error_log,我在那里非常随机地得到很多东西。
[Sun May 20 00:56:28 2012] [error] [client 92.96.145.124] PHP Notice: Undefined index: photo_path in /home/webadmin/problemio.com/html/utils/api/somefile.php on line 398
[Sun May 20 00:56:28 2012] [error] [client 92.96.145.124] PHP Notice: Undefined index: photo_path in /home/webadmin/problemio.com/html/utils/api/somefile.php on line 398
但这些都是通知。我怎么才能让它显示警告和错误?
谢谢!
以下是有关日志文件的Apache文档:http://httpd.apache.org/docs/logs.html – icktoofay