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.
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
To fix:
nano /etc/httpd/conf.d/phpmyadmin.conf
Remove or comment the first two lines in bold.
#Order Allow,Deny
#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.
Similar Posts:
- 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!
- How to install a local copy and configure WordPress on Ubuntu
- Install ModSecurity for Redhat/Centos
- Setup Postfix/Dovecot MailServer for Centos/RHEL
- how to create new user for phpmyadmin login


November 4, 2008
Thanks for the help. It solved my problem works great now.
September 28, 2010
now it display the http://localhost/phpmyadmin/
but there is error on the page
” Error
The configuration file now needs a secret passphrase (blowfish_secret). ”
thanks lot now have have somthing do it………
December 16, 2008
Thanks for the help! Worked great
March 5, 2009
Just wanted I needed – thank you.
I wish I’d searched before spending all that time trying to fix it myself!
August 2, 2009
Thanks.. This helps..
October 2, 2009
Thanks a ton. Worked like a charm.
I like the way you have written this with so much confidence and it works.
October 15, 2009
Thanks, this worked
November 2, 2009
Hello,
Great advice! I was looking up and down the whole internet and saw a lot of advices and followed them first. It did not work for me.
Your suggestion is clear cut and made my phpmyadmin work great!!!!
You deserve the website nobel guru technical advice!!!!!
November 8, 2009
I am using Mint 7, tried to apply your solution but when i tried to save the file after writing “Allow from 127.0.0.1″
it said…
Could not find the file /etc/httpd/conf.d/phpmyadmin.conf
Please check that you typed the location correctly and try again.
Plz give a solution.
March 24, 2010
Forbidden
You don’t have permission to access /phpmyadmin/ on this server.
#
# Web application to manage MySQL
#
#Order Deny,Allow
#AllowOverride all
Deny from all
Allow from 127.0.0.1
Allow from MACHINE_IP
Options Indexes FollowSymLinks MultiViews
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
May 8, 2010
Well. For me doesn’t work
#
# Web application to manage MySQL
#
#Order Deny,Allow
#AllowOverride all
Deny from all
Allow from 127.0.0.1
Allow from MACHINE_IP
Options Indexes FollowSymLinks MultiViews
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
# service httpd restart
Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/phpmyadmin.conf:
deny not allowed here
Help please
July 8, 2010
seemore and vinod…
UNcomment Deny from all
#Deny from all
September 7, 2010
Hi guys,
I am fighting with this issue for days
I installed phpmyadmin on centos via yum install phpmyadmin.
My phpmyadmin.conf looks like this
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
====================================
I get “You don’t have permission to access /phpmyadmin/ on this server.”
Please help.
September 22, 2010
This is a security feature and you’re disabling it. Its meant to respond only to the localhost.
February 28, 2011
Thank you so much it works fine
April 4, 2011
thanks for your details, its really worked
April 9, 2011
WORKS FOR MY INTRANET
June 11, 2011
Hi, this didnt work for me. Perhaps simply because i cant find the code you are describing:
#Order Allow,Deny
#Deny from all
Allow from 127.0.0.1
also not sure if this is relevant, but im gonna post it anyways:
my apache is saved as:
/etc/apache2/conf.d/phpmyadmin.conf //as in apach2
instead of
/etc/httpd/conf.d/phpmyadmin.conf //as in httpd
my conf file looks like this:
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
Options Indexes FollowSymLinks
DirectoryIndex index.php
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
# Authorize for setup
AuthType Basic
AuthName “phpMyAdmin Setup”
AuthUserFile /etc/phpmyadmin/htpasswd.setup
Require valid-user
# Disallow web access to directories that don’t need it
Order Deny,Allow
Deny from All
Order Deny,Allow
Deny from All
June 15, 2011
Thanks for your help. It solved the problem of access. I can access to phpMyadmin in Centos 5.5 PIAF.
October 13, 2011
Thanks for your help, is very useful
December 9, 2011
Thanks for the info. Was really helpful solving my problem.
December 11, 2011
Yup! this was the solution for me! thanks for the help!!
December 15, 2011
Not even for me….!! same error still continues…!!
December 19, 2011
I access phpmyadmin index but i receive “Forbidden” on other page, as tbl_replace.php whe i try to add a record.
any help?
January 24, 2012
Works like a charm