搜索墙首页  编程技术  java  asp  ajax  php  c/c#/c++  数据库  oracle  mysql  db2  操作系统  windows  linux  股吧
首页 > 编程 > PHP
 1         
1楼  butting 2009-08-10

1. 安装zlib (安装libpng和gd前需要先安装zlib),下载地址:http://down.itlearner.com/soft/2359.shtml
# tar zxvf zlib-1.2.3.tar.gz
# cd  zlib-1.2.3
# ./configure
# make;make install
注:centos5.3自带此版本,可以不用安装yum list all|grep zlib查看

2. 安装libpng,下载地址:http://www.libpng.org/pub/png/libpng.html
# tar zxvf libpng-1.2.38.tar.gz
# cd libpng-1.2.38
# ./configure --prefix=/usr/local/libpng
# make test
# make install

3. 安装freetype,下载地址:http://ftp.twaren.net/Unix/NonGNU/freetype/
# tar zxvf freetype-2.3.9.tar.gz
# cd freetype-2.3.9
# ./configure --prefix=/usr/local/freetype
# make;make install

4. 安装jpeg7,下载地址:http://www.ijg.org/
# tar zxvf jpegsrc.v7.tar.gz
# cd jpeg-7
# ./configure --prefix=/usr/local/jpeg7
# make;make install

5. 安装gd,下载地址:http://www.libgd.org/releases/
# tar zxvf gd-2.0.35.tar.gz
# cd gd-2.0.35
# ./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg7/ --with-freetype=/usr/local/freetype/ --with-png=/usr/local/libpng/
//编译过程中会看到如下信息
** Configuration summary for gd 2.0.35:
   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: yes
   Support for Fontconfig library:   yes
   Support for Xpm library:          no
   Support for pthreads:             yes
//可以看到png 、 jpeg 、 freetype都已经安装上了
# make
# make install

6. 正式安装php
# tar xzvf php-5.3.0.tar.gz
# cd php-5.3.0
# ./configure --prefix=/usr/local/php5 --with-apxs2=/home/service/http/apache2/bin/apxs --with-mysql=/home/service/database/mysql5/ --with-gd=/usr/local/gd/ --with-zlib --with-png-dir=/usr/local/libpng/ --with-jpeg-dir=/usr/local/jpeg7/ --with-freetype-dir=/usr/local/freetype/

7.整合php,mysql和apache
cp php.ini-dist  /usr/local/php5/lib/php.ini
vi /usr/local/php5/lib/php.ini
将extension=php_mysql.dll前面的;去掉
vi /etc/httpd.conf
添加以下两行
AddType application/x-httpd-php php .phtml
AddTypeapplication/x-httpd-php-source .phps

8. 安装ZendOptimizer,下载地址:http://www.zend.com/en/products/guard/downloads
# tar zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
# cd ZZendOptimizer-3.3.3-linux-glibc23-i386
# ./install.sh

 1         
您的发言将按有关规定都会存档,您须为所发表后果负责,请您遵纪守法并注意语言文明。
标题:源码安装PHP5.3.0
热门关注
标题回复点击
三 php与XML、XSLT、Mysql的结合运用,下载篇0455
php 学习的连接整理0384
无法加载 mcrypt 扩展,请检查您的 PHP 配置。7290
源码安装PHP5.3.00272
php 日记(资料来源:internet )1266
eclipse 插件net.sf.simpletest.eclipse 无法装入类1264
为Fedora Linux 上PHP添加OCI 支持0260
php & apache & mysql安装配置软件与文档0252
云动力发布Magento最新版本简体中文语言包0249
Warning: mysql_num_rows(): supplied argument3240
搜索墙@2009 www.pkwall.com all rights reserved QQ:276471788 [京ICP备09111534号]
声明:本站部分数据来源于网络,仅供参考,如有版权问题,请联系我们,我们将及时删除!转载本站请注明来源