Installing phpMyAdmin on Debian 8


This guide will help you get phpMyAdmin installed on a Debain 8. 

Before we begin, please make sure everything is fully up to date by running these commands.

                apt-get update && apt-get upgrade -y

Installing PHPMyAdmin on Debian 8 - Updating System

Next make sure you have the PHP module mcrypt installed.

                apt-get install mcrypt

Installing PHPMyAdmin on Debian 8 - Installing mcrypt

Restart apache

                /etc/init.d/apache2 restart

Installing PHPMyAdmin on Debian 8 - Restarting Apache
 

Next install phpMyAdmin

                apt-get install phpmyadmin

Installing PHPMyAdmin on Debian 8 - Installing phpmyadmin

Select apache2 on the next screen by pressing spacebar.

Installing PHPMyAdmin on Debian 8 - Configuring phpmyadmin via SSH

Select yes on the next screen.

Installing PHPMyAdmin on Debian 8 - Configuring phpmyadmin Final Screen

Next cd into your website directory and create a symbolic link.

                cd /var/www/html/

                ln -s /usr/share/phpmyadmin

Installing PHPMyAdmin on Debian 8 - Creating symlink
 

You may want to secure phpMyAdmin now by creating an .htaccess file.

                cd /var/www/html/phpmyadmin

                nano .htaccess

Add these lines and replace the IP with your own IP.

                order allow,deny

                allow from 12.34.56.78

 

You may now access phpMyAdmin by going to ‘yourdomain.com/phpmyadmin’.

Posted in
Last update:
2016-06-08 16:42
Average rating:0 (0 Votes)