It took a long time to find the most correct answer today. The speech is really not easy.
Baidu came out of the 99% are collected content, all is wrong.
You don't have permission to access/on the thisserver.
Baidu out of the solution:
1) Turn off SELinux. The server didn't turn on SELinux at all.
2) Modify the Allow from all! in httpd.conf Pit, Apache is 2.4+, there is no allow from all, now changed to Require all granted!
3) Modify Chcon-r httpd_user_content_t! Pit, fraught, CentOS7 there is no such a context, because SELinux does not open at all
4) Modify Chown Apache:-r/home/xxx.com/public_html! Fraught, pit ratio! This has changed the directory, his original user did not have directory access permissions! Tease ratio!!!
......
Baidu for one hours, all this solution, out of the page is all a lot of ads.
The biggest search engine in China is a collection station full of ads! Collect station does not matter, the key is all is advertisement, even normal reading cannot read!
Finally the correct solution:
chmod o+x/home/zbphp.com
Other user groups on the previous level of the directory must also have the X EXECUTE permission otherwise Apache cannot read!
Write to the end, thank the Segmentfault community of enthusiastic people, or really blind toss a few days may also give up. Complain about, the Internet with Baidu search out of things is not accurate! Google,goagent is always intermittent and unfamiliar with English. When you feel like Chaoxian, backward but self-feeling good, many people use Baidu also feel proud patriotic. (by [email protected])
Linux Centos7 Apache Access you don ' t has permission to access/on the this server.