PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
来源:互联网 发布:海文考研 知乎 编辑:程序博客网 时间:2024/06/05 12:42
PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
PHP 5.4.25 has been released on PHP.net on 6th February 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 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh http://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-replace yum 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
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.
- PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
- PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
- PHP 5.3 on CentOS/RHEL 5.6 via Yum
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- Install Nginx/PHP-FPM on Fedora 20/19, CentOS/RHEL 6.5/5.10
- How to fix yum errors on CentOS, RHEL or Fedora
- rhel 安装Centos yum
- CentOS/RHEL 6.6 通过YUM升级PHP最新版本
- IPMI on CentOS/RHEL
- Install And Configure Open VSwitch On CentOS RHEL Fedora
- Install “build-essential” on RHEL/CentOS and OpenSolaris
- Install EPEL repo on CentOS 7 and RHEL 7
- Install yum On RHEL 4
- How to Install PHP 7 on CentOS/RHEL 7.1 & 6.7
- rhel 6.3 建立centos yum
- How To Install Apache Tomcat 7 on CentOS 7 via Yum
- Create Local YUM repository on CentOS 7 / RHEL 7 using DVD
- php yum升级 centos 6.5
- BroadcastReceiver
- EasyRec推荐
- 安卓进度条组件ProgressBar的使用
- ios tableView隐藏多余的cell分割线separator
- Linux如何查看与/dev/input目录下的event对应的设备
- PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
- ubuntu搭建Php开发环境
- 马方称MH370最后联络时间为8时11分
- 【暮色天】中线成立 迟早翻倍(3.17)
- 教师别让自己离做真人太远
- 单击列表中某一项,判断其状态
- Jmeter自定义java请求入门
- 存放在电脑中的文件丢失了怎么恢复
- [DanoR][Java小记][01][14.03.17]