.htaccess issues

somazx

Joined: 2004-07-09
Posts: 2
Posted: Fri, 2004-07-09 20:34

I'm moving a running install of gallery to a new server. Going from Apache 1.3 to 2.0 on Suse 9.1 (apache, php - all installed via Suse packages).

Everything works except for mod_rewrite:

"Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:"

the .htaccess file there is getting interpreted by apache - if I put bogus directives in - it gives a 500 error. Gallery appears to be able to write to the file since its putting the following in:

# BEGIN Gallery section
# (Automatically generated. Do not edit this section)
...

However url rewriting isn't working at all.

Server Info:
http://web.eight13.com/~amk/PhpInfo.php
----
Gallery URL (optional but very useful): http://web.eight13.com/gallery/setup/index.php
Gallery version: 1.4.3-pl1
Apache version: Apache/2.0.49 (Linux/SuSE)
PHP version (don't just say PHP 4, please): 4.3.4
Operating system: Suse 9.1

 
somazx

Joined: 2004-07-09
Posts: 2
Posted: Wed, 2004-07-14 19:58

Well I sort of fixed this myself. I ran secure.sh. Then I replaced the .htaccess file generated by gallery with my old .htaccess file to get the mod_rewrite commands. Then I modified config.php and turned on support for mod_rewrite. Now it works fine. So it seems to me something may be wrong with how Gallery is detecting if .htaccess is working properly.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-07-14 21:08

That error message has been updated in 1.4.4 to reflect what it's actually trying to do. It's trying to verify php_value statements in the .htaccess. The test a little further down the page, explicitly for mod_rewrite is what you want to look at.