我刚刚在我的虚拟专用服务器上安装了phpMyAdmin,但我无法从我的浏览器访问它来设置它。 我验证了/ phpmyadmin上的文件夹权限与我的public_html文件夹相同。无法访问phpmyadmin(403权限错误)
当我去url(http://www.testsite.com/phpmyadmin)时,我得到一个403错误 “你没有权限访问这台服务器上的/ phpmyadmin,在www.testsite.com上有Apache/2.2.15(CentOS)服务器。 “
然后我去我的/var/log/httpd/error.log看到一个拒绝访问的条目(注意我用x's部分地替换了我的IP地址) [Thu Oct 29 19:12:46 2015 ] [错误] [客户端xx.xxx.68.18]客户端拒绝由服务器配置:在/ usr /共享/ phpMyAdmin的
我然后编辑/etc/httpd/conf.d/phpMyAdmin.conf其具有以下线
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
在上面列出每段代码,我仅加入下面允许从:: 1
Allow from xx.xxx.68.18
我仍然得到同样的403错误。我希望能够解决这个问题的一些见解和方向。谢谢