wamp 500 Internal Server Error .htaccess

WAMP 500 Internal Server Error .htaccess is a common problem who installed WAMP sever at first. Not only first, anyway we can solve this problem in 4 different ways.
You may get following error,

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.

wamp 500 internal server error .htaccess

Run your wampserver…

Solution 1:

wamp 500 Internal Server Error .htaccess - taskbar- step to install

In this method, We have to enable Headers Module and Rewrite Module. Wamp server gives Internal Server Error by this two modules.
First Run your WAMP server and click taskbar WAMP icon.
wamp 500 Internal Server Error htaccess php codeigniter- Steptoinstall
And goto Apache -> Apache modules -> rewrite_module , enable it(by click).

Like same way enable headers_module ( Apache -> Apache modules -> headers_module).

Solution 2: Changes in httpd.conf

In second method, We can enable same Headers Module and Rewrite Module by code.
Open Apache’s httpd.conf file.(goto taskbar icon and select Apache->httpd.conf)

You can find following lines,
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule headers_module modules/mod_headers.so

Remove # symbol from front of the 2 lines and save it. Restart your Apache Server.

Solution 3: File Permission

If you have this 500 Internal Server Error problem for any specific file(s), you can solve using this method.
Here you want to change the file permission from FTP(godaddy, cpanel,…) side. Select that specific file(s) and click right mouse button and select change permission link. There select read/write options to all. Cool!

Solution 4: In .htaccess file?

No need to do anything into .htaccess file. Above 3 methods can solve your problem.

Sill you want to do by .htaccess file, just ask me by comments. If you have any doubt ask me.

The following two tabs change content below.
I am Karthik, software engineer by profession. I'm giving some steps to installing, re-installing, updating, removing and any other related queries about software’s, operating systems, plug-ins and so on. You can find and follow me, from Social Media or here. Google+

44 Responses

  1. Girish says:

    Dear Karthik

    I have done all above three 3 steps still i am getting internal server error

    • KarSho says:

      Thanks for your golden comment. Then send me your .htaccess file via mail. I’ll…

      • charith says:

        still i have the problem… plzzzz gimme solution bro…

        “could not execute menu item (internal error) exception could not perform service action the service has not been started error” this is the error

      • rahul says:

        we have follow all three steps but we are getting same error,,,no benefits of your steps…thanks for help like this

    • Zorawar Singh says:

      Make sure your file permissions are755.

      Solved my problem 🙂

    • rahul says:

      # index file can be index.php, home.php, default.php etc.
      DirectoryIndex index.php

      # Rewrite engine
      RewriteEngine On

      # condition with escaping special chars
      RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

  2. yogesh says:

    Dear Karthik

    I have done all above three 3 steps still i am getting internal server error

  3. Ines says:

    I counter the same problem as Girish.
    I did all these configurations but I still have the same Intern Server Error.

  4. nakul sharma says:

    thanks bro

  5. mishal rai says:

    thank you bro it work

  6. Singh Bhagirath says:

    Thanks Working Gr8 4 Me….
    (y) for your FB Page.

  7. zakaria says:

    think so mutch for your solutions so mutch 🙂

  8. mittal says:

    I have done all above three 3 steps still i am getting internal server error

  9. Mohammed says:

    Thanks you , now its work fine

  10. HaiderAli says:

    i have tried all three options but still getting error. plz tell me .htaccess file method

  11. Bhavik Gandhi says:

    Same problem here. this is my htacess file

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /ideapad/index.php [L]

  12. muth says:

    Thank for your good solution.

  13. adesh says:

    how to give file permissions in windows

  14. Rutuja says:

    Hey Thank you Karthik, I stuck with the same problem. But after following above steps it solves my problem. 🙂

  15. Abdallah says:

    Thx a lot! Solution 1 solve my problem!

  16. Sophie says:

    I did all three steps but still have internal server error.

  17. siddu says:

    i have a test project as localhost/apnachowk/events.php
    and movies.php shortfilms.php etc. when i use the .htaccess file to change the url type like events,movies,like wise, , just removing the .php extension , as iam a fresher could you please help me to do this in step by step . Thanks in advance

  18. Hardik says:

    Gr8, it’s working

  19. kavi says:

    thanks karthik it works…

  20. Gabriel says:

    Thanks it works….

  21. venkatesh says:

    Karthick Still its not working ! plz help me.

  22. Adarsh says:

    Good one . It works for me. Thanks friend

  23. Saif says:

    i had tried all way…bt it still show me internal server error.Try after sometime or goto home page…..what can i do to solve this error problem…plz plz plz plz help….

  24. dev says:

    Thankx it works

  25. karanK says:

    Hi karthik :
    After the above methods I am getting this error :
    Unable to connect to your database server using the provided settings.
    Filename: C:\wamp\www\trial\system\database\DB_driver.php
    Line Number: 124

    My .htaccess
    RewriteEngine on
    RewriteCond $1 !^(index\.php|uploads|css|js|lib|images|routemaps|bootstrap|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]

    Can you please help me out with this?

  26. Senthil says:

    I tried all the above all except .htaccess, But still the issue. My code page is have around 14000 lines and the process is to create PDF. i used FPDF to generate the same but not succeed if it goes after some time limit. Please help me to overcome this.

  27. Sunil says:

    Thanks it works

  28. Gustavo Ribeiro says:

    I installed the WAMPSERVER and my http://localhost:8080/phpmyadmin/ is with error 500.
    I have IIS in the port 80 and the Apache in the port 8080
    Please, help me.

  29. Ron says:

    If enabling mod_headers didn’t fix your problem, then it is being caused by AddOutputFilterByType (This was my problem and after enabling mod_headers, I enabled mod_filter and the problem was gone).
    So this may be fixed by enabling another module, mod_filter.

  30. ahalya says:

    hi i am getting internal server error 500 when i am executing my index.php in host .


  31. Vania says:

    Did the changes, didn’t help.

  32. Juan says:

    It work on the firts solution

  33. patel says:

    i am having the same internal server error. and i have tried almost all of the steps please help me with this.

    my site is a wordpress site and the problem occurs when i try bulk trash, either it is taking much to execute query or some server error.

  34. Savita palnitkar. says:


    I have tried all the things which you have mentioned above. But still I am getting “500 internal server error”. Please help me it’s urgent.


  35. Krishnakumar says:

    Hi I have hosted few wordpress sites and now I am hosting a html site with a contact form with php the problem is the php file isn’t getting accessed. I am getting 500 internal error. I have tried changing permissions to write/read to all those files but the error remains the same.

  36. kalpesh says:

    this is work????????

  37. pavithra says:

    Is .htaccess file mandatory. but i cant find my htaccess file in wamp server…

  38. prakhar rakesh says:

    Sir i have done all the things that you have mentioned above but the error is still same. I this there may be a problem with .htaccess file. please help me out with this

  39. DIEGO ESPINOSA says:

    Excellent work. Thanks a lot!

Leave a Reply

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

Please Fill this Sum * Time limit is exhausted. Please reload CAPTCHA.