Apply the Yum installation on Centos/rhel 6.2 PHP5.4

Source: Internet
Author: User
Use Yum to install PHP5.4 on Centos/rhel 6.2

This article applies to all CentOS6 and red Hat Enterprise Linux6 versions installed php5.4, I test the installation environment for the 32-bit CentOS6 system.

Article Source: PHP 5.4 on Centos/rhel 6.2 via Yum http://www.webtatic.com/packages/php54/

reprint please indicate source use Yum to install PHP5.4 on Centos/rhel 6.2

php5.4 was released on May 8, 2012, starting with the php5.4.0 PHP has added some new features such as:

    • Traits support
    • Built-in a simple Web server
    • Provides an array of short syntax
    • Array values directly on function return values
    • Final removal of magic method and Safe mode

You can see the update log here.


Here we use webtatic EL6 's yum source to install php5.4, our home installation webtatic EL6 Yum source

RPM-UVH http://repo.webtatic.com/yum/el6/latest.rpm

Installing php5.4


Yum Install php54w
If the installation fails, it is recommended that you uninstall the previous PHP before installing, using yum remove PHP php-*


List of included PHP extensions:

Package
provides
php54w mod_php
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-odbc PHP-PDO_ODBC, Php_database
Php54w-pdo
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
Php54w-zts

Given the current expansion of webtatic to php5.3, php5.4 is offering these as well. Other extensions like opcode caches have not come out yet, but Webtatic will try to publish it as soon as possible.


Precautions

In the latest version of Error_reporting, E_all now contains e_strict, and more warnings and error prompts appear. By default error_reporting is off, but if you upgrade from the old PHP version, php.ini may not be updated, error_reporting may be turned on.


About the installation upgrade of php5.4 on CENTOS5

Because CentOS has been in the past version, and less use, the transfer of php5.4 to CENTOS5 also requires a lot of work, it is estimated that can be completed AH.



********************************************

* Author: Ye Wentao

* Link: Use yum to install PHP5.4 on Centos/rhel 6.2

Reprint please indicate source ***************


1 Floor honghuajiu9 hours ago
learn Daniel ~
  • 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.