2012-07-24 85 views
16

我拼命嘗試獲取phpMyAdmin訪問xampp for linux 1.8.0 for Ubuntu 12.04 LTS。我知道這是一個普遍的問題,但我已經在網絡上嘗試了很多線程,而且我仍然堅持讓它發揮作用。PHPMyadmin xampp錯誤

Xampp似乎運行正常,localhost開始頁面不錯,包括鏈接到側邊欄中的phpmyadmin。當我打開那個鏈接我得到一個403錯誤:

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".

If you think this is a server error, please contact the webmaster.

Error 403

localhost Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4

我已經試過無數的事情,包括修改的httpd-xampp.conf,其中的相關位現在看起來像:http://pastebin.com/J4f4tNVs

我的/ opt/LAMPP/phpMyAdmin的/ config.inc.php文件看起來像:http://pastebin.com/5PZPXK5s

以下的其他指令改變/ LAMPP的所有權:

chown -Rv nobody:root ./lampp/* 

請幫幫我!

謝謝, 馬特

回答

40

我已經找到了解決辦法在這裏:http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185

編輯/opt/lampp/etc/extra/httpd-xampp.conf並添加要求所有在授予底部線塊<Directory "/opt/lampp/phpmyadmin">有以下代碼:

<Directory "/opt/lampp/phpmyadmin"> 
    AllowOverride AuthConfig Limit 
    Order allow,deny 
    Allow from all 
    Require all granted 
</Directory> 
+0

謝謝。這個問題讓我失望了,於是我轉而去LAMP迎接最後期限。如果我再次嘗試XAMPP,我會回來的。 – KindOfGuy 2012-07-25 09:03:13

+1

謝謝jeebus。一直在尋找年齡。 – 2012-09-20 16:26:06

+2

這需要被標記爲答案,因爲這正是它的原因! – mickburkejnr 2013-04-03 13:54:57