In server audit in studio it says "rewrite_module - UNDEFINED"

I am using the latest version of Cpanel with php 7.2 and this message appears in the server audit section in studio dashboard, but I know the rewrite module is there and working on my server.

"Web-server: Apache

  • rewrite_module - UNDEFINED (try to check manually: apachectl -M 2>&1 | grep rewrite_module)"
  • 957
  • More
Replies (7)
    • If you find an answer to that let me know. I am trying to install manually through SSH instead of Softalicious this time because I got a similar error even when my Apache had that module active. 

      • Me too, but do not worry about it if everything works well on your site, I think Leonid had explained that according to some parameters servers it can not be detected by php code.

        • Agree with Baloo, I just posted about this on Boonex forums when someone raised the issue.

          Boonex Forum Post

          • My installation is saying that, too, but rewrite module is installed.  Dashboard also says Web server - undefined.  None of my URLs work.  I've even tried turning off permalinks, and it ignores the settings.  /page/login /page/anything gives me a 404 page not found, and URL structure doesn't change with permalink set to off.  Don't want to log out of the studio for fear I can't get back in.

            Is there supposed to be some kind of rewrite rules put into the .htaccess file? Mine is pretty much blank except for php.ini directives.  If the installer is supposed to put some in, it didn't do it.

            (Running 10.0.0.B1 since there doesn't seem to be a download link for version 9 available)

            • I had to go looking around just to find the rewrite rules that are supposed to be there, and luckily I found a post from a user that wrote them since management is not graciously posting them nor is this info documented anywhere in the installation steps.  If the installer is supposed to write the rules, then it should always do it, especially if you are assuming that AllowOverrides be set to All in order to use .htaccess files.

              So here to reiterate for those who get the /page/whatever 404 not found error after installation, and you're sure you have rewrites enabled, then check your .htaccess file.  At least these following rules should be there:

              RewriteRule ^m/(.*)$ modules/index.php?r=$1 [QSA,L]

              RewriteRule ^page/(.*)$ page.php?i=$1 [QSA,L]

              RewriteRule ^s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+) storage.php?o=$1&f=$2 [QSA,L]

              If you don't see these rules, edit your .htaccess file to include them.

              • nginx server will have server-undefine.

                • Many thanks to @designer1969 you saved me and its worked for me by using your solution.

                  Login or Join to comment.