Fix 500 Internal server Error on .htaccess
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>
Great its really worked
Nice, i try it, and it work perfect. Thanks thinkdj
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….
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
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?
Thanls, i work 100%
Thanks, it work 100%
I was looking for the solution and at last I got it here. thanks guys.
Have the smame problem, I'll try..
Have the same problem, I'll try..
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-inter…
Thanks It works like magic.
This is a very helpful post, I was looking for this info. Just so you know I located your weblog when I was checking for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.
I tried it, but I receive error message like,
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
thank u .. it worked
Thanks for this. It works perfectly now.
Hi Thank You. It's now working in good manner.
thanks.. ^_^
thanks a bunch!
wow i thought wtf is this for tut, but it really worked!!!!!!!!!!!
thanks you
thanks a lot buddy… i was going crazy about for over 2 weeks..
not working
please help!!! [email protected]
thanks, very helpful, this is what I was looking for.
It did not work , i gonna be crazy :////// please help me
i use the wamp server
apach 2.2.17
i have activated the rewrite module
and changed the httpd.conf but it still not working !!!!!!!!!!!!!
You made my day! I am very happy and relaxed too that I find this blog. I was looking for the matter discussed in blog post. If you have some more blogs on the material please share those as well. Thanks a lot and keep sharing such useful information.