Build lamp Environment "apache2.4.12 + php5.5.12 + mysql5.6.13"

Source: Internet
Author: User
Tags gettext install php prepare

CentOS 6.61. apache/2.4.122. PHP 5.5.123. MySQL 5.6.13#--------------------------------------------------------------------------------# prepare# 1. Install G++yum list Gcc-c++yum install gcc-c++.x86_64# 2. Install Ncursesyum list Ncurses-develyum install ncurses-devel.x86_64# 3. Install Httpd-develyum list Httpd-develyum install httpd-devel.x86_64# 4. Install libxpm-devel.x86_64 [for PHP] # install PHP if (error:x11/xpm.h:no such file or directory) http://www.th7.cn /program/php/201406/213224.shtmlyum list Libxpm-develyum Install libxpm-devel.x86_64# 5. Install CMAKECD/USR/LOCAL/SRC && wget HTTP://WWW.CMAKE.ORG/FILES/V2.8/CMAKE-2.8.10.2.TAR.GZTAR-ZXVF cmake-2.8.10.2.tar.gz && cd cmake-2.8.10.2 &&./bootstrap && gmake Install && CD-# 6. Install libtoolcd/usr/local/src && wget Http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gztar zxvf libtool-2.2.6a.tar.gz && cd libtool-2.2.6 &&./configure && Make && Make install# almost view the blog http://www.cnblogs.com/mophee/archive/2013/03/19/2969456.html# 7. Install SZ Rzyum install lrzsz##--------------------------------------------------------------------------------# 1. Download Apache ' s ref apache MySQL Phpcd/usr/local/srcwget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gzwget Http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gzwget Http://jaist.dl.sourceforge.net/project/pcre/pcre /8.10/pcre-8.10.zipwget Http://down1.chinaunix.net/distfiles/zlib-1.2.3.tar.gzwget http://mirrors.cnnic.cn/ apache//httpd/httpd-2.4.12.tar.gz# 2. Extend package and install Apache Reftar zxvf apr-1.4.5.tar.gz && cd apr-1.4.5 &&./configure--prefix=/us R/LOCAL/APR && make && make install && cd-tar zxvf apr-util-1.3.12.tar.gz && cd apr-util- 1.3.12 &&/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr && make && make Install && Cd-unzip-o pcre-8.10.Zip && cd pcre-8.10 &&./configure--prefix=/usr/local/pcre && make && make install && Amp Cd-tar ZXVF zlib-1.2.3.tar.gz && cd zlib-1.2.3 && cflags= "-o3-fpic"./configure && make &&am P Make install && CD-# 3. Install Apache tar zxvf httpd-2.4.12.tar.gz && mv httpd-2.4.12 apache2mkdir-p/usr/local/lamp/apache2cd/usr/loc Al/src/apache2./configure--prefix=/usr/local/lamp/apache2--sysconfdir=/usr/local/lamp/apache2/conf--with-z=/ Usr/local/zlib--disable-userdir--enable-so--enable-rewrite=shared--enable-deflate=shared--enable-expires= Shared--enable-static-support--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-pcre=/usr/  Local/pcre./configure--prefix=/usr/local/lamp/apache2 \ Apache installation path--sysconfdir=/usr/local/lamp/apache2/conf \ HTTPD configuration file path--with-z=/usr/local/zlib \ dependent zlib--with-included-apr \ Use a copy of bundle APR (can not be installed )--disable-userdir \ request image to user-specific directory--enable-so \ Compile with dynamic shared object (must be installed)--enable-rewrite=share                   d \ rule-based URL manipulation--enable-deflate=shared \ Reduced transmission encoding support--enable-expires=shared \ Expiration header control--enable-static-support \ Build a static link version of support--WITH-APR=/USR/LOCAL/APR \ Dependent apr--w Ith-apr-util=/usr/local/apr-util \ Dependent apr-util--with-pcre=/usr/local/pcre dependent Pcremake && Mak E installvim/usr/local/lamp/apache2/conf/httpd.conf# 4. Edit conf like-#ServerName www.example.com:80+ ServerName www.example.com:80-+ addtype application/x-httpd-php. php# 5. Start and Test Apachecd/usr/local/lamp/apache2/bin &&./apachectl Startcurl localhost# Show this for success # &L T;html><body>

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Build lamp Environment "apache2.4.12 + php5.5.12 + mysql5.6.13"

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.