I just picked up a new client whos forum is overloading my error logs. Is there a way to stop his account from adding to the logs? Another words I do not want to see his errors or record them, just from his account.
Thanks
I just picked up a new client whos forum is overloading my error logs. Is there a way to stop his account from adding to the logs? Another words I do not want to see his errors or record them, just from his account.
Thanks
You could add their own ErrorLog statement into their VirtualHost container within httpd.conf and perhaps also set their own LogLevel:
http://httpd.apache.org/docs/mod/core.html#loglevel
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
I added this line to the virtual host in httpd.conf after creating a new file for it (username_error_logs)
ErrorLog |/usr/local/apache/logs/username_error_logs
There are no longer any errors in the error_log from that account, which is half the battle, except this one after restarting apache and there are no error entries being added to the file.
/bin/sh: line 1: /usr/local/apache/logs/username_error_logs: No such file or directory
hmm, any ideas?
Thanks
You shouldn't have the pipe (|) command at the front of the log file name.
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Thanks, it's working great now, no more clutter in the main log. All his errors are going to the assigned file.
<VirtualHost XX.92.XXX.74>
ServerAlias domain.com
ServerAdmin webmaster@domain.com
ErrorLog /usr/local/apache/logs/username_error_logs
DocumentRoot /home2/username/public_html
BytesLog domlogs/domain.com-bytes_log
User username
Group username
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled username
</IfModule>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home2/username/:/usr/lib/php:/usr/local/lib/php:/tmp"