您好,欢迎访问一九零五行业门户网

解决远程访问PHPMyAdmin出错的问题

如果你遇到远程访问phpmyadmin出现以下错误时: for security reasons, this url is only accesible using localhost (127.0.0.1) as the hostname 或者 access to the requested directory is only available from the local network. 那么请检查你的apache
如果你遇到远程访问phpmyadmin出现以下错误时:
for security reasons, this url is only accesible using localhost (127.0.0.1) as the hostname
或者
access to the requested directory is only available from the local network.
那么请检查你的apache的虚拟目录的配置文件。
配置文件搜索*.conf文件你会发现,配置phpmyadmin的路径下有会有这样一段代码allow from 127.0.0.1
alias /phpmyadmin /opt/redmine-2.2.3-0/apps/phpmyadmin/htdocs # authtype basic # authname phpmyadmin # authuserfile /opt/redmine-2.2.3-0/apache2/users # require valid-user allowoverride none php_value upload_max_filesize 80m php_value post_max_size 80m order allow,deny allow from 127.0.0.1 satisfy all = 2.3> require local errordocument 403 for security reasons, this url is only accesible using localhost (127.0.0.1) as the hostname
或者
    order deny,allow     deny from all     allow from ::1 127.0.0.0/8     errordocument 403 /error/http_xampp_forbidden.html.var
解决方法将allow from 127.0.0.1或者allow from ::1 127.0.0.0/8修改为:
allow from all
这样再重启apache,phpmyadmin权限问题就得到解决了。
(...)
read the rest of 解决远程访问phpmyadmin出错的问题 (0 words)
© lixiphp for lixiphp, 2013. | permalink | no comment |add to del.icio.us
post tags: forbidden, php, phpmyadmin
feed enhanced by better feed from ozh
其它类似信息

推荐信息