Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    24

    Default Apache error logs & client

    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

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    24

    Default

    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

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    24

    Default

    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"

Similar Threads & Tags
Similar threads

  1. host command at apache error logs????? what is this??
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-13-2007, 12:36 PM
  2. apache error logs
    By rooshi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-10-2005, 11:34 AM
  3. apache error logs
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-29-2005, 12:36 AM
  4. Software for analyzing apache error logs?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-07-2003, 10:15 AM
  5. Upgraded Apache -- New error in logs
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-01-2002, 09:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube