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.
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.
- Open XAMPP by click XAMPP app icon in macOS Finder —> Applications folder.
- Click Volumes tab —> Mount button to mount /opt/lampp volume.
- Click Explore button to open /opt/lampp folder in macOS Finder.
- Open etc / extra folder, edit httpd-xampp.conf file.
- Comment line which load perl module.
#LoadModule perl_module modules/mod_perl.so
- 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>
- Stop and Start XAMPP server, wait for a while, then phpMyAdmin can be accessed successfully.