Reason for this is to minimise the effect of attack if in future phpmyadmin gets compromise attacker won’t get access to our system directly. Now we will be creating a new mysql user with admin privileges for phpmyadmin. sudo systemctl restart apache2 Creating MYSQL user for phpmyadmin Then we can restart our apache2 server to apply our changes. Once phpmyadmin installation is completed we need to enable mbstring mod sudo phpenmod mbstring Here we need to keep a strong password, I would recommend using a password generator to generate a strong password. We need to select apache2 as our server and proceed with the installation. sudo apt install phpmyadmin php-json php-curl php-mbstring php-zip php-gd We will be installing phpmyadmin with few mods which we will be requiring, to install phpmyadmin run below command. Now once apache2 installation is completed we can proceed with further steps by installing our phpmyadmin. We can now visit the IP in browser and check wether its running.
To start apache server we will use below command. sudo apt install -y apache2 mysql-server php libapache2-mod-php php-mysql -y We will begin with installing our apache2 web server and few more components required to setup the server up and running. I will be using freshly set Ubuntu 20.10 server so that you can follow along from the beginning.
#INSTALL PHPMYADMIN UBUNTU SECURED HOW TO#
So i will guide you how to secure the phpmyadmin so that you can avoid almost 80% of the attacks. Today i’ll show you how to secure your phpmyadmin on latest ubuntu 20.10, as we know almost everyone uses phpmyadmin to keep their website data.