Lamp is a free, open source solution that represents Linux, Apache, MySQL, and PHP, and is used primarily as a common Web server for the establishment of a viable one. So how to install apache+php+mysql fast installation under CentOS6? The specific installation configuration steps can be performed as follows: 1. Preparation using Yum to install, in order to improve speed, it is best to first modify the Chinese CentOS mirror server. At present, there are three mirrors can choose, respectively: China University of Science and Technology, 163 and Sohu Mirror, recommended education network users choose Zhong Ke, telecom users choose 163, their repo file this blog made a backup as follows: http://yupengyan.com/ wp-content/uploads/2012/02/centos6-base-163.repo_.txthttp://yupengyan.com/wp-content/uploads/2012/02/ Centos6-base-sohu.repo_.txthttp://yupengyan.com/wp-content/uploads/2012/02/centos6-base-ustc.repo_. TXT The following command is to back up the Centos-base.repo file and modify the use of 163 image as a yum Source: mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/ Centos-base.repo.savewget HTTP://MIRRORS.163.COM/.HELP/CENTOS6-BASE-163.REPOMV centos6-base-163.repo/etc/ Yum.repos.d/centos-base.repo2. Updating the system kernel Yum-y update3. Installing Apahce, MySQL, phpyum-y install httpd php mysql mysql-server by default, MySQL Data catalog is located in/var/lib/mysql4. Install related components: Yum install php-mysql php-gd php-imap php-ldap php-odbcphp-pear php-xml Php-xmlrpc5. Installing the MySQL management tool phpmyadminyum-y install PHPMYADMIN6. Configuring Apache with System boot Chkconfig--levels 235 httpd on/eTC/INIT.D/HTTPD start7. Configure MySQL with system boot chkconfig--levels 235 mysqld on/etc/init.d/mysqld start8. Set the database root password/usr/bin/ mysqladmin-u root password ' new+password#www.yupengyan.com ' 9. Test if PHP is installed successfully the default root directory for Apache in CentOS is/var/www/html, config file/ Etc/httpd/conf/httpd.conf. Other configurations are stored in the/etc/httpd/conf.d/directory.
The above describes the CentOS rapid installation lamp, including the aspects of the content, I hope the PHP tutorial interested in a friend to help.