找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10946|回复: 0

php5.6.9编译安装手迹

[复制链接]
发表于 2015-5-22 15:22:42 | 显示全部楼层 |阅读模式
环境准备:* L8 ~9 N, f3 |$ b7 ~3 d% S8 l% E4 _$ E
yum groupinstall "Development tools"
2 n. Q2 `  ^' G+ L/ R& g2 Oyum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel# u9 \) ^- ]' e
7 X3 E8 G/ @) ?* R* k5 Q
软件包:" v6 X2 v. b0 V4 I9 ]
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror! X; g; `5 s4 [6 R. d5 b# j
tar -xvf php-5.6.9.tar.gz% u; ^5 {$ P% u! [
cd php-5.6.9
6 F; d: p5 o* R" S; k  W2 s1 I' @$ h
编译安装 php 5.6.9 的参数:! n0 C5 {% i+ H4 M6 @2 b+ H$ ?

# S0 v2 F& l4 z$ ~4 ~) K. a; E6 a6 p
[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
/ s; i- b0 \' G- j' R

' c4 g  z) S0 Hmake
/ s+ @$ x6 W2 B. Y" L7 Y, F! Mmake install& i- _. F& W( `4 W5 V* t
--enable-maintainer-zts  此句意思有线程安全版本,开启后ZendGuardLoader不能使用!# J4 Z; {' F* ?& d
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-11-4 21:01 , Processed in 0.069869 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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