【发布时间】:2014-06-02 18:27:20
【问题描述】:
当我尝试使用 installation instructions 安装 eZ Publish 时出现错误。
cd /tmp/
git clone https://github.com/ezsystems/ezpublish-community.git
存储库被正确克隆,然后我进入下一步:
cd ezpublish-community/
composer install --prefer-dist
它会安装所需的软件包,然后显示此错误消息:
[...]
Writing lock file
Generating autoload files
Creating the "ezpublish/config/parameters.yml" file
Some parameters are missing. Please provide them.
secret (ThisTokenIsNotSoSecretChangeIt): [...]
locale_fallback (en):
ezpublish_legacy.default.view_default_layout ('eZDemoBundle::pagelayout.html.twig'):
PHP Fatal error: Class 'eZ\Bundle\EzPublishCoreBundle\Kernel' not found in /tmp/ezpublish-community/ezpublish/EzPublishKernel.php on line 37
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
composer.json 文件与current one on github 相同。
我在使用 Ubuntu 14.04 和 Debian wheezy (7.5) 时遇到了这个问题。
更新
这是一个解决方案,但需要注意的是,它将安装 eZ Publish 的开发版本(请参阅下面 jeromegamez 的答案)。
我可以通过增加 PHP 的 memory_limit 参数来安装 eZ Publish:
这不起作用(我不知道为什么,我不在乎):
php -d memory_limit="1G" ./composer.phar install --prefer-dist
所以我更改了/etc/php5/cli/php.ini文件:
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
;memory_limit = 128M
; New
memory_limit = 1G
安装完美。
【问题讨论】:
-
@RajatModi :不,我仍然有同样的问题,即使我开始全新安装。
-
@RajatModi :我找到了解决方案,请查看我的问题的更新。