Home  >  Article  >  Database  >  How to install and configure phpmyadmin in nginx server

How to install and configure phpmyadmin in nginx server

王林
王林Original
2019-12-10 09:10:102602browse

How to install and configure phpmyadmin in nginx server

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

How to install and configure phpmyadmin in nginx server

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn