我在ubuntu上安装XAMPP,我知道错误打开它们

时间:2014-06-25 19:28:37

标签: php ubuntu

我确实在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). 

1 个答案:

答案 0 :(得分:0)

在你的xampppath \ apache \ conf \ extra open file 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文件夹中的文件000-ispconfig.conf文件的末尾添加

<Directory /usr/share/phpMyAdmin>
Order allow,deny
Allow from all
</Directory>

并重新启动xampp,一切都应该很好