解決 XAMPP 7.0.23+,phpmyadmin 不能被 localhost 以外訪問

打開 config.inc.php

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
        AllowOverride AuthConfig
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

    </Directory>

改成

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
        AllowOverride AuthConfig Limit
         Order allow,deny
         Require all granted
         Allow from all

    </Directory>

就可以被其他 ip 登入,因沒設密碼所以,人人都會自動進入到 phpmyadmin,必須把登入MODE 改成 http


修改成網頁輸入密碼登入

$cfg[‘Servers’][$i][‘auth_type’] = 'config'; –> 改成 http

Replies: 0 / Share:

You might also like …

Post Comment

Your email address will not be published. Required fields are marked *