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 distiller ErrorLog directives

Discussion in 'EasyApache' started by grindlay, Jan 13, 2008.

  1. grindlay

    grindlay Active Member

    Joined:
    Dec 8, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, Scotland
    cPanel Access Level:
    Root Administrator
    Hi
    For some reason, the distiller is choking on the following in httpd.conf:

    ErrorLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/error_log.%Y-%m-%d 5M"

    Ending apache_conf_distiller
    root@ds [~]# /usr/local/cpanel/bin/apache_conf_distiller --update
    Unable to match directive: ErrorLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/error_log.%Y-%m-%d 5M"

    I tried putting all my log directives (including ErrorLog) in /conf/custom_log.conf and Including from the main section but that ain't working.

    Any ideas?

    If you have Log directives in an include, are they overridden by later directives in the main httpd.conf file ? I'm guessing the answer is Yes.
     
  2. grindlay

    grindlay Active Member

    Joined:
    Dec 8, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, Scotland
    cPanel Access Level:
    Root Administrator
    I think I found a solution to this one:

    Instead of having the ErrorLog directive in the main section of httpd.conf, put your customised version in [Pre VirtualHost Include]
    You can do this through WHM >> Service Configuration >> Apache Setup or manually in
    /apache/conf/includes/pre_virtualhost_2.conf.
     
    #2 grindlay, Jan 16, 2008
    Last edited: Jan 16, 2008
Loading...

Share This Page