Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1838582
  • 博文数量: 293
  • 博客积分: 10127
  • 博客等级: 上将
  • 技术积分: 3029
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-12 19:05
文章分类

全部博文(293)

文章存档

2011年(11)

2010年(282)

我的朋友

分类: LINUX

2010-08-13 07:35:39

APACHE安装

 

步骤:

# tar -zxvf httpd-2.2.11.tar.gz

# cd httpd-2.2.11

# ./configure --prefix=/usr/local/lamp/apache22 \

> --with-zlib=/usr/local/lamp/zlib/ \

> --with-included-apr \

> --enable-so \

> --enable-delate=shared \

> --enable-expires=shared \

> --enable-rewrite=shared \

> --enable-static-support

#make && make install

 

 

 

 

 

 

PHP的安装:

 

步骤一:

先安装PHP所需各库文件,

1)        Libxml2

# tar -zxvf libxml2-2.6.30.tar.gz

# cd libxml2-2.6.30

# mkdir -p /usr/local/lamp/libxml2

# ./configure --prefix=/usr/local/lamp/libxml2/

# make && make install

2)        libmcrypt库文件

# tar -zxvf libmcrypt-2.5.8.tar.gz

#./configure --prefix=/usr/local/lamp/libmcrpt

    # make && make install

#cd ./libltdl

#./configure --enable-ltdl-install

#make && make install

 

3)        zlib库文件

#tar -zxvf zlib-1.2.5.tar.gz

    # cd zlib-1.2.5

    # ./configure --prefix=/usr/local/lamp/zlib

    # make && make install

 

4) libpng库文件

#tar -zxvf libpng-1.2.12.tar.gz

# cd libpng-1.2.12

#./configure --prefix=/usr/local/lamp/libpng

# make && make install

 

5) jpeg6库文件

# mkdir -p /usr/local/lamp/jpeg6

# mkdir -p /usr/local/lamp/jpeg6/bin

# mkdir -p /usr/local/lamp/jpeg6/lib

# mkdir -p /usr/local/lamp/jpeg6/include

# mkdir -p /usr/local/lamp/jpeg6/man/man1

# tar -zxvf jpegsrc.v6b.tar.gz

# cd jpeg-6b/

#./configure --prefix=/usr/local/lamp/jpeg6/ --enable-shared --enable-static

# make && make install

6) freetype库文件

# tar -zxvf freetype-2.3.5.tar.gz

# cd freetype-2.3.5

# ./configure --prefix=/usr/local/freetype/

#make && make install

7) autoconf库文件

   # tar -zxvf autoconf-2.61.tar.gz

   # ./configure --prefix=/usr/local/lamp/autoconf

   #make && make install

8) GD库文件

   # tar -zxvf gd-2.0.35.tar.gz

   # cd gd-2.0.35

   #../configure \

 --prefix=/usr/local/lamp/gd2 \

 --with-zlib=/usr/local/lamp/zlib/ \

 --with-jpeg=/usr/local/lamp/jpeg6/  \

--with-png=/usr/local/lamp/libpng/  \

--with-freetype=/usr/local/freetype/

# make && make install

步骤二:

Php安装,

# ./configure \

> --prefix=/usr/local/lamp/php \

> --with-config-file-path=/usr/local/lamp/php/etc/ \

> --with-apxs2=/usr/local/lamp/apache22/bin/apxs \

> --with-mysql=/usr/local/lamp/mysql \

> --with-libxml-dir=/usr/local/lamp/libxml2/ \

> --with-png-dir=/usr/local/lamp/libpng/ \

> --with-jpeg-dir=/usr/local/lamp/jpeg6/ \

> --with-freetype-dir=/usr/local/freetype/ \

> --with-gd=/usr/local/lamp/gd2/ \

> --with-zlib-dir=/usr/local/lamp/zlib/ \

> --with-mcrypt=/usr/local/lamp/libmcrpt/ \

> --with-mysqli=/usr/local/lamp/mysql/bin/mysql_config \

> --enable-soap \

> --enable-mbstring=all \

> --enable-sockets

 

#make && make install

阅读(889) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~