天天看點

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.