Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Created October 24, 2018 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdullahbutt/31d768331412fa4a7a1c1405a4c9b855 to your computer and use it in GitHub Desktop.
Save abdullahbutt/31d768331412fa4a7a1c1405a4c9b855 to your computer and use it in GitHub Desktop.
Magento wamp 500 Internal Server Error
Following error you have given in your post's comment should lead you to the solution after a little search.
The problem is Magento's .htaccess file consists <IfVersion> command.
In order to use this feature mod_version module should have enabled on your Apache web server. Otherwise it will give 500 error.
In Wamp it is disabled by default.
To enable it in Wamp you can do following steps:
Find your apache config file (httpd.conf) : It usually is under /wamp/bin/apache/apache(version)/conf/httpd.conf
Open the configuration file with your favourite text editor: You can simply use Notepad. But I suggest any other one since notepad sometimes doesn't show line breaks. It will be more readable if you do (e.g. Notepad++)
Search the following text: "mod_version"
You will see following line: #LoadModule version_module modules/mod_version.so
Uncomment it, so it will become enabled: Simply delete # sign to uncomment it
Left Click on Wamp and press Restart All Services: Since you have made changes in the configuration file in order to let Apache server know about the changes you should restart at least Apache server.
Now you can check if Magento is working. If it isn't check the error log again. There might be another issue.
Following 6 steps should easily solve the error that you have provided in the comment. Also, please edit your post and add more details e.g. error log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment