ownership of the directories to the Apache web user

September 25, 2014 3.3k 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..

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.
Have another answer? Share your knowledge.