ownership of the directories to the Apache web user

Posted September 25, 2014 4.2k views


I have magento multi webstore configuration on digital ocean in a single droplet and I want to change ownership/group of a directory and also want to know about user creation by which I can manage one more user for that directory with detail of how to change ownership/group of complete content of the directory.

thanks in advance..

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hey there,

Here is a tutorial that reviews Linux permissions and ownership. The basic command you are looking for would be:

  • chown -R user:group /var/www/html/folder

You want to make sure that the files are still readable by the web server so that the web site still can be served.

Happy coding,

Jon Schwenn
Platform Support Specialist

by Justin Ellingwood
In this article, we will discuss how to read and manipulate Linux permissions. We will cover how to use the "umask" command to choose default permission settings, and the "chmod" command, which can change the permissions of files and directories.