Home > Backend Development > PHP Tutorial > lnmp的一个设置问题求解

lnmp的一个设置问题求解

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:16:48
Original
1449 people have browsed it

环境如下:
1、nginx php-fpm 的执行用户和用户组均是 www id 500
2、为了安全新建一个站点,aaa.com,
/usr/sbin/useradd -g www aaa新建aaa用户加入nginx和php-fpm所在用户组,
``
在用户home目录下建立www目录放置网站,可是权限都是0777了,文件的所有者是aaa,服务器是centos 6.7
nginx的错误日志还是
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"
求解?是我设置的不对吗?

按理说只要是www的最起码应该可执行啊。

回复内容:

环境如下:
1、nginx php-fpm 的执行用户和用户组均是 www id 500
2、为了安全新建一个站点,aaa.com,
/usr/sbin/useradd -g www aaa新建aaa用户加入nginx和php-fpm所在用户组,
``
在用户home目录下建立www目录放置网站,可是权限都是0777了,文件的所有者是aaa,服务器是centos 6.7
nginx的错误日志还是
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"
求解?是我设置的不对吗?

按理说只要是www的最起码应该可执行啊。

截图一下 看看网站web目录的权限

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template