Reputation: 155
I upgraded My magento store form 1.6.2 to 1.7.0.2 but it is showing the Error:500 Internal server Error . I changed the File permissions also but it doesn't get solved. Cleaned the cache and sessions but it is not working. Can any body tell me how to Solve the problem?
Thanks...
Upvotes: 2
Views: 18641
Reputation: 36
I don't have enough repuation to comment on the following advice:
sudo chmod -R 777 /var/www/html/magento
Never set permisions to 777 - you leave your server wide open to compromise. On apache folders should be 755, files 644. If this isn't sufficient, it probably means an ownership issue or server misconfiguration.
Upvotes: 1
Reputation: 2437
just execute this command if you are using Ubuntu
sudo chmod -R 777 /var/www/html/magento
Upvotes: 1
Reputation: 11
This is the only thing that actually helped me (after an entire week of fighting of with this)...
To overcome 500 Internal Server Error :
change the folder permission of below folder to 777
app/etc
var
media
change the file permission of below files from 664 to 644
index.php (main index file in magento root folder)
downloader/index.php
source: http://blog.luutaa.com/magento/how-to-overcome-500-internal-server-error-when-installing-magento/
Upvotes: 1
Reputation: 2013
I was able to resolve this issue by increasing some values of the fcgid.conf (etc/apache2/mods-available/fcgid.conf)
FcgidIdleTimeout 3600
FcgidProcessLifeTime 7200
FcgidMaxProcesses 64
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 300
FcgidIOTimeout 180
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
Upvotes: 0
Reputation: 1694
By default Mageto switches errors output off. If your php is configured not to log php errors web server will send 500 error in case any fatal error occurs.
You can check errors in /var/log/exception.log and /var/log/system.log or enable output of all errors in your magento installation:
edit your index.php :
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
and .htaccess:
SetEnv MAGE_IS_DEVELOPER_MODE "true"
Upvotes: 8