PHP 5.4 on CentOS/RHEL 6.5 and 5.10 via Yum
2014-03-17 11:48
477 查看
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[/code] |
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm[/code] |
yum install php54w |
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 |
Packages
Package | Provides |
---|---|
php54w | mod_php, php54w-zts |
php54w-bcmath | |
php54w-cli | php-cgi, php-pcntl, php-readline |
php54w-common | php-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-embedded | php-embedded-devel |
php54w-enchant | |
php54w-fpm | |
php54w-gd | |
php54w-imap | |
php54w-interbase | php_database, php-firebird |
php54w-intl | |
php54w-ldap | |
php54w-mbstring | |
php54w-mcrypt | |
php54w-mssql | |
php54w-mysql | php-mysqli, php_database |
php54w-mysqlnd | php-mysqli, php_database |
php54w-odbc | php-pdo_odbc, php_database |
php54w-pdo | |
php54w-pecl-apc | |
php54w-pecl-memcache | |
php54w-pecl-zendopcache | |
php54w-pecl-xdebug | |
php54w-pgsql | php-pdo_pgsql, php_database |
php54w-process | php-posix, php-sysvmsg, php-sysvsem, php-sysvshm |
php54w-pspell | |
php54w-recode | |
php54w-snmp | |
php54w-soap | |
php54w-tidy | |
php54w-xml | php-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 |
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 upgradingfrom 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 7.0, 6.5 and 5.10 via Yum
- PHP 5.4 on CentOS/RHEL 6.4 and 5.9 via Yum
- Install Nginx/PHP-FPM on Fedora 20/19, CentOS/RHEL 6.5/5.10
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- [转载]PHP 5.6 on CentOS/RHEL 7.0 and 6.6 via Yum
- 在CentOS/RHEL 6.5上使用YUM安装PHP5.4或PHP5.5
- Install Adobe Reader on Fedora 20/19, CentOS/RHEL 7/6.5/5.10
- Install MySQL on CentOS/Red Hat (RHEL) 6.5/5.10
- PHP 5.3 on CentOS/RHEL 5.6 via Yum
- Install Oracle Java JDK/JRE 7u55 on Fedora 20/19, CentOS/RHEL 6.5/5.10
- [转载]How To Install Nginx And PHP-FPM On CentOS 6 Via Yum
- Install SVN (Subversion) Server on Fedora 20/19, CentOS/Red Hat (RHEL) 6.5/5.10
- 在CentOS/RHEL 6.2上使用YUM安装PHP5.4
- Setup FTP Server On CentOS, RHEL, Scientific Linux 6.5/6.4/6.3
- install yii2 for php 5.4 on CentOS 7
- centos6.5/6.6 php5.4+nginx+mysql 一键源码安装
- How to Add a User and Grant Root Privileges on CentOS 6.5
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 [转]
- How to install php memcached on CentOS 6.5