First step: Update the System kernel
Yum-y Update If a failure error is performed, the repair command can be executed: rpm–import/etc/pki/rpm-gpg/rpm-gpg-key*
Step Two: Install Apahce, Mysql, PHP, and its underlying extensions.
Yum-y Install httpd php php-mysql mysql mysql-server
Step Three: Install other common extensions for PHP
Yum-y Install PHP-GD php-xml php-mbstring php-ldap php-pear php-xmlrpc
Fourth step: Installing Apache Extensions
Yum-y Install httpd-manual mod_ssl mod_perl mod_auth_mysql
Fifth step: Set the Apache/mysql-server environment to boot automatically
# set Apache to boot from boot
/sbin/chkconfig httpd on
# Add MySQL Service
/sbin/chkconfig--add mysqld
# set MySQL to boot from
/sbin/chkconfig mysqld on
Sixth step: Launch Apache and MSYQL
Service httpd Start
Service mysqld Start
Seventh step: Set the MySQL database root account password
mysqladmin-u root password ' mysql Administrator password '
Eighth Step: Install phpMyAdmin
From phpMyAdmin official website: http://www.phpmyadmin.net/home_page/downloads.php Download the latest phpMyAdmin installation package, download to the site directory under the default under/var/www/html/. After extracting the phpMyAdmin compression package, locate config.sample.inc.php renamed to config.inc.php, modify the configuration, and the installation is complete.
(Reproduced in ... )
Yum installation lamp in the CentOS environment