cancel
Showing results for 
Search instead for 
Did you mean: 

Confusion Over Documentation (Ownership and Permissions)

SOLVED

Confusion Over Documentation (Ownership and Permissions)

FROM: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-sys-perms-over.html

 

  • The web server user, which runs the Magento Admin and storefront.
  • A command-line user, which is a local user account you can use to log in to the server. This user runs Magento cron jobs and command-line utilities.

 

I don't understand what each of these users are. I have a private server that I host many domains on. One of them is foo.com. The username for foo.com is foofoo. I have installed Magento (via Composer) in the public_html directory of foofoo's home directory.

 

1. What is my "webserver" user?

2. What is my "command-line" user?

 

I installed Magento logged in as foofoo, via:

 

#composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition store

 

I didn't sudo foofoo, as this didn't appear necessary.

 

Thank you for any guidance,

 

Bill

 

CentOS / Magento 2.0.7

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Confusion Over Documentation (Ownership and Permissions)

If you have a private server, then you use the two-user setup on the overview page you mentioned. This means the command-line user is a user you create on the server, which in your case is foofoo.

 

The web server user is the user the web server runs as; the pre-installation file system page has information on how to find that user. Typically, it's www-data on Ubuntu or apache on CentOS (for Apache). If you're using nginx, it's typically nginx.

 

All you need to do is to add the foofoo user to the web server user's group and follow the other instructions on the pre-installation page and you should be set.

View solution in original post

1 REPLY 1

Re: Confusion Over Documentation (Ownership and Permissions)

If you have a private server, then you use the two-user setup on the overview page you mentioned. This means the command-line user is a user you create on the server, which in your case is foofoo.

 

The web server user is the user the web server runs as; the pre-installation file system page has information on how to find that user. Typically, it's www-data on Ubuntu or apache on CentOS (for Apache). If you're using nginx, it's typically nginx.

 

All you need to do is to add the foofoo user to the web server user's group and follow the other instructions on the pre-installation page and you should be set.