How To Fix PhpMyAdmin Access Forbidden Error Access To The Requested Directory Is Only Available From The Local Network

After I install XAMPP on macOS, when I open XAMPP server, then click General tab —> Go to Application button, it will direct me to XAMPP dashboard web page.

after start xampp, it will display server service and server ip address at window top area

xampp dashboard web page

When I click phpMyAdmin link at XAMPP dashboard web page top right corner, it will open a web page with below Access forbidden error message.

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

1. Fix PhpMyAdmin Access Forbidden Error Steps.

  1. Open XAMPP by click XAMPP app icon in macOS Finder —> Applications folder.
  2. Click Volumes tab —> Mount button to mount /opt/lampp volume.
    mount xampp install folder in xampp manager window
  3. Click Explore button to open /opt/lampp folder in macOS Finder.
  4. Open etc / extra folder, edit httpd-xampp.conf file.
    macos - xampp - etc - extra - httpd-xampp.conf
  5. Comment line which load perl module.
    #LoadModule perl_module        modules/
  6. Change Directory “/opt/lampp/phpmyadmin” access permission as below.
    # since XAMPP 1.4.3
    <Directory "/opt/lampp/phpmyadmin">
        AllowOverride AuthConfig Limit
        # Require local
        Order allow,deny
        Allow from all
        Require all granted
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  7. Stop and Start XAMPP server, wait for a while, then phpMyAdmin can be accessed successfully.
0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x