Install and Configure phpMyAdmin with Nginx on CentOS 7
Today, I’ll show you how to Install and Configure phpMyAdmin with Nginx on CentOS 7. Let’s follow these steps:
Step 1 : Login to Server
At first, we need to login to our server via SSH. Open your terminal and run this command:
ssh [email protected] -p PORT
Step 2 : Install phpMyAdmin
First, we need to install EPEL repository. By typing this command, install EPEL repository if not installed:
sudo yum install epel-release
After installing EPEL repository, now we can install phpMyAdmin by typing this command:
sudo yum install phpmyadmin
We have successfully installed phpMyAdmin to our server. We need to create a symbolic link from the installation files to our Nginx document root directory. Hit this command:
sudo ln -s /usr/share/phpMyAdmin /usr/share/nginx/html
Now, restart the PHP processor:
sudo systemctl restart php-fpm
To access the phpMyAdmin interface type this on a browser:
Step 3 : Configure phpMyAdmin
If you notice an error like this ‘needs blowfish_secret passphrase‘, then you need to add blowfish_secret to the phpMyAdmin configuration file.
/usr/share/nginx/html/phpMyAdmin/libraries/config.default.php and add a secret passphrase here:
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
You can use this tool to generate the passphrase BLOWFISH PASSWORD HASH GENERATOR.
That’s it. Thank you.
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***