1. Download and unzip it to phpmyadmin
(Chinese users should choose to download the all-languages version)
After the download is completed, unzip:
unzip phpMyAdmin-4.1.12-all-languages.zip
Move to the corresponding directory location and change it to an easily accessible name:
mv phpMyAdmin-4.1.12-all-languages /www/phpmyadmin
2. Configure phpmyadmin
Copy a configuration file:
#cd /www/phpmyadmin #cp config.sample.inc.php config.inc.php
Configure config.inc.php
#vi config.inc.php
Set a secret key for internal use (related to internal encryption, not directly related to page login)
$cfg['blowfish_secret'] = ‘www.tudaxia.com';
3. Configure the site under Nginx
vi /etc/nginx/conf.d/phpmyadmin.conf
4. Restart nginx:
#service nginx restart
Complete the installation and visit http://yourserver:8081/
, test phpmyadmin.
Recommended related articles and tutorials: phpmyadmin tutorial
The above is the detailed content of How to install and configure phpmyadmin in nginx server. For more information, please follow other related articles on the PHP Chinese website!