How to disable log - httpd,directadmin??

wazburn

Verified User
Joined
Nov 26, 2011
Messages
70
hi DA ppl,


How do I disable ?


1. im getting big size log files on /var/log/directadmin

yyyy-month-day.log
yyyy-month-day.log
yyyy-month-day.log




2. im also getting big size log files on /var/log/httpd/domains

website.com.error.log

website.com.bytes


3. im also want to disable mysql err log files if this is possible.
 
You need to ask the following question to yourself: "Why do I want to disable log files?". Log files are very useful to discover errors and repair crashed services.

Use the following values in your directadmin.conf:
log_rotate_size=5 (Depreciated value for apache log size before rotation. Logs are rotated each tally because webalizer requires a closed log before processing)
logs_to_keep=5 (Number of apache logs to store for Users in /home/user/domains/domain.com/logs'
 
Hello,

1. im getting big size log files on /var/log/directadmin

yyyy-month-day.log
yyyy-month-day.log
yyyy-month-day.log

It is /etc/logrotate.d/directadmin which takes care to delete old logs from directadmin. Please make sure you've got correct permissions on the file /etc/logrotate.d/directadmin, it's recommended to have 644. If you have 755 then logrotate will skip the file with complaining on wrong permissions of the file; and directadmin logs will stay not rotated.
 
Hello,



It is /etc/logrotate.d/directadmin which takes care to delete old logs from directadmin. Please make sure you've got correct permissions on the file /etc/logrotate.d/directadmin, it's recommended to have 644. If you have 755 then logrotate will skip the file with complaining on wrong permissions of the file; and directadmin logs will stay not rotated.



[root@server logrotate.d]# ls -la
total 56
drwxr-xr-x. 2 root root 4096 Aug 5 00:01 .
drwxr-xr-x. 85 root root 12288 Aug 11 00:19 ..
-rw-r--r-- 1 root root 295 Oct 26 2011 apache
-rwxr-xr-x 1 root root 350 Aug 4 23:58 directadmin
-rw-r--r--. 1 root root 103 Nov 26 2013 dracut
-rwxr-xr-x 1 root root 112 Jul 19 2011 exim
-rw-r--r-- 1 root root 789 Mar 25 2013 mysql
-rw-r----- 1 root named 170 Jan 20 2014 named
-rw-r--r-- 1 root root 216 Aug 4 23:59 proftpd
-rw-r--r--. 1 root root 329 Jul 17 2012 psacct
-rw-r--r--. 1 root root 210 Aug 15 2013 syslog
-rw-r--r--. 1 root root 100 Feb 22 2013 yum

directadmin and exim seems 0755
 
I'm not sure whether or not new installations has this issue. Is that a new install of directadmin in your case?
 
Hello, is there a possiblity to turn off the stats and logs within a domain? /home/USER/domains/DOMAIN/logs and stats
 
Hello, is there a possiblity to turn off the stats and logs within a domain? /home/USER/domains/DOMAIN/logs and stats

Hello,

Directadmin does not have such a feature. It should be addressed via a template customization.
 
Back
Top