Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Don7t

    Don7t Member

    Joined:
    Mar 8, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You shouldn't have the pipe (|) command at the front of the log file name.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Don7t

    Don7t Member

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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice