symfonyプロジェクトのコンポーザを更新しようとしたり、キャッシュをクリアしようとすると、定期的にファイルのパーミッションエラーが発生します。 しかし、私のファイルはsymfonyののドキュメントに従って正しく設定されている:例えばhttp://symfony.com/doc/current/setup/file_permissions.htmlsymfonyプロジェクトでファイルのアクセス許可を修正できません
linuxの下I'am、Manjaro budgieに版(最新の安定版) サーバーのapache最後のバージョン
:
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
// Clearing the cache for the dev environment with debug true
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove file "/srv/http/PetitMur/var/cache/de~/annotations/1a/5b504d5c506c6174666f726d42756e646c655c456e746974795c41727469636c652474616773405b416e6e6f745d5d5b315d.doctrinecache.data": .
このファイルには、この権利を持っています
pierre $ la /srv/http/PetitMur/var/cache/de~/annotations...data
-rw-rw-r--+ 1 http http 234 29.09.2016 18:13 /srv/http/PetitMur/var/cache/de~/annotations...data
私が知っている、この問題は再発性です。しかし、私はすでにsymfonyの文書に従って許可ファイルを設定しています。現在、私はそれを正常に動作させるためにスーパーユーザーでコマンドを実行する必要があり、これは正常ではありません。
アイデアはありますか?
編集:
php bin/symfony_requirements
Symfony Requirements Checker
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> PHP is using the following php.ini file:
/etc/php/php.ini
> Checking Symfony requirements:
.............................WW......
[OK]
Your system is ready to run Symfony projects
Optional recommendations to improve your setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* intl extension should be available
> Install and enable the intl extension (used for validators).
* a PHP accelerator should be installed
> Install and/or enable a PHP accelerator (highly recommended).
Note The command console could use a different php.ini file
~~~~ than the one used with your web server. To be on the
safe side, please check the requirements from your web
server using the web/config.php script.
rm -rf var/cache/*を使用してクリアしてみましたか? –
はい、しばらくしてから問題が取り戻されました。 –
どのWebサーバーですか?それはApacheですか? –