Rewrite Module Cannot be checked
  • Hi All

    During the installation after extracting the package, I got

    Rewrite Module Cannot be checked

    even I check that LoadModule rewrite_module modules/mod_rewrite.so is enabled on my httpd.conf

    I'm using centos with apache.

    see attached file.

    Any idea?

    BR
  • 12 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hi,

    rewrite module detection does not work if you are using PHP as CGI.
  • Hi,

    what do you mean by using PHP as CGI?

    if yes how to resolve it?

    I'm using ispCP OMEGA as a hosting package for my server.

    BR
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Walid wrote on Sun, 26 December 2010 15:31

    if yes how to resolve it?

    just ignore it. Installation wizard allows you do next step.
  • yes it let me continue
    but after finishing the installation i got error Forbidden! on the main and on the admin
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    try to load home page with out .htaccess (rename it)
  • see attached files

    it gave me error and also /admin gave also error
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    the home page is ok. You need to restore .htaceess and tune rewrite rules for your environment
  • thanks,

    I tested rewriting feature on my apache and I succeed but campsite didn't detected it.

    so how to tune rewrite rules?

    I saw the installation requirements and seemed applied on my apache server, what to do else?

    and how to diagnostic?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    there are two main rules:
    RewriteRule . index.php [L]
    
    and
    RewriteRule . admin.php [L]

    try to add slashes:
    RewriteRule . /admin.php

    try with commented
    #DirectoryIndex index.php index.html
    #Options -Indexes FollowSymLinks -MultiViews
    

    I dont't know exactly what's wrong. In some cases the server environment doesn't accept standard htaccess instructions.
  • I tried all, nothing helped, I think the main problem in this case the "Rewrite Module, cannot detect" that detected during installation!!!!!!
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    As I told the function which returns an apache module list doesn't work in CGI environment. Forget about detection. It's a normal behavior of installation on shared hosting. You should test standard rewrite rules to check how is working the rewrite module on your hosting. You can also ask the hoster's support.
  • thanks,

    I'm the hoster!!!!!!