Linux Centos7 Apache Access you don ' t has permission to access/on the this server.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.