Prerequisites: You have started Apache and MySQL servers. When CentOS is installed, the two servers are not started. We need to start them in the system service.
1. We need to log in with the root account.
2. PHP support module installation. After the CentOS operating system is installed, the PHP support module is not installed. To use PhpMyAdmin, you must first install the PHP support module. We need two PHP support modules: 1, "PHP scripting language for creating dynamic web sites"; 2. "A module for PHP applications that use MySQL databases". After installing these two modules, we can run PHP, mySQL can be accessed in PHP.
3. Download PhpMyAdmin. Official Website: http://www.phpmyadmin.net/home_page/index.php to download the latest version of phpmyadmin, select the extension tar.gz file. After the download is complete, copy the downloaded file to the "/var/www/html" directory.
The latest phpmyadminversion is phpmyadmin-3.5.5-all-languages.tar.gz. This file name is used below.
4. Start the shell terminal by performing the following steps:
A. Go to the root directory of the website.
Cd/var/www/html
B. decompress the compressed program package.
Tar xvfz phpMyAdmin-3.5.5-all-languages.tar.gz
C. Move the directory phpMyAdmin-3.5.5-all-languages to the phpmyadmin folder
Music phpMyAdmin-3.5.5-all-languages phpmyadmin
D. Go to the phpmyadmin directory.
Cd phpmyadmin
E. Copy the sample configuration file to the config. inc. php file.
Cp config. sample. inc. php config. inc. php
F. Restart apache.
Service httpd restart
5. Verify that PhpMyAdmin is successfully installed. Start the browser and enter http: // localhost/phpmyadmin/in the address bar. If the installation is successful, you should see the PhpMyAdmin page.