源码安装php5.5.7 php-fpm和xcache,以及xcache管理后台.pdf
文本预览下载声明
ggaaoosshhaan的专专栏栏
源源码码安安装装pphhpp55..55..77 pphhpp--ffppmm和和xxccaacchhee,,以以及及xxccaacchhee管管 后后台台
分类: php 2013-12-21 16:56 70人阅读 评论 (0) 收藏 举报
php源码xcachegccyum
一,安装前准备
cd /usr/local/src
wget /distributions/php-5.4.7.tar.gz
yum -y install gcc automake autoconf libtoolmake
yum -y install gcc gcc-c glibc
yum -y installlibmcrypt-devel mhash-devel libxslt-devel \
libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-
devel \
zlib zlib-devel glibc glibc-devel glib2 glib2-develbzip2bzip2-devel \
ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel \
krb5 krb5-devel libidn libidn-devel openssl openssl-devel
1、编译安装PHP 5.2.13所需的支持库:!--more--
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.13/
./configure --prefix=/usr/local
make
make install
cd ../
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure
make
make install
/sbin/ldconfig
cd libltdl/
./configure --enable-ltdl-install
make
make install
cd ../../
tar zxvf mhash-.tar.gz
cd mhash-/
./configure
make
make install
cd ../
tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
/sbin/ldconfig
./configure
make
make install
cd ../
二。开始安装
tar zvxf php-5.5.7.tar.gz
cd php-5.5.7
1
cd php-5.5.7
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-
mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-
dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-
libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode
--enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-
curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-
force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --
with-openssl --with-mha
显示全部