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!

error log directive in httpd.conf

Discussion in 'General Discussion' started by labeach, Jan 5, 2008.

  1. labeach

    labeach Member

    Dec 12, 2007
    Likes Received:
    Trophy Points:
    Hello, I have read that I can add a line such as this:

    ErrorLog /home/mydomain/public_html/logdir/myerrorlog

    to the Virtualhosts section of httpd.conf for each domain I want to have it's own log file. I did this for a domain, distilled update, and build_apache_conf. The line was then gone. The docs in the file say if that happens, I need to edit the templates.

    Looking at the templates, I'm not sure what to add where. How do I go about doing this and if I do this, does it get overwritten the next time I upgrade cpanel?

    Sample httpd.conf section:

    DocumentRoot "/home/sites/domain1/html/"
    ErrorLog /home/mydomain/public_html/logdir/myerrorlog

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