Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AllowOverride Now Working?

Status
Not open for further replies.

ShelaghG

Technical User
Feb 4, 2003
2
GB
I'm trying to install an application called Gallery ( When I run setup I get the following error:

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

<Directory /home/thewhole/public_html/gallery>
AllowOverride Options FileInfo
</Directory>

I've tried adding this to /etc/httpd/conf/httpd.conf and restarting Apache and it makes no difference. I've also tried changing the global AllowOverride setting from None to All and restarting Apache and I still get the error.

I have just moved from a shared server to a dedicated server and have never had to do this before so I may be missing something really obvious.

I did have a quick peek at /etc/httpd/conf/httpd.conf on the old server before my account was deleted and AllowOverride was set to None and I know I didn't have to ask them to anything special to get this s/w to work. This is driving me nuts, mainly because I suspect I am missing something obvious!
 
Do you have 'Options' between AllowOverride and FileInfo? That would be wrong. Also make sure you have this directive in your globals:

AccessFileName .htaccess

I don't know why it wouldn't be there already.

 
AccessFileName .htaccess is in there

I wasn't sure what you meant about the 'Options' - is it in the wrong place or should it not be there at all? I tried it both ways and it made no difference.

I also tried this :
# This controls which options the .htaccess files in directories can
# override. Can also be &quot;All&quot;, or any combination of &quot;Options&quot;, &quot;FileInfo&quot;,
# &quot;AuthConfig&quot;, and &quot;Limit&quot;
#
AllowOverride All

and I still get the error message from Gallery about Apache not obeying the .htaccess
 
Are you restarting apache after the changes to httpd.conf? If that's not it, can you copy and paste that section of your directory container here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top