CentOS5.5上编译安装 PHP 5.3.6
CentOS 5.6一直没发布,CentOS 5.5的PHP5.1.6不支持json/hash,因为正研究Postfix+Dovecot邮件系统,webmail采用的 RoundCube? 新版本(v0.5)要求PHP版本不小于5.2.1,于是决定编译安装最新版PHP。PHP前几天被入侵据说v5.3.6代码被污染,不过用来做研究测试应该没问题。
?
./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu \--target=i686-redhat-linux-gnu --with-apxs2=/usr/sbin/apxs \--prefix=/usr/local --exec-prefix=/usr/local --with-exec-dir=/usr/local/bin \--sysconfdir=/etc --libdir=/usr/local/lib/php --with-libdir=lib \--sbindir=/usr/local/sbin --sharedstatedir=/usr/com --datadir=/usr/local/share \--includedir=/usr/local/include --libexecdir=/usr/local/libexec \--localstatedir=/var \--mandir=/usr/local/share/man --infodir=/usr/local/share/info \--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d \--with-pic --with-curl=shared --with-freetype-dir --with-png-dir \--with-gettext --with-gmp --with-iconv --with-jpeg-dir --with-png-dir \--with-openssl --with-layout=GNU --with-libxml-dir \--with-pcre-regex=/usr \--with-mcrypt=shared --with-mhash --with-zlib --with-bz2=shared \--with-pdo-mysql --with-mysql --with-mysql-sock=/var/lib/mysql/mysql.sock \--with-pgsql --with-pdo-pgsql --with-sqlite=shared --with-pdo-sqlite=shared \--enable-sqlite-utf8 --with-kerberos --with-imap --with-imap-ssl \--with-pear --with-gd --enable-gd-native-ttf --enable-calendar=shared \--enable-exif --enable-ftp --enable-sockets --enable-bcmath \--enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-intl \--enable-mbstring --enable-zend-multibyte --enable-zip \--without-unixODBC --disable-tokenizer \--enable-mbregex --with-pspell=/usr/local \如果未安装pspell,则删除最后一行。
?
?
?
?
.