Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1261085
  • 博文数量: 315
  • 博客积分: 10397
  • 博客等级: 上将
  • 技术积分: 3731
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 21:21
文章分类

全部博文(315)

文章存档

2015年(10)

2014年(3)

2013年(2)

2012年(8)

2011年(8)

2010年(29)

2009年(59)

2008年(77)

2007年(119)

分类:

2008-06-04 15:12:49

首先贴上配置参数
./configure --disable-pdo --enable-bcmath --enable-calendar --enable-ftp --enable-libxml --enable-magic-quotes --enable-sockets --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-kerberos --with-libxml-dir=/opt/xml2/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-jpeg-dir=/usr/local/jpeg --with-gd=/usr/local/gd --with-zlib --with-zlib-dir=/usr -enable-mbstring --with-curl=/usr/local/curl --with-openssl=/usr/local/openssl
1.下载jpeg6b安装
2.下载GD安装
3.下载curl安装
4.下载openssl安装
5.编译PHP
 
./configure --enable-pdo --with-pdo-mysql=/usr --enable-bcmath --enable-calendar --enable-ftp --enable-libxml --enable-magic-quotes --enable-sockets --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-kerberos --with-libxml-dir=/opt/xml2/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-jpeg-dir=/usr/local/jpeg --with-gd=/usr/local/gd --with-zlib --with-zlib-dir=/usr
 
  # wget http://curl.haxx.se/download/curl-7.19.0.tar.gz
   # tar -zxf curl-7.19.0.tar.gz
   # ./configure --prefix=/usr/curl
   # make; make install
 
#wget

#tar xzvf PDO_MYSQL-1.0.2.tgz
#cd PDO_MYSQL-1.0.2
#/usr/local/php/bin/phpize
        Configuring for:
        PHP Api Version:         20041225
        Zend Module Api No:      20060613
        Zend Extension Api No:   220060519
#./configure
--with-php-config=/usr/local/php/bin/php-config
--with-pdo-mysql=/usr/local/mysql
#make
#make install

注意pdo_mysql的全路径
/usr/local/php/lib/php/extensions/debug-non-zts-20060613/pdo_mysql.so

修改php.ini
#vi /usr/local/php/etc/php.ini

加上
extension=pdo_mysql.so
 
./configure --enable-pdo --with-pdo-mysql=/usr --with-curl=/usr/curl --enable-bcmath --enable-calendar --enable-ftp --enable-libxml --enable-magic-quotes --enable-sockets --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-kerberos --with-libxml-dir=/opt/xml2/ --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-jpeg-dir=/usr/local/jpeg --with-gd=/usr/local/gd --with-zlib --with-zlib-dir=/usr
阅读(2622) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~