CentOS config PHP appears you don ' t has permission to access the This serve

Source: Internet
Author: User
Tags config php

before configuring the PHP environment, enter it on the browserhttp://192.168.1.124/index.php

You encounter a problem with the permission to access the This server

Search on the Internet a lot of information, some say it is the reason for SELinux, it can be turned off (not at all!) ),

Later, I found the description of this article:

Split Line **************************

Error running PHP program in centos5.3+MySQL 5.0.45 +apache2.2.3 +php5.1.6

You don't have permission to access/on the This server

After loading the apache+php+mysql,

After copying a copy of phpMyAdmin, an error occurred:

You don't have permission to access/on the This server

Some say it's okay to turn selinux off.

And I found the reason and the method:

Because of the permissions that the site performs, it is generally read from the httpd scripts and the daemon this permission.

There is no access to the extracted folders in the system.

We're going to create a new directory under html/(this will be automatically divided into read from all httpd scripts and the daemon permissions)

Then make a copy of the file to put it in (note is not cut, I did not directly unzip the compressed package into it is not possible!) )

Run and try it.


centos5.3+MySQL 5.0.45 +apache2.2.3 +php5.1.6 (all system comes with it)






Welcome to join my public number--kick the boys love to learn

CentOS config PHP appears you don ' t has permission to access the This serve

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.