如何调试PHP Web应用程序';s(特别是Magento)安装流程


How can I debug a PHP Web Application's (Magento specifically) Installation Flow?

我无法通过Magento安装程序的服务条款。单击接受复选框并单击Submit后,页面(似乎是?)会自行刷新。

我已经用这个脚本将perms更改为0777

#!/bin/sh
find . -type f -exec chmod 644 {} ';
find . -type d -exec chmod 777 {} ';
chmod o+w var/.htaccess
chmod 550 mage

还尝试禁用脚本,但没有成功。

我从安装http://www.mydomain.org/2/index.php/install/wizard/beginPost/没有用,我想我会提到这条路以防万一。

这是系统的常见问题吗?如果没有,我如何调试正在发生的事情?

未解决(这只解决了一个问题,显然还有更多问题正在进行中)

EDITgetPost似乎存在问题,可能是因为没有正确传递参数?

您的文章缺少有人需要为您调试的细节。两个提示。

  1. 您不应该在install/wizard/beginPost上启动安装。相反,只需加载没有路径的根级域名,并让Magento指引你去哪里(你可能已经在做了)

  2. 与Magento的其他部分一样,安装程序是一个模块,您可以对其进行调试。其控制器位于app/code/core/Mage/Install/controllers/WizardController.php

beginActionbeginPostAction中添加临时调试代码以了解发生了什么是您的最佳选择

您可以通过CLI进行安装,以解决基于web的安装程序问题(通常),我以前在安装时遇到过一些异常情况:http://www.magentocommerce.com/wiki/groups/227/command_line_installation_wizard

如果在安装过程中和安装后出现任何错误,这也可能有助于阐明为什么基于web的安装程序无法工作。

您也可以尝试:http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento以确保您的服务器满足适当的要求。