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

How to install and configure phpmyadmin in nginx server

王林
Release: 2019-12-10 09:10:10
Original
2731 people have browsed it

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
Copy after login

Move to the corresponding directory location and change it to an easily accessible name:

mv phpMyAdmin-4.1.12-all-languages /www/phpmyadmin
Copy after login

2. Configure phpmyadmin

Copy a configuration file:

#cd /www/phpmyadmin
#cp config.sample.inc.php config.inc.php
Copy after login

Configure config.inc.php

#vi config.inc.php
Copy after login

Set a secret key for internal use (related to internal encryption, not directly related to page login)

$cfg['blowfish_secret'] = ‘www.tudaxia.com';
Copy after login

3. Configure the site under Nginx

vi /etc/nginx/conf.d/phpmyadmin.conf
Copy after login

How to install and configure phpmyadmin in nginx server

4. Restart nginx:

#service nginx restart
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template