The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache error logs & client

Discussion in 'EasyApache' started by Don7t, Jul 10, 2005.

  1. Don7t

    Don7t Member

    Joined:
    Mar 8, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  3. Don7t

    Don7t Member

    Joined:
    Mar 8, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You shouldn't have the pipe (|) command at the front of the log file name.
     
  5. Don7t

    Don7t Member

    Joined:
    Mar 8, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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"
     
Loading...

Share This Page