Hey guys,
some of you are using Apache for delivering data.
Sometimes it's important to restrict the folder-rights for the user www-data (Apache), but Chevereto 3.x requires rwx (read, write, execute) for /images and /content.
Now you could just make www-data the owner of these folders or set chmod to 777....
But i want to show you a different way of granting rights to Apache with ACL.
First of all you have to install acl on your server.
After it, we set an ACL for /images and /content.
That's it, www-data is now allowed to read, write and execute files in these folders and their subfolders.
If you want to check your ACL, just type:
Hope it'll help you.
some of you are using Apache for delivering data.
Sometimes it's important to restrict the folder-rights for the user www-data (Apache), but Chevereto 3.x requires rwx (read, write, execute) for /images and /content.
Now you could just make www-data the owner of these folders or set chmod to 777....
But i want to show you a different way of granting rights to Apache with ACL.
First of all you have to install acl on your server.
After it, we set an ACL for /images and /content.
Code:
setfacl -R -m u:www-data:rwx PATH/TO/IMAGES
setfacl -R -m u:www-data:rwx PATH/TO/CONTENT
That's it, www-data is now allowed to read, write and execute files in these folders and their subfolders.
If you want to check your ACL, just type:
Code:
getfacl /PATH/TO/FOLDER/WITH/ACL
Hope it'll help you.