I know this is an old question but it came up in Google and the above answer didn't do it for my freshly installed EC2 Linux (June 2017). You don't need to do any of the sym linkage mentioned in other answers, the install makes an apache config file for the phpmyadmin installation automatically, you just need to remove the localhost security restriction, then restart httpd.
If you want a quick copy and paste to get it working in 2017:
sudo yum --enablerepo=epel install phpmyadmin
Edit the httpd config file which was created by the phpmyadmin yum installation:
sudo nano /etc/httpd/conf.d/phpMyAdmin.conf
Comment out this section near the top of the file, it is restricting access to localhost (and you're connecting over the internet not locally):
<Directory /usr/share/phpMyAdmin/>
#<IfModule mod_authz_core.c>
#Apache 2.4
# <RequireAny>
# Require ip 127.0.0.1
# Require ip ::1
# </RequireAny>
#</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>
Restart Apache to pickup the changes.
sudo service httpd restart
In your browser you can now access at /phpmyadmin
As a side point, in the config file you edit if you wanted to change the address you can access phpmyadmin at, at the top you will see Alias lines, set them as you desire.
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
example:
Alias /pma /usr/share/phpMyAdmin
After following all these steps, i'm not seeing phpMyAdmin. where do i find it? – Jeremy Moritz – 2016-06-09T16:21:55.773
See if this helps if you have an empty mywebsite.com/phpmyadmin: http://stackoverflow.com/a/29354629/1800854
– Mo Beigi – 2017-04-21T12:33:16.360You can find the latest version of phpMyAdmin here: http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/
– jchavannes – 2013-09-08T00:33:14.5932the only additional step I had to take was updating the server host endpoint for my RDS database in /etc/phpMyAdmin/config.inc.php -- changing
$cfg['Servers'][$i]['host'] = 'localhost'
to$cfg['Servers'][$i]['host'] = 'xxx.xxxxxxxxxxxx.us-east-1.rds.amazonaws.com'
– Damion Hankejh – 2013-10-09T17:43:01.9001
After installation, the phpmyadmin page is empty in my http://www.mywebsite.com/phpmyadmin.
– Bagusflyer – 2014-03-20T08:18:12.820