troubleshooting Question

Not able to connect phpmyadmin on CentOS 6.4 with apache 2.4.4

Avatar of ckinikar
ckinikarFlag for United States of America asked on
LinuxLinux Distributions
13 Comments1 Solution3756 ViewsLast Modified:
Hi,

I have recently upgraded my VPS from CentOS 5.9 to CentOS 6.4 32bit.
On a fresh installed CentOS 6.4 VPS, initially I have installed MySQL 5.5.32 and PhpMyAdmin 4.0.3.
Then I have installed apache-2.4.4 and php-5.5.0 properly with setup.sh available on https:///gist.github.com /boo1ean/5868235

I could not access phpMyAdmin from web browser such as http:// server-ip /phpMyAdmin
I have created phpMyAdmin folder in /usr/local/apache2/htdocs/ also enabled mod_authz_core.so from /usr/local/apache2/conf/httpd.conf.
Please check below config /etc/httpd/conf.d/phpMyAdmin.conf and suggest me the solution.

# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Alias /phpMyAdmin /usr/local/apache2/htdocs/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/local/apache2/htdocs/phpMyAdmin/>
<IfModule mod_authz_core.so>
# Apache 2.4
Require all granted

</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>

<Directory /usr/share/phpMyAdmin/setup/frames/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpMyAdmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule> 

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros