Magento:500内部服务器错误::后端>>系统>>工具>>备份



我们无法从magento 1.5版的"后端>>系统>>工具>>备份"菜单创建magento备份。当我们尝试在15到20分钟后创建备份时,系统返回错误消息:


Internal Server Error 
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, webmaster@choosemadeinusa.com 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.

另外,当试图使用ErrorDocument来处理请求时,遇到了500内部服务器错误。

Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635服务器在www.choosemadeinusa.com端口443


我们已经应用了几乎所有我们在magento论坛上找到的解决方案,因为很多人以前面临过这个问题。我们采用的解决方案是:

  • 将"var"文件夹的权限更改为777。
  • 使" var/backups "文件夹空。
  • 修改了ROOT index.php文件的权限为755。
  • 增加了PHP的最大执行时间。
  • 增加内存限制。
  • 将index.php文件替换为index.php.sample作为临时基。
  • 启用"日志设置"来查看系统正在生成的错误。检查附带的"system.log"以查看与maganto备份相关的任何错误?
  • 在" app/code/local/MageWorx/LinkExchange/Controller/Router.php "文件中将" split "替换为" explosive " php函数

但是,没有运气发现我们真的不清楚什么是错的。我们正计划将magento版本从1.5升级到1.7,但我们无法启动该进程,因为我们无法完成备份过程。

最糟糕的是当系统返回错误消息"500 internal server error",然后我们重新加载后端Dashboard页面,它显示我们绿色的消息,你的"备份过程已完成",它还显示了系统已创建的备份列表。但是,我们确定这不是一个完整的备份,还是我们应该假设备份已经完成?

2013-02-07T16:54:15+00:00 ERR (3): Deprecated functionality: Function split() is deprecated  in /home/choosema/public_html/app/code/local/MageWorx/LinkExchange/Controller/Router.php on line 56
2013-02-07T16:54:15+00:00 ERR (3): Strict Notice: Declaration of MageWorx_SeoSuite_Block_Catalog_Navigation::_renderCategoryMenuItemHtml() should be compatible with that of Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml()  in /home/choosema/public_html/app/code/local/MageWorx/SeoSuite/Block/Catalog/Navigation.php on line 38
2013-02-07T16:54:25+00:00 ERR (3): Strict Notice: Declaration of MageWorx_SeoSuite_Block_Catalog_Navigation::_renderCategoryMenuItemHtml() should be compatible with that of Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml()  in /home/choosema/public_html/app/code/local/MageWorx/SeoSuite/Block/Catalog/Navigation.php on line 38
2013-02-07T16:54:29+00:00 ERR (3): Strict Notice: Declaration of MageWorx_SeoSuite_Block_Catalog_Navigation::_renderCategoryMenuItemHtml() should be compatible with that of Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml()  in /home/choosema/public_html/app/code/local/MageWorx/SeoSuite/Block/Catalog/Navigation.php on line 38
2013-02-07T16:55:08+00:00 ERR (3): Strict Notice: Declaration of MageWorx_SeoSuite_Block_Catalog_Navigation::_renderCategoryMenuItemHtml() should be compatible with that of Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml()  in /home/choosema/public_html/app/code/local/MageWorx/SeoSuite/Block/Catalog/Navigation.php on line 38
2013-02-07T16:55:17+00:00 ERR (3): Strict Notice: Declaration of MageWorx_SeoSuite_Block_Catalog_Navigation::_renderCategoryMenuItemHtml() should be compatible with that of Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml()  in /home/choosema/public_html/app/code/local/MageWorx/SeoSuite/Block/Catalog/Navigation.php on line 38

我们从"system.log"文件中得到的上述错误在"Router.php"one_answers"Navigation.php"上有错误,URL重写有问题吗?根据我们的理解,如果路由不正确,"500内部服务器错误"也会返回。

谁能让我们知道并帮助我们解决问题,因为我们已经尝试了几乎所有的方法。另外,请查看附件中的"system.log"文件,也许有人可以找到magento备份系统的问题。

首先,测量准确的时间对于确定问题所在非常有帮助,在一分钟内得到它可能会导致精确的超时。

可以是MySQL配置中的wait_timeout/etc/my.cnf

其次,备份过程没有什么神奇之处。听起来你有工作知识并且可以访问你的服务器。您可以使用zip来压缩整个magento web根,并使用mysqldump来获得数据库的副本。这就是重新构建PHP/MySQL应用程序所需要的全部内容。

而且,听起来你好像在计划在生产服务器上升级Magento 1.5->1.7。这几乎肯定是一个错误,许多功能将会改变,扩展可能会或可能不会与新版本很好地配合。我强烈建议按照上面描述的方式进行备份,并部署到某种测试环境中,在那里您可以进行升级并记录发生的问题。

要找出错误是什么,可以取消

行的注释<标题>报错(' display_errors ', 1);

该行位于index.php文件中。

然后您将看到究竟是什么触发了上面提到的错误。

在magento 1.9.1中,当您得到500内部服务器错误时,只需将index.php的权限更改为644,并删除根文件夹中的所有maintenance-flag.php。然后您应该能够登录到管理面板!

使用godaddy服务器

修改根目录下644的"index.php"文件权限

最新更新