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.
- Open XAMPP by click the 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 the XAMPP server, wait for a while, then phpMyAdmin can be accessed successfully.
Thank you!
Thanks, it works 🙂