php – 与Symfony2共享主机上的Composer安装/更新的运行时异常

前端之家收集整理的这篇文章主要介绍了php – 与Symfony2共享主机上的Composer安装/更新的运行时异常前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我似乎在共享主机上的缓存权限有一些问题.具体来说,当我尝试通过Composer安装/更新供应商时,我得到一个运行时异常:
$PHP composer.phar update -v -o

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.

Exception trace:
() at /home/thesewingdiva/private/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.PHP:137
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /home/thesewingdiva/private/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.PHP:48
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Script/EventDispatcher.PHP:122
Composer\Script\EventDispatcher->executeEventPHPScript() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Script/EventDispatcher.PHP:101
Composer\Script\EventDispatcher->doDispatch() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Script/EventDispatcher.PHP:74
Composer\Script\EventDispatcher->dispatchCommandEvent() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Installer.PHP:237
Composer\Installer->run() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Command/UpdateCommand.PHP:82
Composer\Command\UpdateCommand->execute() at phar:///home/thesewingdiva/private/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.PHP:238
Symfony\Component\Console\Command\Command->run() at phar:///home/thesewingdiva/private/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.PHP:193
Symfony\Component\Console\Application->doRun() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Console/Application.PHP:101
Composer\Console\Application->doRun() at phar:///home/thesewingdiva/private/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.PHP:106
Symfony\Component\Console\Application->run() at phar:///home/thesewingdiva/private/composer.phar/src/Composer/Console/Application.PHP:74
Composer\Console\Application->run() at phar:///home/thesewingdiva/private/composer.phar/bin/composer:37
require() at /home/thesewingdiva/private/composer.phar:15

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

我没有能力使用ACL,因为它是共享主机,所以我没有能力使用sudo.缓存的权限(递归)设置为777,app / console,app.PHP和app_dev.PHP都设置为umask(0000).我也删除了缓存,看看是否有帮助.没有骰子.有想法该怎么解决这个吗?

this question评论中,它指出该问题与缺少时区设置有关.

What happens if you do “PHP app/console cache:clear –verbose”

原文链接:https://www.f2er.com/php/134464.html

猜你在找的PHP相关文章