2014-06-25 56 views
-2

我在ubuntu上安裝了XAMPP,並且它工作正常,但是今天當我安裝nessus時,我發現我無法進入phpmyadmin它給了我這個錯誤:我在ubuntu上安裝XAMPP,我有錯誤打開它們知道

#2002 - No such file or directory 
The server is not responding (or the local server's socket is not correctly configured). 
+0

id建議你參考以下帖子 [1]:http://stackoverflow.com/questions/10426501/how-to-solve-the-xampp-1-7-7-phpmyadmin-mysql-error-2002-in-ubuntu –

+0

我托盤它,但沒有成功 – user3694409

回答

0

在你xampppath \ apache的\的conf \額外打開文件的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配置的啓用站點文件夾中的文件000-ispconfig.conf文件的末尾添加

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

並重新啓動xampp,一切都會好的

+0

我得到這個當我startmysql'XAMPP:啓動MySQL ... XAMPP:無法啓動MySQL! ' – user3694409

+0

試須藤搭配chmod 755 /opt/lampp/etc/my.cnf 須藤CHMOD -R 777 /選擇/ LAMPP /變種/ MySQL的 須藤CHOWN -hr根/選擇/ LAMPP –

+0

CHOWN -hr根/選擇/ lampp - > chown:在'root/opt/lampp'之後缺少操作數' 嘗試'chown --help'以獲取更多信息。 – user3694409

相關問題