天天看点

phpmyadmin不能访问,APACEH报403错误的另外一种解决办法

permission denied: access to /phpmyadmin/ denied

网络上有很多种解决办法,修改conf文件,停用selinux等。

我试过,都解决得不太理想。

通过以下这个贴子,我解决了问题。

url如下:

<a href="http://sanartisan.wordpress.com/2012/04/19/apache-on-centos-6-2-with-sub-directories/">http://sanartisan.wordpress.com/2012/04/19/apache-on-centos-6-2-with-sub-directories/</a>

the problem was that the phpmyadmin package that i copied via winscp took the wrong context, which therefore didn’t have the appropriate permissions for apache to display.

to fix this, i needed to do the following:

note: be sure to use the -r to recursively apply that context against all files. otherwise you will get a server misconfiguration error.

in retrospect, had i downloaded the file via wget directly into the /var/www/html directory, it would have already taken the proper context, and i would not have had the issue.