- Forums
- PHP
- How To Disable Error Logs In Apache?
this page will show you about disabling turning off error logs in linux unix server the Want To Know How To Disable Error Logs In Apache With A Linux Server for reporting errors and saving Too Much Space it will stop loging errors warnings scripts code [2081], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Sat Jan 09, 2010
0 Comments
680 Visits
Welcome to Webune Support Forums.
This is in response to a support question:
"I want to know how to disable error logs in apache with a linux server i am asking because its taking too much space on my server and i am running out of disk space atleast this way i can maitain my website, because i have to empty out the files like once a month or else i would run out of disk space."
ANSWER: the answer to this question is easy.
if you have a Webune Linux Dedicated Server, login as superuser, to disable and enable error logging you need to edit or modify the php.ini file in PHP and send this command:
SHELL COMMAND:
nano /etc/php.ini
look for this line:
log_errors = On
change it to
log_errors = Off
save your changes and restart your apache server:
SHELL COMMAND:
/etc/init.d/httpd restart
DONE
NOTICE:
; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.