Hide your secret files INSIDE photos, videos or other files with OmniHide PRO.

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>

 
Uppcoming Movies
 

28 Responses to “Fix 500 Internal server Error on .htaccess”

  1. I am very thankful to the author to write this fruitful information.It is worth sharing for other users.Thanks once again

  2. 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.

  3. abir says:

    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 !!!!!!!!!!!!!

  4. omarxp says:

    thanks, very helpful, this is what I was looking for.

  5. serai says:

    not working

  6. Stranger says:

    thanks a lot buddy… i was going crazy about for over 2 weeks..

  7. Amir says:

    wow i thought wtf is this for tut, but it really worked!!!!!!!!!!!

  8. mulankingdom says:

    thanks a bunch!

  9. defi says:

    thanks.. ^_^

  10. shahmy says:

    Hi Thank You. It's now working in good manner.

  11. Ranui says:

    Thanks for this. It works perfectly now.

  12. Reejo says:

    thank u .. it worked

  13. vincy says:

    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.

  14. 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.

  15. nara_l says:

    Thanks It works like magic.

  16. infocity says:

    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

  17. Have the same problem, I'll try..

  18. bali car rental says:

    Have the smame problem, I'll try..

  19. I was looking for the solution and at last I got it here. thanks guys.

  20. Ali says:

    Thanks, it work 100%

  21. Ali says:

    Thanls, i work 100%

  22. eGodaddy says:

    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?

  23. HydroMan says:

    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

  24. benny says:

    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….

  25. Stefan says:

    Nice, i try it, and it work perfect. Thanks thinkdj

  26. Aamir Kilwani says:

    Great its really worked

 
 

Categories