Install phpmyadmin on Amazon Linux

After installing phpMyAdmin using these commands on Amazon Linux…:

sudo yum --enablerepo=epel install phpmyadmin 
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

…I have tried the steps described in this tutorial (referenced in previous StackOverflow Answers), But after issuing the command, I get the following error message

sudo chmod 0700 /etc/httpd/conf.d/phpmyadmin.conf: Cannot find file or directory.

How to use Amazon Linux To run phpMyAdmin?

You can use yum command to install phpmyadmin rpm package to enable epel repository

yum --enablerepo=epel install phpmyadmin

Then, you must change the phpMyAdmin configuration file to allow access from your IP.

Oh, you may need to change the sudo command to be case sensitive. Double check your file name, but on my system it will

sudo chmod 0700 /etc/httpd /conf.d/phpMyAdmin.conf

After installing phpMyAdmin using these commands on Amazon Linux…:

sudo yum --enablerepo=epel install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

…I have tried the description in this tutorial (Quoted in the previous StackOverflow Answers), but after issuing the command I get the following error message

sudo chmod 0700 /etc/httpd/conf.d/phpmyadmin.conf: Cannot find file or directory .

How to run phpMyAdmin on Amazon Linux?

You can install phpmyadmin rpm package via yum command to enable epel repository

yum --enablerepo=epel install phpmyadmin

Then, you must change the phpMyAdmin configuration file to allow access from your IP.

Oh, you may need to change the sudo command to be case sensitive Write. Double check your file name, but on my system it will

sudo chmod 0700 /etc/httpd/conf.d/phpMyAdmin.conf

Leave a Comment

Your email address will not be published.