php安装配置文件 源码和yum版

源码安装

./configure --prefix=/usr/local/services/php \
--with-config-file-path=/usr/local/service/php/etc \
--with-mysql=/usr/local/mysql/ \
--with-libxml-dir=/usr/local/libxml/ \
--with-png-dir=/usr/local/libpng \
--with-jpeg-dir=/usr/local/jpeg \
--with-freetype-dir=/usr/local/freetype/ \
--with-gd=/usr/local/gd/ \
--with-zlib-dir=/usr/local/zlib/ \
--with-mcrypt=/usr/local/libmcrypt/ \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-soap \
--enable-mbstring=all \
--enable-sockets \
--enable-fpm

yum安装

./configure --prefix=/usr/local/php --enable-fpm
--with-mcrypt --with-zlib\ --enable-mbstring --disable-pdo --
with-curl --disable-debug --disable-rpath\ --enable-inline-
optimization --with-bz2 --with-zlib --enable-sockets\ --
enable-sysvsem --enable-sysvshm --enable-pcntl --enable-
mbregex\ --with-mhash --enable-zip --with-pcre-regex --with-
mysql\ --with-gd --with-jpeg

 

 

posted @ 2013-08-01 14:58  破军  阅读(365)  评论(0编辑  收藏  举报