XAMPP在MacOS上無法通路phpMyAdmin問題的解決辦法(Error 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”.
報錯原因
因為是以”虛拟機“方式儲存xampp檔案,是以電腦通路也成了非本地通路
按照提示修改httpd-xampp.conf
操作步驟
- 打開XAMPP面闆>Volumes>/opt/lampp為”Mount“狀态;
- 點選Explore;
- 打開路徑/etc/extra/中的httpd-xampp.conf檔案;
- 找到<Directory “/opt/lampp/phpmyadmin”>并修改裡面内容;
- 将
這行替換為以下内容:Require local
Order allow,deny
Allow from all
Require all granted
- 儲存”httpd-xampp.conf”檔案;
- 重新開機Apache:打開XAMPP面闆>Services>Apache>Restart。
- General>Go to Application
- 點選右上角phpMyAdmin
參考:
XAMPP在macOS下無法通路phpmyadmin的問題(Enable Remote Access)