【问题标题】:Magento 1.7 Installation Error in DreamHost shared hostingDreamHost 共享主机中的 Magento 1.7 安装错误
【发布时间】:2013-05-28 14:27:29
【问题描述】:

日志中的错误是

Premature end of script headers: index.php, referer: http://www.example.com/index.php/install/wizard/config/?config%5Blocale%5D=en_US&config%5Btimezone%5D=America%2FLos_Angeles&config%5Bcurrency%5D=USD

magento 安装界面显示错误

Error log record number: 425991650051

我还发现,在安装过程中,magento 数据库中只有 86 个表被成功添加。

服务器的phpinfo

display_errors  On
max_execution_time  30
memory_limit    90M
safe_mode   Off
cURL support    enabled 
PDO support enabled
Simplexml support   enabled
mcrypt support  enabled
hash support    enabled
GD Support  enabled
DOM/XML     enabled 
iconv support   enabled 
Soap Client     enabled
Soap Server     enabled 

Mysql Server version: 5.1.56
PHP Version 5.3.13

在 index.php 中所做的更改

error_reporting(E_ALL);
ini_set('display_errors', 1);

最初我认为这是由于 memory_limit 和 max_execution_time,但我在本地主机中重新创建了相同的场景,尽管内存限制为 90M 并且最大执行时间为 30,但它仍然成功地工作

如何解决这个问题?

【问题讨论】:

    标签: .htaccess magento apache2 magento-1.7


    【解决方案1】:

    你试过了吗

    将 index.php 的权限更改为 644。

    还将目录权限:app、var、media 和 app/etc 更改为 755

    【讨论】:

    • 是的,我已经这样做了,这对脚本提前结束有何影响
    • 你能打开 /var/report/425991650051 并在这里发布内容吗.. 不知道为什么,但我一直在我的本地主机上遇到这个问题,在我更改权限后,它运行良好,但它可能是不同的问题:D
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-22
    • 2011-01-21
    相关资源
    最近更新 更多