博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【PHP升级】CentOS6.3编译安装 PHP5.4.38
阅读量:7001 次
发布时间:2019-06-27

本文共 1024 字,大约阅读时间需要 3 分钟。

先前安装的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扩展

参考:

 

三、重新编译MongoDB扩展

参考:

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

 

转载地址:http://znrvl.baihongyu.com/

你可能感兴趣的文章
白学jquery Mobile《构建跨平台APP:jQuery Mobile移动应用实战》连续7-电话问卷调查...
查看>>
Oracle 时间相减得出毫秒、秒、分、时、天,,【转】
查看>>
关于消息队列的使用
查看>>
IOS-Storyboard全解析-第二部分
查看>>
WEKA,一个开源java的数据挖掘工具
查看>>
Linux 查看设置系统语言
查看>>
阿里云物联网平台体验(NetGadgeteer+C#篇)
查看>>
mongdb开始标记
查看>>
linux内核源码结构
查看>>
CCM加密学习
查看>>
ZigBee profile
查看>>
127.0.0.1\SQLEXPRESS连接异常
查看>>
在linux上安装psycopg2出错--Error: pg_config executable not found.
查看>>
6款强大的 jQuery 网页布局创建及优化插件
查看>>
圆珠笔芯为什么那么细
查看>>
What is NetApp's Cluster File System?
查看>>
poj1184 聪明的打字员(BFS剪枝)
查看>>
xmlhelper (把实体对象转成xml文档)
查看>>
WPS Word表格转成文字或文字制成表格的快捷方法
查看>>
PHP开发:架构师详解PHP抓取程序逻辑代码,创造编程逻辑思维
查看>>