redhat centos apache 403 错误 Forbidden You don't have permission to access / on this server
2017-11-22 14:24
323 查看
redhat centos apache 403 错误 centos7 apache2.2.34源码包安装成功,确认进程已启动( ps -le | grep httpd) ,防火墙已关闭,但访问时报错:
Forbidden You don't have permission to access / on this server
原因为:安装目录/conf/httpd.conf配置文件中
User deamon
Group deamon
选项没有修改,上述配置为默认配置,将其修改为
User test(安装http的用户名) Group test (安装http的用户组名)访问正常。
注:centos7 防火墙开启、关闭设置
systemctl stop firewalld.service #停止firewall,start 开启
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
Forbidden You don't have permission to access / on this server
原因为:安装目录/conf/httpd.conf配置文件中
User deamon
Group deamon
选项没有修改,上述配置为默认配置,将其修改为
User test(安装http的用户名) Group test (安装http的用户组名)访问正常。
注:centos7 防火墙开启、关闭设置
systemctl stop firewalld.service #停止firewall,start 开启
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
相关文章推荐
- 关于在CentOS 系统下使用 httpd服务器的时候,修改默认目录后 403 错误的解决(小白的实践),大婶漂过就好
- Centos下Apache访问网站根目录下子目录出现You don't have permission to access错误的解决办法
- Wamp2.5(Apache2.4.9)外网访问403(Forbidden)错误
- apache改变文档根路径后访问403的错误
- Linux(Centos)Apache安装配置过程中可能出现的错误
- 关于CentOS 下 httpd 修改默认的目录后 403 错误的 解决(小白方案)
- [乐意黎原创]centos7.2里开启apache及php错误信息提示
- Apache错误页面404、403配置教程
- apache 403 forbidden 错误解决方法
- Apache 403 错误解决方法-让别人可以访问你的服务器
- 解决Apache下403 Forbidden错误
- centos6.4编译apache时的错误
- Apache [forbidden 403]错误的解决办法
- Install apache in linux(ubuntu or redhat/centos)
- apache 2 虚拟主机 403 错误权限
- Apache [forbidden 403]错误的解决办法
- Apache [forbidden 403]错误的解决办法-新建www目录引起的
- Apache错误页面404、403配置教程
- centos下安装Apache各种不爽啊 出现了错误提示/etc/mime.types
- Centos下Apache使用Symlink访问外部目录出现403