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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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