LAMP platform environment construction manual (1)

Source: Internet
Author: User

 

Figure-LAMP

LAMPIt is not easy to build a platform environment. The process is complicated. Let's take a look at the steps of the article!

3. Install PHP-5.2.9

Software acquisition: http://www.php.net/downloads.php

Before installing php, install:

Zlib-1.2.3 software acquisition: http://www.zlib.net

Tar xvfz zlib-1.2.3.tar.gz

Cd zlib-1.2.3.tar.gz

./Configure-prefix =/usr/local/zlib

Make

Make install

Freetype-2.3.9 software acquisition: http://sourceforge.net/projects/freetype/files/

Tar xvfz freetype-2.3.9.tar.gz

Cd freetype-2.3.9

./Configure-prefix =/usr/local/freetype2

Make

Make install

Libpng-1.2.38 software acquisition: http://sourceforge.net/projects/libpng/files/

Tar xvfz libpng-1.2.7.tar.gz

Cd libpng-1.2.38

./Configure-prefix =/usr/local/libpng

Make

Make install

Libxml2-2.7.3 software get:

Tar zxf libxml2-2.7.3.tar.gz

Cd libxml2-2.7.3.tar.gz

./Configure-prefix =/usr/local/libxml2

Make

Make install

Jpeg-7 software acquisition: http://www.ijg.org

Tar xvfz restart src.v7.tar.gz

Cd jpeg-7/

Mkdir-p/usr/local/limits 7

Mkdir-p/usr/local/partition 7/bin

Mkdir-p/usr/local/release 7/lib

Mkdir-p/usr/local/Partitions 7/include

Mkdir-p/usr/local/Example 7/man

Mkdir-p/usr/local/secrets 7/man/man1

./Configure-prefiex =/usr/local/defaults 7 \

-Enable-shared \

-Enable-static

Make

Make test

Make install

Gd-2.0.35 software acquisition: http://www.libgd.org/Downloads

Tar zxvf gd-2.0.35.tar.gz

Cd gd-2.0.35

Vim gd_png.c

Change # include "png. h":

# Include "/usr/local/libpng/include/png. h"

./Configure-prefix =/usr/local/gd2 \

-With-png =/usr/local/libpng \

-With-freetype =/usr/local/freetype2 \

-With-jpeg =/usr/local/defaults 7


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.