1. Install Apache server
Yum Install httpd
Start the service
Service httpd start or/etc/init.d/httpd start
2. Install MySQL Database
Yum install MySQL Mysql-server
Start the database
Service Mysqld startor/etc/init.d/mysqld Start
Set Root password
mysqladmin-u root password ' password '
3. Install PHP
Yum Install PHP
Service httpd Restart
Test information
echo "<?php phpinfo ();?>" >/var/www/html/info.php
Install other
Yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
Service httpd Restart
4. Self-Starting
Chkconfig--levels 2345 httpd onchkconfig--levels 2345 mysqld on
5. Catalogue
Apache Master profile:/etc/httpd/conf/httpd.confapache Web site root:/var/www/html/apache log file directory:/var/log/httpdmysql my.cnf configuration file:/ Etc/my.cnfmysql database File Location:/usr/lib/mysql
Cetos 6.3 Mounting apache+mysql+php