Linux Centos7 Apache 访问 You don't have permission to access / on this server.
折腾了很久,今天才找到了最正确的答案。感言真不容易。
百度出来的99%都是采集的内容,全都是错误的。
You don't have permission to access / on this server.
百度出的解决方法:
1)关闭selinux 。坑,服务器根本就没开启selinux
2)修改 httpd.conf 中的 allow from all!坑,Apache都2.4+,根本就不存在 allow from all ,现在改为了 Require all granted!
3)修改 chcon -R httpd_user_content_t !坑,误人子弟,CentOS7 中根本就没这样一个上下文,因为selinux根本就没开启
4)修改 chown apache: -R /home/xxx.com/public_html!误人子弟,坑比!这样把目录改了,他本来的用户却没有目录访问权限了!逗比!!!
……
百度了一个多小时,全都是这样的解决方法,出来的网页全都是一大堆广告。
中国的最大搜索引擎搜索出来的都是那种布满广告的采集站!采集站不要紧,关键是全都是广告,连正常的阅读都无法阅读!
最后正确的解决方法:
chmod o+x /home/google.com
上一级目录的其他用户组也必须加上 x 执行权限否则Apache无法读取!
写到最后,感谢segmentfault 社区的热心人,不然真的瞎折腾几天可能又要放弃了。牢骚一下,网上用百度搜索出来的东西根本就不准确!用不了Google,goagent总是断断续续,而且对英文不熟悉。瞎折腾的时候感觉自己就像chaoxian,落后但是自我感觉良好,很多人用百度还觉得自豪爱国。(by default.fu@foxmail.com)
Linux Centos7 Apache 访问 You don't have permission to access / on this server.相关推荐
- 输入http://localhost/,apache出现You don't have permission to access/on this server.的提示,如何解决?...
本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on ...
- Apache提示You don‘t have permission to access / on this server问题解决
Apache提示You don't have permission to access / on this server问题解决 参考文章: (1)Apache提示You don't have per ...
- 【Apache】You don't have permission to access / on this server.问题解决
目录 背景 正文 总结 背景 在服务器中输入localhost出现 Forbidden,You don't have permission to access / on this server. 在外 ...
- you don't have permission to access / on this server(Apache Server权限访问问题)
Apache Http Server已经在linux上安装完成,可是通过浏览器访问,却出现了"you don't have permission to access / on this se ...
- [乐意黎原创]访问Centos下Apache主机页面抛You don't have permission to access / on this server.
Forbidden You don't have permission to access / on this server. Server unable to read htaccess file, ...
- apache 提示You don't have permission to access /test.php on this server.怎样解决
关键字: Apache 403 Forbidden 系统配置: 操作系统:Red Hat Linux 6.2 Web服务器:Apache 3.1.1+jakarta-tomcat 3.1.1 数 ...
- (已解决)wamp + Apache报错:出现403Forbidden You don't have permission to access / on this server.
文章目录 `解决办法:` `*** `附件 · 延伸阅读 · 参考: 解决办法: 注意: 案例环境:win7 x64 或 win10 仅仅只需要修改apache配置文件httpd.conf 即可. 上 ...
- apache 问题 You don't have permission to access /test.php on this server 解决方法
关键字: Apache 403 Forbidden 系统配置: 操作系统:Red Hat Linux 6.2 Web服务器:Apache 3.1.1+jakarta-tomcat 3.1.1 数据 ...
- [备忘][转载]apache 403错误 You don't have permission to access on this server
apache 403错误 You don't have permission to access on this server. 在配置好了Apache服务器后,测试已经通过了,但是通过浏览器访问lo ...
最新文章
- WebLogic集群配置
- grails 环境找不到java_home
- python初学者web还是爬虫-还在纠结学爬虫还是数据分析,不如看看这篇文章
- centos 6.5升级openssl
- Python chardet 字符编码判断
- python中nlp的库_用于nlp的python中的网站数据清理
- 中文网页重设与排版:TYPO.CSS
- 究竟什么时候该使用MQ?
- CozyRSS2开发记录0-win10开坑
- .Net下RabbitMQ的使用(4) -- 订阅和发布
- selenium学习第一步(firefox安装firebug和firepath插件)
- AI音箱工作原理浅析
- 国际象棋“马”的走法
- android 进程通信
- 播布客教学视频_C学习笔记_8.1_统计1到100中9的个数(分治)
- NodeJs 面试题 2023
- 《Android软件安全权威指南》原生程序分析 阅读笔记
- freesurfer recon-all并行运算parallel
- python怎么隐藏输入法_打开和关闭输入法
- 代码分析之numpy.array
热门文章
- BigBrother的大数据之旅Day 15 sqoop
- 爆笑!史上最强的中国式英语
- 2022 前端一场面试及答案整理
- py3+requests+urllib+bs4+threading,爬取斗图图片
- Python:有趣的猜数字小游戏
- 【Bootstrap-学习小结】
- php cpu占有率过高怎么办,system占用cpu过高怎么办
- ssh no matching host key type found. Their offer: ssh-rsa
- Silverlight+WCF 新手实例 象棋 主界面-棋谱-回放-结局(四十)
- 简析令人头大的定义 void (*(*f[])())()