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 the XAMPP server, then click the General tab —> Go to Application button, it will direct me to the XAMPP dashboard web page.

When I click the phpMyAdmin link on the 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 the XAMPP app icon in macOS Finder —> Applications folder.
  2. Click Volumes tab —> Mount button to mount /opt/lampp volume.
  3. Click Explore button to open /opt/lampp folder in macOS Finder.
  4. Open etc / extra folder, edit httpd-xampp.conf file.
  5. Comment line which load Perl module.
    #LoadModule perl_module        modules/mod_perl.so
  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
    </Directory>
  7. Stop and Start the XAMPP server, wait for a while, then phpMyAdmin can be accessed successfully.
0 0 votes
Article Rating
Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x