CentOS Quick Install lamp

Source: Internet
Author: User
Tags php mysql
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.

  • Related Article

    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.