找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 13566|回复: 0

php5.6.9编译安装手迹

[复制链接]
发表于 2015-5-22 15:22:42 | 显示全部楼层 |阅读模式
环境准备:; b; y" Q, K; I. i6 W9 O( x( g
yum groupinstall "Development tools"$ E1 {5 x+ p$ u$ @3 K; x8 y9 \
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel) \6 [+ g3 i1 }4 ^( ~& X* U

' L1 u9 o/ U9 C9 [+ i8 o* C软件包:  d! V+ U  n- i- T0 m4 A; F
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror" ]% P( K- D# k. _+ m! j
tar -xvf php-5.6.9.tar.gz5 ^7 h0 {8 z5 A: O
cd php-5.6.9
4 |; C' L$ y& ]" \1 E6 K9 F6 q  o
4 G3 e# I  x( J3 d+ z编译安装 php 5.6.9 的参数:
! w$ `$ }7 v" C$ y
0 r/ s; O" B5 A6 S) {+ L. b
[Bash shell] 纯文本查看 复制代码
./configure --prefix=/webserver/php-5.6.9 --with-config-file-path=/webserver/php-5.6.9/etc --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --with-curl --with-ldap --with-imap --with-kerberos --with-imap-ssl --with-gettext --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --with-openssl --with-iconv=/usr/local --with-pcre-dir --with-mhash --with-mcrypt --with-xmlrpc --with-imap --enable-xml --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-fpm --enable-zip --disable-debug --enable-calendar --enable-static --enable-inline-optimization --enable-wddx --enable-opcache --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-pcntl --without-pear --enable-ctype

8 J( G( P8 y3 m0 \- V0 J
. u2 Z6 c+ s& T: p: zmake+ X, @8 q& V9 s7 K# a9 l
make install
  ]1 T& a3 ~. Q" Q--enable-maintainer-zts  此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
1 x) b( r. W9 h$ X2 r  N
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2026-9-30 22:22 , Processed in 0.058086 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表