天天看點

XAMPP在MacOS上無法通路phpMyAdmin問題的解決辦法(Error 403)報錯提示報錯原因操作步驟參考:

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

操作步驟

  1. 打開XAMPP面闆>Volumes>/opt/lampp為”Mount“狀态;
  2. 點選Explore;
  3. 打開路徑/etc/extra/中的httpd-xampp.conf檔案;
  4. 找到<Directory “/opt/lampp/phpmyadmin”>并修改裡面内容;
  5. Require local

    這行替換為以下内容:
Order allow,deny
 Allow from all
 Require all granted
           
  1. 儲存”httpd-xampp.conf”檔案;
  2. 重新開機Apache:打開XAMPP面闆>Services>Apache>Restart。
  3. General>Go to Application
  4. 點選右上角phpMyAdmin

參考:

XAMPP在macOS下無法通路phpmyadmin的問題(Enable Remote Access)