Linux安裝Testlink後,進入phpmyadmin報錯的解決方法

一.環境說明

服務端:

    linux系統版本:CentOS 7.4.1708

    testlink版本:1.9.18

訪問端:

    Chrome 70.0.3538.67

二.報錯信息

訪問http://xxxx/phpmyadmin頁面出現如下報錯:

-----------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------

三.解決方法

連接到遠程linux服務端後,修改"httpd-xampp.conf"配置文件再重啓xampp即可!

1. 進入vi模式

vi ./etc/extra/httpd-xampp.conf

2. 往下拉,找到底部的這幾行:

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

3. 將其中的 Require local  修改爲 Require all granted    

4. 退出 vi 時記得保存:

:wq

5. 最後重啓xampp即可:

/opt/lampp/xampp restart

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章