mod_rewrite is not enabled.

616 views
Skip to first unread message

jdoc...@gmail.com

unread,
Jul 23, 2013, 5:10:25 PM7/23/13
to omek...@googlegroups.com
I'm having another issue with my Omeka upgrade from 1.2.1 to 2.0.4...

When I point via the browser to the "/install" directory I get this error:

Installation Error
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.

I have set all entries in my /etc/httpd/conf/httpd.conf to "AllowOverride All"

I have set these settings in all three of my .htaccess files:

- /var/www/html/.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
# This ensures that Apache will not mistake the URL mysite.com/archive/ for a request for the physical directory that stores files
RewriteCond %{REQUEST_URI}  .+\/archive\/
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

RewriteBase /


- /var/www/html/admin/.htaccess

RewriteEngine on

# If know that mod_rewrite is enabled, but you are still getting mod_rewrite errors,
# uncomment the line below and replace "/admin/" with your install directory.

RewriteBase /admin/
RewriteBase /install/

RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php


- /var/www/html/install/.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
# This ensures that Apache will not mistake the URL mysite.com/archive/ for a request for the physical directory that stores files
RewriteCond %{REQUEST_URI}  .+\/archive\/
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

RewriteBase /install


I can't figure it out...

Any help would be appreciated...

thanks!

John Flatness

unread,
Jul 23, 2013, 6:58:41 PM7/23/13
to omek...@googlegroups.com
All those .htaccess files look like ones from Omeka 1.x, not 2.0.

With Omeka 2, you should only have one .htaccess file, in the site root.
There should not be an .htaccess in the admin or install directories.
It's also important that the root .htaccess be the one from the Omeka 2
zip you downloaded, not your old 1.x one.

-John

P.S.: Though Google makes it look like a forum on the web, this is a
mailing list, so please don't post the same or similar messages on
multiple threads. Subscribers get emails for every message posted.
> --
> You received this message because you are subscribed to the Google
> Groups "Omeka Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omeka-dev+...@googlegroups.com.
> To post to this group, send email to omek...@googlegroups.com.
> Visit this group at http://groups.google.com/group/omeka-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

jdoc...@gmail.com

unread,
Jul 24, 2013, 3:32:35 PM7/24/13
to omek...@googlegroups.com
John,

Thanks for helping me fix this! Sorry about the double postings. I did not realize you got the forum and the groups postings...
Reply all
Reply to author
Forward
0 new messages