500 Internal Server Error on Localhost for Web.Developer Server Suite was pissing me off for a long time. The Apache error logs shows “RewriteEngine not allowed here”. Deleting .htaccess would fix the problem, but here is the fix. It’s a problem with mod_rewrite module and Apache’s AllowOverride configuration. Here’s how to fix it :
Firstly, make sure LoadModule rewrite_module modules/mod_rewrite.so is enabled in httpd.conf (Remove # before the line to enable)
Then, edit httpd.conf .. Find out the foll lines and mod -
<Directory “/www/vhosts/localhost”> #replace this with your dir name
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All #Added
</Directory>
<Directory />
Options FollowSymLinks
# AllowOverride Limit #Old Value
AllowOverride All #Added
Order deny,allow
Deny from all
Satisfy all
</Directory>





If your domain is on linux server and you are using cpanel than you can get 500 internal server error if you have wrong directory /files permissions. Directories and folders should be 755
.
http://www.bestarticleworld.com/2010/01/500-internal-server-error-causes.html
Have the same problem, I’ll try..
Have the smame problem, I’ll try..
I was looking for the solution and at last I got it here. thanks guys.
Thanks, it work 100%
Thanls, i work 100%
This got me closer, but I am still getting a 500 error, having just migrated to Vista x64.
I tried using 127.0.0.1/site and a few other tricks I found on the Internet, but still fires the error when I rename the htaccess.txt file.
Any idea, guys?
Thanks for the tip, I used the following method instead of editing the httpd.conf file.
As an alternative to keep the code all tidy you can write the changes to a seperate .conf file. As long as the setting for VHOST is enabled.
If you have define(‘VHOST’, ‘yes’); then you can edit the vhost.conf file usually found in the conf directory of the root. i.e. (depending on your directory structure): /var/www/vhosts/domain_name_here.com/conf/vhost.conf
then add the following (amend directory structure for your install location)
Options FollowSymlinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
I’m configure with Apache/2.0.63
From the default loadModule rewrite_module modules/mod_rewrite.so is disabled by httpd.conf
If you need to using “.htaccess” file, make notice the mod_rewrite.so is enabled.
Thank’s a lot guyzzz….
Nice, i try it, and it work perfect. Thanks thinkdj
Great its really worked