不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2015-03-11 14:31:13  修改时间:2024-05-16 22:38:22  分类:Linux软件安装/参数优化  编辑

先前安装的PHP5.3.28(参考:CentOS6.3编译安装Nginx1.4.7 + MySQL5.5.25a + PHP5.3.28),现在准备升级PHP到5.4.38,有如下几个地方需要重新编译:

一、重新编译PHP

cd ./php-5.4.38

#生成配置
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-openssl --with-zlib --with-bz2 --with-gd --with-jpeg-dir --with-png-dir --with-gettext --with-mhash --with-freetype-dir --with-mcrypt --with-iconv=/usr/local/libiconv --with-curl --with-curlwrappers --with-xmlrpc --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-zip --enable-mbstring --enable-mbregex --enable-bcmath --enable-soap --enable-sockets --enable-ftp --enable-gd-native-ttf --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-fpm --with-fpm-user=www --with-fpm-group=www --without-pear 

#编译安装
make && make install

php.ini中

short_open_tag = Off
改为
short_open_tag = On

;date.timezone =
改为
date.timezone = Asia/Shanghai

error_reporting = E_ALL
改为
error_reporting = E_ALL & ~E_NOTICE

 

二、重新编译Memcache扩展

参考:CentOS6.3编译安装Memcached的PHP客户端memcache

 

三、重新编译MongoDB扩展

参考:CentOS6.3安装MongoDB2.2 及 安装PHP的MongoDB客户端

四、其他扩展同理需要重编译下(略)