Install and Secure phpMyAdmin with Nginx on Ubuntu

 Install and Secure phpMyAdmin with Nginx on Ubuntu 

Install phpMyAdmin

sudo apt-get update
sudo apt-get install phpmyadmin

 For the Nginx web server to find and serve the phpMyAdmin files correctly, we’ll need to create a symbolic link from the installation files to our Nginx document root directory

sudo ln -s /usr/share/phpmyadmin /var/www/html

Finally, we need to enable the mcrypt PHP module, which phpMyAdmin relies on. This was installed with phpMyAdmin, so we’ll toggle it on and restart our PHP processor:

sudo phpenmod mcrypt
sudo systemctl restart php7.4-fpm

With that, our phpMyAdmin installation is now operational

http://server_domain_or_IP/phpmyadmin

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s