[Solution] WAMP Server Localhost Shows 500 Internal Server Error

I use WAMP server for my development on localhost. I was working fine with wamp. Suddenly I am facing a problem that I never saw on localhost. When I am trying to visit http://localhost or http://127.0.0.1 , My browser is showing me an error page with following texts. I got a solution for this problem.

500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

How to fix 500 Internal Server Error on LocalHost for WAMP Server

Wamp 500 Internal Server Error Solution

This kind of error is happened if apache mod_rewrite feature of your server is not enabled. By default WAMP server does not load this Apache Mod Rewrite module. It is disabled by default. You have to enable a this option to load this module. There is line in WAMP Apache configuration file about this but that is commented by default. To enable this mod_rewrite feature follow this instruction.

  • Look at Wamp icon in notification area on system tray (near Clock in Windows OS)
  • Click on the WAMP icon
  • Go to Apache>httpd.config
  • A Configuration file will be opened in “Note Pad” or your default text editor. Search the text “mod_rewrite” , you will find a line “#LoadModule rewrite_module modules/mod_rewrite.so
  • Uncomment this line by removing the Hash “#” from the beginning of the line.
  • Save the file
  • Restart WAMP Server by clicking “Restart All Services” from WAMP menu.
  • YOU ARE DONE!

Let me know your result by leaving a comment bellow

64 Comments


  1. Thanks for your kindly help.. Its working now..

    Reply

  2. Thanks! This helped me solve my problem!

    Reply

  3. This helped me solve my problem 🙂

    Reply

  4. thanks its helpful……………

    Reply

    1. ohh sorry then.
      It worked for all other peoples, they commented on this post.
      If this process does not work for you then your problem is different than I explained in this post. You have to search different solution.

      Reply

  5. I’m using Apache 2.4 and not WAMP, anyway thanks for the tip, but in my case it did not work … I’ll keep looking for another solution

    Reply

    1. Hi please
      remove (or move) .htaccess file from your www wamp folder…

      Reply

  6. Its working for me too.

    Thanks much appreciated

    Reply

  7. Well done. It’s Work well. Thanks so

    Reply

  8. Большое спасибо, выручил в нужное время. Спасибо! Thanks a lot!

    Reply

  9. Thanks a lot! I followed your guide and my problem has been fixed. Keep with the good work, you saved my time 🙂

    Reply

  10. Thank you so MUCH! Works like a charm!

    Reply

  11. Great !Thanks ! You are a genius.

    Reply

  12. Thank you so much, it works now but I don’t understand what was actually the issue. What wasn’t working to allow me see the localhost?

    Reply

  13. It’s not working for me.. Help

    Reply

  14. Súper!! me ayudó a resolver el problema!
    Gracias!!!!

    Reply

  15. Thanks helpful ERROR………………….

    Reply

  16. thank you so much…it’s working….thanks a lot..;

    Reply

  17. Worked… Thanks for sharing this.!

    Reply

  18. El error 500 se soluciono excelente aporte

    Reply

  19. Thank You JAHIDUL, This information is very very use full.
    Thanks again

    Reply

  20. Not solved !!! suffer problem of URL rewriting

    Reply

  21. Wow!! awesome, it really helped me. 🙂

    Reply

  22. I have an issue which is very odd. My all other projects work under www folder (regular wamp 3.0.0) set up on windows OS. Only one folder is giving issue listed below…

    “Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Apache/2.4.17 (Win64) PHP/7.0.0 Server at localhost Port 80″

    I also tried copying other folder working project in the folder, but it does not work there but everywhere else under www folder.

    I need to know how to fix it and why it does not like THE folder. I tried look into above solution and mine was already un-commented.

    Thoughts?

    Reply

  23. Wow!! awesome, it really helped me. thank you

    Reply

  24. Thank you very much. It works! 🙂

    Reply

  25. thanks thanks thanks bunch…..i am not a expert and when i saw this crashed my ambitions came crashing down. Now i’ve got it back on… thanks very much again bro….

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *