Get the App
SLTechnology News&Howtos  ›  Servers  › 

Methods and steps of installing and configuring phpMyAdmin under centos

Shulou Source: shulou.com Published: 2022-06-02 01:20:14 11月15日 Update

It took me two nights to install and configure phpmyadmin under centos. I was so depressed that I couldn't. It was easy to configure phpmyadmin. It was very simple. When I first worked, it was very smooth. Five years later, it took me two nights. I felt that there were a lot of traps under centos, which seemed to work, but it was a dead end. So take notes.

Download the source package on phpMyAdmin's official website http://www.phpmyadmin.net/downloads/.

Cd / usr/local/srcwget https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gztar zxvf phpMyAdmin-4.6.0-all-languages.tar.gz

2. Put phpMyAdmin-4.6.0-all-languages under the web directory

Mv phpMyAdmin-4.6.0-all-languages / usr/local/nginx/html// rename mv phpMyAdmin-4.6.0-all-languages phpMyAdmin

III. Configuration

Cd / usr/local/nginx/html/phpMyAdmin/libraries

Vim config.default.php

/ / modify the following place / / localhost = > 127.0.0.1$ cfg ['Servers'] [$I] [' host'] = '127.0.0.1' [Servers'] [$I] ['user'] =' root';$cfg ['Servers'] [$I] [' password'] = '123456'

IV. Visit

This project is placed under the nginx test directory html

Enter http://localhost/phpMyAdmin in the browser

Then enter the user name and password.

5. Error message

1 、 the local server's socket is not correctly configured

The solution is as follows: modify host in the configuration file

/ / localhost = > 127.0.0.1$ cfg ['Servers'] [$I] [' host'] = '127.0.0.1'

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Tags: Configuration directory input no depressed below information content place official website password that is feeling file scheme time dead end browser source code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Xiaomi MySQL Linux