PHP 5.4 on CentOS/RHEL 7.0, 6.5 and 5.10 via Yum

PHP 5.4.36 has been released on PHP.net on 18th December 2014, and is also available for CentOS/RHEL 5.10 and 6.5 at Webtatic via Yum.

Update 2013-07-21 – A new package “php54w-mysqlnd” has been added as an alternative to “php54w-mysql”. This will instead provide mysql, mysqli, and pdo_mysql built against the PHP MySql native driver rather than the system default libmysqlclient. It will replace “php54w-mysql55″, as it will work with MySQL 5.0/5.1/5.5 server)
Update 2013-06-20 – Webtatic now has released PHP 5.5.0 for CentOS/RHEL 5 and 6
Update 2013-05-26 – CentOS/RHEL 5.x now supported.
Update 2013-05-18 – A new package “php54w-pecl-zendopcache” has been added, Zend Optimizer Plus opcode cache.
Update 2012-08-26 – APC is stable enough now and so the extension has been added
Update 2012-07-22 – memcache and xdebug extensions have been added
Update 2012-04-29 – mcrypt, tidy, mssql, interbase have been added back in to the repository.

 

PHP 5.4.0 adds new features such as:

  • Traits
  • Built-in web server
  • Array short notation
  • Array return value de-referencing
  • Finally killing off magic-quotes and safe-mode

To see what else has been added, check out the changelog.

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:

CentOS/RHEL 7.x:

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

CentOS/RHEL 5.x:

rpm -Uvh https://mirror.webtatic.com/yum/el5/latest.rpm

Now you can install php by doing:

yum install php54w

If you would like to upgrade php to this version it is recommended that you check that your system will support the upgrade, e.g. making sure any CPanel-like software can run after the upgrade.

Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.

If you know what you are doing, you can upgrade PHP by:

yum install yum-plugin-replaceyum replace php-common --replace-with=php54w-common

It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.

Packages

PackageProvides
php54wmod_php, php54w-zts
php54w-bcmath 
php54w-cliphp-cgi, php-pcntl, php-readline
php54w-commonphp-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib
php54w-dba 
php54w-devel 
php54w-embeddedphp-embedded-devel
php54w-enchant 
php54w-fpm 
php54w-gd 
php54w-imap 
php54w-interbasephp_database, php-firebird
php54w-intl 
php54w-ldap 
php54w-mbstring 
php54w-mcrypt 
php54w-mssql 
php54w-mysqlphp-mysqli, php_database
php54w-mysqlndphp-mysqli, php_database
php54w-odbcphp-pdo_odbc, php_database
php54w-pdo 
php54w-pecl-apc 
php54w-pecl-gearman 
php54w-pecl-geoip 
php54w-pecl-memcache 
php54w-pecl-zendopcache 
php54w-pecl-xdebug 
php54w-pgsqlphp-pdo_pgsql, php_database
php54w-processphp-posix, php-sysvmsg, php-sysvsem, php-sysvshm
php54w-pspell 
php54w-recode 
php54w-snmp 
php54w-soap 
php54w-tidy 
php54w-xmlphp-dom, php-domxml, php-wddx, php-xsl
php54w-xmlrpc 

Opcode Caches

A precompiled PHP APC package is available as an opcode cache, which is recommended for performance reasons. It can be installed via:

yum install php54w-pecl-apc

Zend have now released Zend Optimizer Plus opcode cache as open source, and is now known as Zend OPcache. As it’s more actively maintained than APC, it has been added as a package to the Webtatic EL6 repository. It can be installed via:

yum install php54w-pecl-zendopcache

error_reporting E_ALL now includes E_STRICT

You may get a lot more errors coming out of your error logs if by default your error_reporting is set to E_ALL now without explicitly turning off E_STRICT. The default php.ini that comes with the PHP package turns this off by default, but if you are upgrading from an existing installation, your php.ini may not be updated, meaning this will likely be turned on.

 

 

https://webtatic.com/packages/php54/

转载于:https://www.cnblogs.com/youlechang123/p/4227464.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/420297.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

仓库移动_移动式RFID仓库管理解决方案,智能仓库未来应用的会更广泛

在当下的仓储物流行业中,尤其在中国,信息化的应用不断的在行业内深化其作用。因为在新的产业环境下和信息技术的背景下,对企业提出了新的要求。客户要实现更加独特的体验,相关企业需要提高仓储作业效率,提高数据的准确…

Github作为maven私服仓库用

上传jar包到GitHub仓库流程打包一个项目本地使用流程 打包一个项目 distribute_id 是自定义的仓库id git_repo_path是本地git仓库的路径,也是存放编译的路径 使用下面的命令编译并打包到本地仓库 mvn deploy -DaltDeploymentRepository${distribute_id}::default:…

前端学习(1338):mongoDB删除文档

