eZ Community » Forums » Install & configuration » Folder rights change after cache clear
expandshrink

Folder rights change after cache clear

Folder rights change after cache clear

Tuesday 26 September 2017 2:20:06 pm - 1 reply

Hello! I installed eZ Platform, it works quite good on local server, but there is a trouble with folder rights. After every clearing of cache app/cache/dev changes owner from www-data to root and site can't be loaded till i change the owner with sudo chown. During the installation by the guide (https://doc.ezplatform.com/en/1.7/getting_started/install_manually/#Setup-folder-right) I've set the folder rights as it was shown there. (Using chown on Linux/BSD/OS X systems that don't support ACL) but the trouble still appear. Can anybody give me a hint what did i miss? Thanks a lot!

Monday 02 October 2017 11:20:05 pm

You're clearing the cache as root. If you manage your server as root you can use su to give a command as another user.

 su -m www-data -c "php app/console cache:clear"

You can make an alias for this for example:

 alias ezcc='su -m www-data -c "php app/console cache:clear"'

And use "ezcc" to clear the cache from your ezroot directory.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from