Forums » Mod_rewrite enabled?

RSS feed for this topic

Info

  1. Trying to install another instance of Omeka on lw3_dev (146.96.128.37)/library2 and get this message:

    mod_rewrite is not enabled
    Apache's mod_rewrite extension must be enabled for Omeka to work properly. Please enable mod_rewrite and try again.

    This is message is peculiar because for a different project, I was successfully able to install Omeka on the same server:

    http://library2.gc.cuny.edu/erie_canal/

  2. Hard to say. If the Apache software was updated or modified in some way since you installed the last site some of the settings might have changed.

    Regardless, mod_rewrite must be enabled in Apache for Omeka to be installed properly.

    (BTW, I cannot access the site URL you sent. Is it only accessible through CUNY networks?)

  3. yea, a development server not on the dmz.

  4. figured it out. although i did not encounter last time on the testing server with my previous collection, it appears that when over-riding the etc/hosts file (I used /etc/hosts to simulate how the site will work in production), Omeka believes that mod_rewrite is not enabled.

    So I used the machines real host name library2 rather than library and was able to install.

    I would still like to find out how to modify .htacces to handle this type of scenario.

  5. Omeka checks to see if mod_rewrite is enabled by getting a page from it self much like a browser would but it may fail to find itself if the host name you are using isn't found in the DNS system.

    I was able to short circuit this by temporarily altering the file:
    application/models/Installer/Requirements.php
    I changed:

    //We are trying to retrieve this URL.
    } else if (!$modRewrite = file_get_contents($modRewriteUrl, false, $context)) {

    to

    //We are trying to retrieve this URL.
    } else if (!$modRewrite = TRUE) {

Reply

You must log in to post.