PHP 5.4 on Centos/rhel 7.0, 6.5 and 5.10 via Yum

Source: Internet
Author: User
Tags apc interbase mcrypt php mysql tidy zend

PHP 5.4.36 have been released on Php.net on 18th December, and are also available for Centos/rhel 5.10 and 6.5 at WEBTA Tic via Yum.

Update 2013-07-21–a New Package ' PHP54W-MYSQLND ' has been added as a alternative to "Php54w-mysql". This would instead provide MySQL, mysqli, and Pdo_mysql built against the PHP MySQL native driver rather than the system de Fault Libmysqlclient. It'll replace "Php54w-mysql55″, as it'll work with MySQL 5.0/5.1/5.5 server)
Update 2013-06-20–webtatic now have 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 have been added
Update 2012-07-22–memcache and Xdebug extensions have been added
Update 2012-04-29–mcrypt, Tidy, MSSQL, InterBase has been added back on 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 have 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.RPMRPM-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 the can install PHP by doing:

Yum Install php54w

If you would like to upgrade PHP to this version it's recommended that check that your system would support the Upgrad E, e.g. making sure any Cpanel-like software can run after the upgrade.

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

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

Yum install yum-plugin-replace yum replace Php-common--replace-with=php54w-common

It'll likely give you a message "warning:unable-Resolve all providers ...". This is normal, and you can continue by tying "Y". You'll be given a chance to see what packages'll be installed and removed before again being given a chance to confirm .

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-gearman
Php54w-pecl-geoip
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 was available as an opcode cache, which was recommended for performance reasons. It can be installed via:

Yum Install PHP54W-PECL-APC

Zend has now released Zend Optimizer Plus opcode cache as open source, and are now known as Zend Opcache. As it ' s more actively maintained than APC, it had 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 could get a lot more errors coming out of your error logs if by default your error_reporting are 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 your is upgrading from an existing I Nstallation, your php.ini May is updated, meaning this would likely be turned on.

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

PHP 5.4 on Centos/rhel 7.0, 6.5 and 5.10 via Yum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.