error in .htaccess

Locust

Joined: 2002-09-03
Posts: 2
Posted: Tue, 2002-09-03 16:30

When i click on "configuration wizard" at the startup screen (after running configure.sh), i get an internal server error. I looked up the error in the server error log and i found "gallery/setup/.htaccess: php_value not allowed here". Can anybody tell what causes this error or even better how i can solve this? I hope it has nothing to do with the server configuration because i haven't got any control over that.
Thanks!

 
Locust

Joined: 2002-09-03
Posts: 2
Posted: Tue, 2002-09-03 16:56

Sorry, i resolved it already by deleting .htaccess. Does this have any consequences for the security of the gallery though?

 
jamirae

Joined: 2002-09-04
Posts: 5
Posted: Wed, 2002-09-04 05:14

I had the same problem! and According to the FAQ:
-------------------------

4.2: I've unpacked Gallery and run the configure.sh script, but when I go to the setup directory I get a Server 500 error. My Apache error_log reports php_value not allowed here.

This is because your webserver is allowing some .htaccess overrides, but not others. The Gallery setup script tries to set some PHP settings and requires you to either set AllowOverride Options FileInfo or to disable overrides altogether. See the Apache docs and this tutorial. In a nutshell, in your httpd.conf file you need a directive like this:

AllowOverride Options FileInfo

If you are unable to modify your httpd.conf file, you can edit the setup/.htaccess file and comment out any lines that start with php_value.

-------------------------
However, this didnt work for me until I removed the top two lines, one beginning with "php_value" the other beginning with "php_flag"

now it appears to work.. :smile: