If you have installed phpMyAdmin in your linux server (centos/RHEL/debian), and tried to access phpMyAdmin in most cases you will get this 403 forbidden error. I have seen this issue very often if you are installing phpmyadmin using yum or by apt-get. By default phpmyadmin installed path is /usr/share/phpmyadmin and the apache configuration file is located in /etc/httpd/conf.d/phpmyadmin.conf.
You don't have permission to access /phpmyadmin/ on this server.
Remove or comment the first two lines in bold.
#Deny from all
Allow from 127.0.0.1
Restart the apache server.
service httpd restart
Once this is done, you should be able to see phpmyadmin working by pointing your browser to http://ipaddress/phpmyadmin
This method worked for me and leave a comment here if there is an issue.
- Install LAMP Server for Centos/RHEL
- Install Apache Mod_Substitute
- Enabling ModRewrite in XAMPP Apache
- Apache Error Log File Path in Cpanel
- How to Install suPHP in Linux
- Apache failed to start after installing Ioncube with Zend Optimizer!
- Install ModSecurity for Redhat/Centos
- How to install a local copy and configure WordPress on Ubuntu
- Setup Postfix/Dovecot MailServer for Centos/RHEL
- bind /etc/named.conf missing