Vagrant Centos7 box-Nginx错误-stat()13:权限被拒绝

Vagrant Centos7 box-Nginx错误-stat()13:权限被拒绝,nginx,vagrant,centos7,permission-denied,Nginx,Vagrant,Centos7,Permission Denied,当尝试使用Vagrant在Centos7设备上设置项目时,出现以下错误: [crit] 28798#0: *1 stat() "/var/www/platform-authentication/public/index.php" failed (13: Permission denied).... index.php文件的权限为: -rwxr-xr-x. 1 1105825137 1357628051 1766 Sep 27 19:08 index.php 我已经检查了

当尝试使用Vagrant在Centos7设备上设置项目时,出现以下错误:

[crit] 28798#0: *1 stat() "/var/www/platform-authentication/public/index.php" failed (13: Permission denied)....
index.php文件的权限为:

-rwxr-xr-x.  1 1105825137 1357628051 1766 Sep 27 19:08 index.php
我已经检查了很多关于这个问题的线程,但是在我的案例中没有解决方案

我还尝试使用禁用防火墙

systemctl status firewalld.service
systemctl disable firewalld.service
在我的
nginx.conf
文件中,用户被设置为
nginx

user nginx;
我曾经尝试过将所有者更改为
index.php

chown -R nginx:nginx index.php
但是我得到了这个错误

chown: changing ownership of ‘index.php’: Operation not permitted
我不确定我还能做些什么来让这一切顺利进行。我也在两台不同的机器上试过,但都没有用。感谢您的帮助

谢谢

编辑

运行此命令
sudo-u nginx stat/var/www/platform authentication/public/
检查是否
nginx
用户可以访问文件并返回此

  File: ‘/var/www/platform-authentication/public/’
  Size: 256         Blocks: 0          IO Block: 8192   directory
Device: 28h/40d Inode: 1382128     Links: 8
Access: (0755/drwxr-xr-x)  Uid: (1105825137/ UNKNOWN)   Gid: (1357628051/ UNKNOWN)
Context: system_u:object_r:nfs_t:s0
Access: 2020-11-20 19:02:10.286571942 +0000
Modify: 2020-11-20 19:01:49.185586628 +0000
Change: 2020-11-20 19:01:49.185586628 +0000
 Birth: -