: 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.