Install phpMyAdmin in CentOS

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.