linux apache 升级过程,linux下apache+php+mysql升级安装过程(2)

c4468b3f4df77e96b0a416fa2a870fba.png

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

#make;makeinstall

5.安装gd,

#tarzxvfgd-2.0.35.tar.gz

#cdgd-2.0.35

#./configure--prefix=/usr/local/gd--with-jpeg=/usr/local/jpeg--with-freetype=/usr/local/freetype--with-png--with-zlib

//编译过程中会看到如下信息

**Configurationsummaryforgd2.0.33:

SupportforPNGlibrary:yes

SupportforJPEGlibrary:yes

SupportforFreetype2.xlibrary:yes

SupportforFontconfiglibrary:no

SupportforXpmlibrary:no

Supportforpthreads:yes

//可以看到png、jpeg、freetype都已经安装上了

#make

#makeinstall

6.正式安装php

#tarzxvfphp-5.2.3.tar.gz

#cdphp-5.2.3

#./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql=/usr/local/mysql--with-gd=/usr/local/gd--with-zlib--with-libpng--with-jpeg=/usr/local/jpeg--with-freetype=/usr/local/freetype--enable-sockets--with-iconv--enable-mbstring--enable-track-vars--enable-force-cgi-redirect--with-config-file-path=/usr/local/php5/etc

#make

#makeinstall

7.整合php和apache

cpphp.ini-dist/usr/local/php5/etc/php.ini

vi/usr/local/php5/etc/php.ini

将extension=php_mysql.dll前面的#去掉

注意在/usr/local/apache2/conf/httpd.conf加上下代码使apache执行PHP

AddTypeapplication/x-httpd-php.php

AddTypeapplication/x-httpd-php3.php3

AddTypeapplication/x-httpd-php4.php4

AddTypeapplication/x-httpd-php-source.phps

8.安装ZendOptimizer

#tarzxvfZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz

#cdZendOptimizer-3.0.1-linux-glibc21-i386

#./install.sh

附:几个软件下载地址:

apache2.26http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz

mysql5.0.22:download.mysql.cn/src/2006/0710/5544.html

php5.25:http://cn.php.net/get/php-5.2.5.tar.gz/from/this/mirror

zlib1.2.3:http://www.zlib.net/zlib-1.2.3.tar.gz

libpng1.2.23:http://jaist.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.23.tar.gz

freetype2.3.5:http://nchc.dl.sourceforge.net/sourceforge/freetype/freetype-2.3.5.tar.gz

jpeg:http://www.ijg.org/files/jpegsrc.v6b.tar.gz

gd2.0.35:http://www.libgd.org/releases/gd-2.0.35.tar.gz

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值