nntuan22
By:
nntuan22

I cannot access phpmyadmin on CentOS 6.5 x86

August 27, 2014 5.4k views

Hi all,

I installed phpMyAdmin on my server by following instructions this link: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-a-centos-6-4-vps
But I get a error is: You don't have permission to access /phpmyadmin on this server?

Content of file /etc/httpd/conf.d/phpmyadmin.conf is:

<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Deny from all
Allow from <my_ip_address>
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

Please help..

Thanks,

1 comment
  • Hi,

    I have same problem
    I cannot access phpmyadmin on CentOS 7.0 x64

    Alias /phpmyadmin /usr/share/phpmyadmin
    Alias /phpMyAdmin /usr/share/phpmyadmin
    Alias /mysqladmin /usr/share/phpmyadmin
    <Directory /usr/share/phpMyAdmin/>
    <IfModule !mod_authz_core.c>
    Order Deny,Allow
    Allow from All
    </IfModule>
    </Directory>

    Please help me

1 Answer

after changing your /etc/httpd/conf.d/phpmyadmin.conf with your ip did you restart your apache? sudo apachectl -k stop; sudo /etc/init.d/httpd start;

Have another answer? Share your knowledge.