Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure phpMyAdmin in Linux CentOS7 system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install and configure phpMyAdmin in the Linux CentOS7 system. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

How to configure phpMyAdmin in a Linux CentOS7 system.

Catalogue

Environmental preparation

Installation package

Basic settings

Site Preview

Environmental preparation

Linux centos7 system

Ssh software

Php language environment

Mysql database

Installation package

Download from phpMyAdmin official website

Before installation, use xshell to connect to the remote server.

Use wget for download and installation this time.

First, go to the download folder.

This is where you keep the download package.

Cd / home/downloads

Second, download the phpMyAdmin package.

Wget https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-all-languages.zip

Finally, extract the installation package.

Unzip phpMyAdmin-4.8.5-all-languages.zip

Basic settings

First, move the unzipped installation package to the specified folder.

Mv phpMyAdmin-4.8.5-all-languages / usr/share/nginx/html/myadmcd / usr/share/nginx/html/myadm

Second, modify the configuration file.

Cp wp-config-sample.php wp-config.phpvi wp-config.php

The following is the content of wp-config.php.

/ / * * MySQL settings-specific information comes from the name of the WordPress database you are using * / define ('DB_NAME',' test'); / * MySQL database user name * / define ('DB_USER',' phpuser'); / * MySQL database password * / define ('DB_PASSWORD',' phpuser123.') / * * MySQL host * / define ('DB_HOST',' localhost')

Finally, configure the nginx site.

Vi / etc/nginx/vhost/pam.confserver {listen 80; server_name phpmyadmin.eg.org; access_log / var/log/nginx/phpmyadmin-access.log main; error_log / var/log/nginx/phpmyadmin-error.log; location / {root / usr/share/nginx/html/myadm; index index.php;} location ~\ .php$ {root / usr/share/nginx/html/myadm Fastcgi_pass 127.0.0.1 location 9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME / usr/share/nginx/html/myadm/$fastcgi_script_name; include fastcgi_params;} location ~ /\ .ht {deny all;}}

Site Preview

Add a dns record to the local hosts file.

192.168.1.101 phpmyadmin.eg.org

Then type phpmyadmin.eg.org in the browser and you can access it.

This is the end of the article on "how to install and configure phpMyAdmin in the Linux CentOS7 system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report