How to install phpMyAdmin on server ubuntu

Maybe you know that phpMyAdmin is a popular software to manage the MySQL data base. Now, we will try install it on your server. I suppose that you installed the mysql and apache on your server. We will install two ways:

1.  Install the phpMyAdmin package by using the command line:

sudo apt-get install phpmyadmin

You will see next step like

install-phpmyadmin

You can enter to continue

database-for-phpmyadmin

Choose yes to coninute

password-phpmyadmin

password-phpmyadmin-1

You can set the password for phpmyadmin page.

We finish to install the phpMyAdmin. However, we need to configure the apache to run it:

sudo nano /etc/apache2/apache2.conf

And then, you can restart apache

sudo service apache2 restart

Now go to the page http://yourip/phpmyadmin to manage your database.

You can uninstall the phpmyadmin by using the command line:

sudo apt-get purge phpmyadmin

2.  Install phpMyAdmin script. I recommend this way. It will be easy to edit the link phpmyadmin and it only use the memory when it run.

You can move to the root folder of your website:

cd /yourwebsite

Down load the package by using command line:

wget https://files.phpmyadmin.net/phpMyAdmin/4.4.14/phpMyAdmin-4.4.14-all-languages.tar.gz

Extract it by using the command line:

tar -xzvf phpMyAdmin-4.4.14-all-languages.tar.gz

Change the folder phpMyAdmin-4.4.14-all-languages to get short link

mv phpMyAdmin-4.4.14-all-languages phpMyAdmin

Now visit the link http://yourwebsite/phpMyAdmin to manage your database.

 

 

Add Comment

Required fields are marked *. Your email address will not be published.