环境说明:
Ubuntu: ubuntu的版本为12.04.
XAMPP: xampp-linux-1.8.0.tar.gz
错误:
Access forbidden!
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
解决办法:
进入命令行模式
打开开需要编辑的httpd-xampp.conf文件
# sudo gedit /opt/lampp/etc/extra/httpd-xampp.conf
找到这段代码:
# since XAMPP 1.4.3
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
为其增加一行Require all granted,最后如下所示:
# since XAMPP 1.4.3
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>
保存并退出。重启XAMPP 。