Youdonthavepermissiontoaccessonthisserve appears when you configure PHP in CentOS.

Source: Internet
Author: User
: This article mainly introduces Youdonthavepermissiontoaccessonthisserve in CentOS PHP configuration. if you are interested in the PHP Tutorial, refer to it. Before configuring the PHP environment, enter http: // 192.168.1.124/index. php in the browser

You don't have permission to access on this server

I found a lot of information on the Internet, some of which are the cause of selinux. I can just turn it off (no matter what it is !),

Later, I found the description of this article:

**************** **********

"

An error occurred while running the PHP program in CentOS5.3 + MySQL 5.0.45 + Apache2.2.3 + PHP5.1.6.

You don't have permission to access/on this server

After installing apache + php + mysql,

An error occurred while copying phpmyadmin:

You don't have permission to access/on this server

Some people say it's okay to turn selinux off.

I found the cause and method:

Because of the website execution permission, Read from all httpd scripts and the daemon permission is generally required.

This permission is not granted to the decompressed folder in the system.

Create a directory in html/(Read from all httpd scripts and the daemon permission will be automatically assigned)

Copy the file and put it in it (note that it is not cut. I can't decompress the package directly before !)

Run it.

CentOS5.3 + MySQL 5.0.45 + Apache2.2.3 + PHP5.1.6 (all built-in systems)

Welcome to my public account.


The above describes how to configure the CentOS PHP to show You dont have permission to access on this serve, including some content, and hope to help friends who are interested in the PHP Tutorial.

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.