我确实在ubuntu上安装了XAMPP,并且工作正常,但是今天当我安装nessus时,我发现我无法进入phpmyadmin,它给了我这个错误:
#2002 - No such file or directory
The server is not responding (or the local server's socket is not correctly configured).
在你的xampppath'apache'conf'extra打开httpd-xampp.conf文件
:
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
替换为
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
添加行:
//
编辑在apache配置的sites-enabled文件夹中的file 000-ispconfig.conf文件末尾添加
<Directory /usr/share/phpMyAdmin>
Order allow,deny
Allow from all
</Directory>
并重新启动xampp,应该一切正常