您的位置:首页 > 运维架构 > Linux

centos中php5.2 fpm升级到php5.3

2014-03-11 11:02 393 查看
遇到要升级php。那么先停止各板块运行。把安装的目录改名。然后上传 php-5.3.8.tar.gz 并解压缩。因为5.3.3就包含了fpm版本了。所以不用整合另外的包了。然后输入

#cd php-5.3.8
#./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-gd --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear(这一条可选,看自己是否需要php扩展)

#make ZEND_EXTRA_LIBS='-liconv'
#make install
#cp php.ini-product /usr/local/php/etc/php.ini
#cd /usr/local/php/etc

#cp php-fpm.conf.default php-fpm.conf
#vi php-fpm.conf
#pm.max_children = 64

#pm.start_servers = 20

#pm.min_spare_servers = 5

#pm.max_spare_servers = 35

#pm.max_requests = 1024
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: