How to Solve Magento 500 Internal Server Errors
来源:互联网 发布:linux免密码登录失败 编辑:程序博客网 时间:2024/05/17 23:57
Many users encounter some weird Magento 500 Internal Server Errors (Error type 500). I will try to list the most common solutions. These errors are not always caused by the same reason. You should try to take a look at your server’s error logs to get some help about this error.
You can get additional info about the errors by Turning on Developer Mode. Look in the Magento bootstrap file (index.php), you’ll see lines similar to the following
#Mage::setIsDeveloperMode(true);
#ini_set(‘display_errors’, 1);
Uncomment these. In a production system, you’d never want to have your errors display to the browser, but while developing having an errors and warnings thrown immediately in your face is invaluable. This way, you will see the actually problem which lead to the Internal Error Server. In almost cases, the reason is that there is an exception throw after output is sent to browser.
Solution #1
This error might be caused because you have not set the correct permissions for the magento folders. To solve this go to File Manager and then change the file permission of index.php file from 664 to 644. Also change the permissions of downloader/index.php file to 644 as well otherwise when you will try to access System > Magento Connect >Magento Connect Manager (after magento installation) by logging to magento admin, you will get 500 Internal Server Error.
You can also try this tool, it’s a magento cleanup utility. It will set the correct permissions for your complete magento installation:
- Download it
- Unzip magento-cleanup.php to the root directory of your magento installation
- Browse to http://yourdomain.com/magento/magento-cleanup.php
Solution #2
Your server does not support some of the magento specifications. You can easily test this using the magento check utility. Follow the steps below to check your server’s software, if there is an incompatibility this utility will show it.
- Download it
- Unzip magento-check.php to the root directory of your magento installation
- Browse to http://yourdomain.com/magento/magento-check.php
Solution #3
If you are getting weird 500 internal server errors on specific pages of your site, it might be a matter of resources. I was getting internal server erros on some product pages and on the http://yourdomain.com/checkout/onepage. I found out that the .htacess file of my magento installation was somehow reset and the php_value memory_limit value was set to 32M as soon as I raised it, the internal server errors vanished! You should use at least 256M for over 600-700 SKUs. Magento is very resource hungry and it is easy to get these kind of errors if you try to save some bucks from the hosting.
Solution #4
Htaccess file which is located at Magento root folder. It will be this case if you meet Internal Server Error on every page. Try to remove it for testing purpose
If your website was running file for a long time, then it must be a change at Server side, just submit a ticket to Hosting Company.
Solution #5 (Comment from Huberto)
If the curl extension is missing you can get 500 Internal server error. You can install it using the command below:
apt-get install curl libcurl3 libcurl3-dev php5-curl
- How to Solve Magento 500 Internal Server Errors
- Magento 500 错误 How to Solve Magento 500 Internal Server Errors
- How to solve building errors in XPCOM?
- How to lookup Oracle ORA-600 Internal Errors
- How to solve laptop
- how to solve adb_devices_no_permissions
- How to solve the linking errors when using the ATOMIC functions
- how to solve it 杂感
- How to solve error PRJ0050
- how to solve aliasing problem
- how to solve ORA-02293
- how to solve over-fitting
- How to solve this issue?
- How to solve permission denied
- Magento Connect Manager Downloader 500 Internal Server Error
- How to solve SQL Server Error 1222 i.e Unlock a SQL Server table
- How to Analyze Problems Related to Internal Errors (ORA-600) and Core Dumps (ORA-7445) using My Orac
- How to Analyze Problems Related to Internal Errors (ORA-600) and Core Dumps (ORA-7445)using Metalink
- 程序员求职之道(《程序员面试笔试宝典》)之求职有用网站及QQ群一览表
- 程序员求职之道(《程序员面试笔试宝典》)之如何回答系统设计题?
- theano程序(一)
- [tarjan] poj 2553 The Bottom of a Graph
- 工作笔记2.软件开发常用工具
- How to Solve Magento 500 Internal Server Errors
- 程序员求职之道(《程序员面试笔试宝典》)之如何回答算法设计问题?
- QuerySet那些常用技巧
- STAIR Vision Library 安装配置心得(Windows平台下)
- ZOJ 3229 Shoot the Bullet
- 浅谈Android应用性能之内存
- 程序员求职之道(《程序员面试笔试宝典》)之如何与企业进行待遇谈判?
- NET中小型企业级项目开发架构系列(一)
- C/C++数组名与指针区别深入探索