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!

Enable mod_write debug logging

Discussion in 'General Discussion' started by regisit, Jun 30, 2017.

Tags:
  1. regisit

    regisit Active Member

    Joined:
    Jul 31, 2013
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    As of Apache 2.4, we can no longer enable mod_rewrite logging in .htaccess. Now requires RewriteLogLevel specified in virtual host configuration. So I've followed the guides and added the following file containing "RewriteLogLevel 3".

    /user/local/apache/conf/userdata/std/2_4/[account]/[domain]/rewrite.conf

    Restarted Apache and checking /user/local/apache/logs/error_log, there's nothing logged to do with rewrites.

    What am I missing?
     
  2. regisit

    regisit Active Member

    Joined:
    Jul 31, 2013
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    How is this custom file included? In httpd.conf, in each virtual host entry there are the lines:

    # To customise this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/std/2_4/[account]/[domain]/*.conf"

    That include line is commented out and there are warnings galore in httpd.conf not to modify it. So how/where does our custom conf get included for a particular virtual host?
     
  3. regisit

    regisit Active Member

    Joined:
    Jul 31, 2013
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    My mistake: not correct format for 2.4. Should have been "LogLevel alert rewrite:trace3". Also needed to redistill (whatever that is) before it picked up the custom changes i.e. went to Apache Global Config, saved and restarted.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. regisit

    regisit Active Member

    Joined:
    Jul 31, 2013
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    cPanelMichael likes this.
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