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!

mod_rewrite not enabled

Discussion in 'General Discussion' started by pchard, Sep 13, 2016.

Tags:
  1. pchard

    pchard Registered

    Joined:
    Sep 13, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Root Administrator
    Hello.

    How do I enable mod_rewrite?

    [root@cpanel ~]# httpd -l|grep rewrite
    [root@cpanel ~]#


    It looks to me it's not enabled, and I need some assistance.

    The reason for why I'm asking is this:

    public_html/.htaccess: </IfModule>IndexOptions without matching <IfModule>IndexOptions section
     
    #1 pchard, Sep 13, 2016
    Last edited by a moderator: Sep 13, 2016
  2. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    97
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    If you are on EA3, you need 'httpd -M', as these modules are no longer compiled statically. In EA4, mod_rewrite is enabled by default.

    Code:
    root@cpanel [~]# httpd -M | grep rewri
     rewrite_module (shared)
    
     
  3. Najbox

    Najbox Registered

    Joined:
    Oct 14, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    cPanel Access Level:
    Root Administrator

    I have the same problem and I use EA4.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,954
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Najbox,

    Could you provide some more information about the problem you are currently facing? Do you not see similar output when running the "httpd -M | grep rewrite" command on your system?

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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