The environment is as follows: 1. nginxphp-fpm execution users and user groups are both wwwid5002. To secure the creation of a new site, aaa.com, usrsbinuseradd-gwwwaaa creates an aaa user to add nginx and php-fpm user groups, ''create the www directory in the user's home directory to put the network... the environment is as follows:
1. The execution user and user group of nginx php-fpm are both www id 500
2. Create a site for security purposes, aaa.com,
/usr/sbin/useradd -g www aaa
Create an aaa user to join the user group where nginx and php-fpm are located,
''
Create the www directory in the user's home directory to place the website, but the permissions are all 0777, the file owner is aaa, and the server is centos 6.7
The nginx error log is still
2016/03/02 10:09:57 [crit] 21803#0: *59 stat() "/home/aaa/sites/aaa.com/index.php" failed (13: Permission denied), client: XXXX.XXXX.XXXX.XXXX, server: aaa.com, request: "GET / HTTP/1.1", host: "aaa.com"
Solving? Is my settings incorrect?
It is reasonable to say that www should be executed at least.
Reply content:
The environment is as follows:
1. The execution user and user group of nginx php-fpm are both www id 500
2. Create a site for security purposes, aaa.com,
/usr/sbin/useradd -g www aaa
Create an aaa user to join the user group where nginx and php-fpm are located,
''
Create the www directory in the user's home directory to place the website, but the permissions are all 0777, the file owner is aaa, and the server is centos 6.7
The nginx error log is still
2016/03/02 10:09:57 [crit] 21803#0: *59 stat() "/home/aaa/sites/aaa.com/index.php" failed (13: Permission denied), client: XXXX.XXXX.XXXX.XXXX, server: aaa.com, request: "GET / HTTP/1.1", host: "aaa.com"
Solving? Is my settings incorrect?
It is reasonable to say that www should be executed at least.
Let's take a look at the website's web directory permissions.