Author Topic: How to disable apache error_log in cwp?  (Read 22118 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to disable apache error_log in cwp?
« on: November 03, 2016, 10:44:14 AM »
How to disable apache error_log in cwp?
my server storage allways full in 1-2 weeks

Offline
*****
Re: How to disable apache error_log in cwp?
« Reply #1 on: November 03, 2016, 03:18:27 PM »
you can disable error log from /usr/local/apache/conf/httpd.conf

ErrorLog "logs/error_log" add # before it :
#ErrorLog "logs/error_log"

restart apache

Offline
*
Re: How to disable apache error_log in cwp?
« Reply #2 on: November 03, 2016, 05:09:21 PM »
allready tested in 2 week ago,still not effect bro,my server storage full in 1-2 week becaus error_log

Offline
*****
Re: How to disable apache error_log in cwp?
« Reply #3 on: November 11, 2016, 09:52:22 AM »
Hello,

did you think about fixing the errors instead disable the log?
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to disable apache error_log in cwp?
« Reply #4 on: October 29, 2018, 09:34:31 PM »
/usr/local/apache/conf/httpd.conf

edit

#ErrorLog "logs/error_log"
ErrorLog /dev/null

Offline
*
Re: How to disable apache error_log in cwp?
« Reply #5 on: February 15, 2019, 10:50:55 AM »
In order to disable and turn off the Apache logging, just comment out the log lines in the Apache.

Offline
*
Re: How to disable apache error_log in cwp?
« Reply #6 on: June 03, 2019, 05:26:24 AM »

In order to disable and turn off the Apache logging, just comment out the log lines in the Apache. dissertation writer

Hi,
I've been searching the ways to fix the error, but failed - the changes I applied didn't work. I also tried to change http.conf and direct stuff to /dev/null.
Any solutions here? I can't access the tutorial How to Disable and Turn Off Apache (httpd) Access and Error Log on mydigitallife - the page goes blank.
Thanks.
« Last Edit: June 03, 2019, 05:28:41 AM by RandyBonnette »

Offline
*****
Re: How to disable apache error_log in cwp?
« Reply #7 on: June 23, 2019, 06:54:50 AM »
Check the logs config in /usr/local/apache/conf.d/vhosts/domain.tld.conf
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to disable apache error_log in cwp?
« Reply #8 on: August 24, 2022, 12:11:59 PM »
Check the logs config in /usr/local/apache/conf.d/vhosts/domain.tld.conf
Thank you!

But if you have Nginx+Apache then you need to disable logs in the Apache config files:

/usr/local/apache/conf.d/vhosts/domain.tld.conf
/usr/local/apache/conf.d/vhosts/domain.tld.ssl.conf (if you have SSL enabled)

and in the Nginx config files:

/etc/nginx/conf.d/vhosts/domain.tld.conf
/etc/nginx/conf.d/vhosts/domain.tld.ssl.conf (if you have SSL enabled)

Then restart Apache and Nginx

I don't use Varnish but I guess is the same as Nginx.
You should disable logs in the config files:

/etc/varnish/conf.d/vhosts/domain.tld.conf
/etc/varnish/conf.d/vhosts/domain.tld.ssl.conf

Then restart Varnish
« Last Edit: August 24, 2022, 12:15:03 PM by Aalesund »

Offline
*****
Re: How to disable apache error_log in cwp?
« Reply #9 on: January 23, 2023, 04:42:45 AM »
did you think about fixing the errors instead disable the log?
This is sage advice!
But you can always truncate your error_log to zero bytes:
Code: [Select]
truncate -s0 /wherever/logs/error_logThen consider implementing logrotate so as to keep say 4 weekly (compressed) log files that are turned over and won't grow into huge, out-of-control sizes.