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.
You must be logged in to post messages in this topic!