Search blog

Monday, September 7, 2015

[Solved] Magento 500 Internal Server Errors in Ubuntu

I purchased a Magento theme from themeforest and was trying to run a test install in my localhost under Ubuntu. I googled and tried various solutions but all in vain. Perhaps they might work for you and you may give it a try at by visiting the following link: How to Solve Magento 500 Internal Server Errors. But if that does not help you can try doing what I did.

1. Firstly go and check your Apache Error Logs at: '/var/log/apache2/error.log'

2. There check if you are getting an error such as:

[Mon Sep 07 12:40:40.533934 2015] [core:alert] [pid 31413] [client 127.0.0.1:47560] /var/www/html/magento/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

To resolve this open your Terminal by pressing CTRL+ALT+T and enter the following commands. Basically what you are doing is what is called the mod_headers:

 sudo a2enmod headers  

and then restart your Apache web server:

 service apache2 restart  

Now try accessing your website and it should work!

No comments:

Post a Comment

Thank you for your Feedback!
www.evagabond.me

Top 5 Posts (Weekly)