最近在 centos 上撸inews这套 php 模板
在 apache 配置里填写如下:
<VirtualHost *:80>
DocumentRoot "/root/inews"
ServerName ip
SetEnv PAGON_ENV production
<Directory /root/inews>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
但是访问 ip 后显示 Forbidden You don't have permission to access / on this server.
于是查阅了stackoverflow这篇里的解决方法
- 把 httpd.conf 中所有 require all denied 的设置都改为了 Require all granted
- sudo chmod 755 /root/inews
依旧会报 Forbidden You don't have permission to access / on this server. 求各位大神指点迷津:)