const mongoose require(mongoose); mongoose.connect(mongodb://localhost/playground, { useUnifiedTopology: true }).then(() > console.log(数据库连接成功)).catch(err > console.log(err, 数据库连接失败))//创建集合规则 const courseSchema new mongoose.Sche…

MS SQL SERVER数据库简单回顾

MS SQL SERVER数据库 1.创建数据库create database javateam;2.使用数据库use javateam;3.创建表create table 表名 (字段名 字段类型 主键 字段增长(从X开始 , 每次加X个),字段名 字段类型,字段名 字段类型);create table peopleNone(pid…

docker绑定端口主机访问curl: (56) Recv failure: Connection reset by peer

这个问题超简单… 我用的nuxt,项目丢到了node容器里面。然后主机访问不了挂载的端口。 容器内是能curl通的。 然后,经过排查,nuxt只指定了127.0.0.1, host必须是0.0.0.0才能暴露。 https://www.nuxtjs.cn/faq/host-port

fl如何保存再次打开_「Excel技巧」Excel2016如何将自己设计的图表存为模板反复使用?...

现在的Excel系统内置的默认图表类型很丰富,各种各样,但好像也还是满足不了大家的需求。很多人会在插入默认图表后,在默认图表的基础上根据自己的需求进行修改。好不容易修改好的图表,能不能把它保存为模板,用来以后调用…

前端学习(1339):mongodb更新数据文档

const mongoose require(mongoose); mongoose.connect(mongodb://localhost/playground, { useUnifiedTopology: true }).then(() > console.log(数据库连接成功)).catch(err > console.log(err, 数据库连接失败))//创建集合规则 const courseSchema new mongoose.Sche…

[REGEX] 匹配任意字符(包括换行符)

[\s|\S]*转载于:https://www.cnblogs.com/bushe/p/4229522.html

java.lang.illegalargumentexception: invalid comparison: java.util.date and java.lang.string

人麻了… <if test"reqVo.startDate ! null and reqVo.startDate ! ">AND DATE_FORMAT(a.createTime, %Y-%m-%d) > #{reqVo.startDate}</if>startDate 是java.util.Date类型 正确&#xff1a; <if test"reqVo.startDate ! null">AND…

消息长度_填坑笔记:RocketMQ消息订阅失败问题?

前语&#xff1a;不要为了读文章而读文章&#xff0c;一定要带着问题来读文章&#xff0c;勤思考。作者&#xff1a;kinnylee 来源&#xff1a;http://1t.click/g26# 背景介绍项目组使用阿里RocketMQ&#xff0c;对同一个消费组设置不同的tag订阅关系&#xff0c;出现消息丢失…

前端学习(1340):mongoose验证规则

const mongoose require(mongoose); mongoose.connect(mongodb://localhost/playground, { useUnifiedTopology: true }).then(() > console.log(数据库连接成功)).catch(err > console.log(err, 数据库连接失败))//创建集合规则 const postSchema new mongoose.Schema…

深入分析C++引用

关于引用和指针的差别的文章非常多非常多&#xff0c;可是总是找不到他们的根本差别&#xff0c;偶然在codeproject上看到这篇文章&#xff0c;认为讲的挺好的&#xff0c; 所以翻译了下&#xff0c;希望对大家有帮助。 原文地址: http://www.codeproject.com/KB/cpp/Reference…

mysql8窗口函数

mysql window函数mysql 开窗函数demo&practice分组求和2. 和MySQL其它函数搭配mysql 开窗函数demo&practice 注意: mysql8 才有开窗函数, mysql5.7以下不要阅读。分组求和 create table sales (id int PRIMARY KEY auto_increment,city varchar(15),county varchar(1…

前端学习(1341):mongoose验证规则延伸

const mongoose require(mongoose); mongoose.connect(mongodb://localhost/playground, { useUnifiedTopology: true }).then(() > console.log(数据库连接成功)).catch(err > console.log(err, 数据库连接失败))//创建集合规则 const postSchema new mongoose.Schema…

艾创机器人_世界教育机器人大赛 2019赛季世界锦标赛落幕曲靖代表队获多个奖项...

来源&#xff1a;曲靖日报-曲靖新闻网本报讯12月14日,世界教育机器人大赛(WER)2019赛季世界锦标赛在上海隆重开赛。来自中国、美国、英国、日本、菲律宾、墨西哥等30多个国家和地区的1万余名选手在大赛中一决高低。刚刚结束的第六届曲靖市青少年机器人竞赛余温未散,从比赛中脱颖…

javascript 学习笔记

一&#xff1a; js数据类型 js有两类数据类型&#xff0c;1&#xff1a;原始类型&#xff1b;2对象类型。 原始类型包括5中&#xff1a;数字&#xff0c;字符串&#xff0c;布尔&#xff0c;nil&#xff0c;undifined。 nil和undefined分属不同的类型&#xff0c;而此两种类型比…

MySQL8权限,角色

角色创建角色给角色赋予权限删除权限给用户赋予角色激活角色撤销用户权限创建角色 mysql> create role boss; Query OK, 0 rows affected (0.01 sec)mysql> create role manager; Query OK, 0 rows affected (0.01 sec)给角色赋予权限 manager角色拥有查询sales表的权限…

前端学习(1342):mongoose验证规则拿到错误信息

const mongoose require(mongoose); mongoose.connect(mongodb://localhost/playground, { useUnifiedTopology: true }).then(() > console.log(数据库连接成功)).catch(err > console.log(err, 数据库连接失败))//创建集合规则 const postSchema new mongoose.Schema…

单片机人流统计装置的程序_单片机其实不难

对于大学读电子方面专业的同学们&#xff0c;肯定知道有这么一个神奇的元器件&#xff0c;它枯燥难懂&#xff0c;但也十分吸引人&#xff0c;它就是我们今天要讲的元器件--单片机单片机作为工业控制领域里面最核心的部件&#xff0c;它存在于每一台机器&#xff0c;小到扫地机…

数据库索引的作用和长处缺点

为什么要创建索引呢&#xff1f;这是由于&#xff0c;创建索引能够大大提高系统的性能。 第一&#xff0c;通过创建唯一性索引&#xff0c;能够保证数据库表中每一行数据的唯一性。 第二&#xff0c;能够大大加快 数据的检索速度&#xff0c;这也是创建索引的最基本的原因。 第…