.htaccess not obeyed.. Again!

smea

Joined: 2004-05-12
Posts: 27
Posted: Tue, 2004-09-07 19:52

The same problem again.. Gallery won't obey my .htaccess..

Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file:

<Directory /usr/home/smea/gallery>
AllowOverride Options FileInfo
</Directory>

I've added that to the config file, restarted and rerun the wizard. No change.

I've also tried everything I did before, when the same problem occured.

Thanks in advance :D
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.4.4-pl2
Apache version: 1.3.31
PHP version (don't just say PHP 4, please): 4.3.8
Graphics Toolkit: IM
Operating system: FreeBSD 5.2.1
Web browser/version (if applicable):

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-09-07 23:06

Did you restart Apache? (Not sure what you meant by 'restarted and rerun the wizard')

Are you running PHP as CGI, or as an Apache mod?

 
smea

Joined: 2004-05-12
Posts: 27
Posted: Wed, 2004-09-08 05:14
signe wrote:
Did you restart Apache? (Not sure what you meant by 'restarted and rerun the wizard')

Are you running PHP as CGI, or as an Apache mod?

mod_cgi <- !
When I checked the gallery diagnostics, I found that under the loaded modules in Apache, but nothing with CGI under the PHP section..

I meant that I restarted Apache and ran the config wizard again :wink:

 
smea

Joined: 2004-05-12
Posts: 27
Posted: Wed, 2004-09-08 20:45

I've tried about everything now.. It still won't obey the .htaccess ..
And I'm getting frustrated of the long urls..

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-09-08 20:52

PHP will _never_ obey your .htaccess when you run it as CGI. That is explained in the config wizard.

Check your phpinfo() to determine which method you're using.

mod_cgi is unreleated to PHP.

 
smea

Joined: 2004-05-12
Posts: 27
Posted: Thu, 2004-09-09 12:40

Well, I can't see anything under the PHP-section that says that I have CGI enabled.Also tried to disable it in the httpd.conf .. Same result.