当我尝试使用安装说明安装 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
该文件与github 上composer.json
的当前文件相同。
我在 Ubuntu 14.04 和 Debian wheezy (7.5) 上遇到了这个问题。
更新
这是一个解决方案,但应注意它将安装eZ Publish 的开发版本(请参阅下面jeromegamez的答案)。
memory_limit
我可以通过增加PHP的参数来安装 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
安装工作完美。