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!

AllowOverride Apache 2.4 question

Discussion in 'EasyApache' started by xanadu, Mar 29, 2017.

  1. xanadu

    xanadu Member

    Sep 25, 2006
    Likes Received:
    Trophy Points:
    We recently transferred a site using the Transfer tool (which we really like) but after the transfer the website kept giving server error messages. The particular website, predominately PHP, apparently needs the httpd.conf file edited to AllowOverride All to enable their .htaccess file to make changes.

    In Apache 2.2 the default was AllowOverride All but in Apache 2.4 the default is AllowOverride None. My question is by overriding the default in Apache 2.4 are we risking security issues?

    Thanks for any guidance you can give us.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    You can find discussion on the security aspect of that setting on the following StackOverflow threads:

    Security question about httpd.conf AllowOverride setting
    AllowOverride security issues

    Information about how this setting works is documented at:

    core - Apache HTTP Server Version 2.4

    Note there's also some performance issues to consider. In cPanel 64, the following option is available under "WHM Home » Service Configuration » Apache Configuration » Global Configuration":

    Optimize .htaccess (AllowOverride)

    Per it's description:

    Reduce the paths Apache will check for “.htaccess” files. Reducing the number of places Apache has to look for .htaccess files can significantly boost server performance.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    xanadu likes this.

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