Photo Gallery Error - .htaccess: RewriteEngine not allowed here


I currently upgraded Gallery which is a php photo gallery script - and a very good one, I highly recommend it.

I upgraded because I moved the site from an Ensim based dedicated server to a Cpanel based dedicated server. The site is hosted as a virtual host name.

I had some problems with Server 500 Errors because of the .htacess file.

I added

<Directory "/home/<domain>/public_html/gallery">
AllowOverride Options
</Directory>

 to Apaches httpd.conf file which worked fine until I went back to the sight a couple of days later and got another 500 Server error.
 

[Mon Jan 07 18:00:38 2008] [alert] [client 192.168.xxx.xxx] /home/photos/public_html/gallery/.htaccess: RewriteEngine not allowed here

After spending hours on the net trying to find a fix, I found the following which fixed my problem

<Directory "/home/<domain>/public_html/gallery">

AllowOverride AuthConfig Options FileInfo

</Directory>

I hope this helps others with the same problem.

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
Cpanel Custom Apache httpd.conf configuration
Accurate Web Server Statistics

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!