How to enable mod_rewrite in for upgrade to 2.x?

jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Sun, 2007-04-22 13:23

I have been following all of the instructions to upgrade to Gallery 2.2 on http://codex.gallery2.org/Gallery2:migration. Under Install Gallery on Step 6. I don't have a GD module listed so I skipped this step and went to step 7. On step 7 I always get:

Apache mod_rewrite

Testing if mod_rewrite is supported by the server.

Warning
Test mod_rewrite manually

For whatever reason, Gallery did not detect a working mod_rewrite setup. If you are confident that mod_rewrite does work you may override the automatic detection. Please, run these two tests to see for yourself.
Works Test
mod_rewrite configuration 1 (with global Options +FollowSymlinks)
mod_rewrite configuration 2 (with local Options +FollowSymlinks)

If one of the two tests gives you a page with the text PASS_REWRITE you are good to go.

The manually test do not work either. So something must be wrong with apache. I looked in apache.conf and I have this module in httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so

and the module is there:
[root@NAS httpd]# ls -l modules/mod_rewrite.so
-rwxr-xr-x 1 root root 59228 Sep 11 2006 modules/mod_rewrite.so

Any ideas on how to debug this in apache 2.2? thanks.

 
jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Mon, 2007-04-23 00:59

Found this solution: http://gallery.menalto.com/node/28412. The key was this: ""AllowOverride FileInfo Options" in you main apache config for mod_rewrite to work."

Once I did this it enabled like a charm!