I always get this message when I would like access my phpMyAdmin.
w3m localhost/phpmyadmin
Forbidden
You don\'t have permission to access /phpmyadmin/ on this
None of the configuration above worked for me on my CentOS 7 server. After hours of searching, that's what worked for me:
Edit file phpMyAdmin.conf
sudo nano /etc/httpd/conf.d/phpMyAdmin.conf
And replace this at the top:
AddDefaultCharset UTF-8
# Apache 2.4
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1