Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home/vpstermu168/public_html/includes/menu.inc).

CentOS 7: Cara Upgrade ke PHP 5.6

CentOS 7 membawa PHP 5.4, tetapi beberapa aplikasi membutuhkan PHP 5.6. Berikut ini cara upgrade ke PHP 5.6

  1. Buang dulu PHP 5.4 sbb:
    yum remove php-common-5.4*
     
  2. Tambahkan repository Webtatic EL sbb:
    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

     
  3. Install PHP 5.6, ada 2 pilihan:
    a. PHP 5.6 mod_php SAPI    
        yum install php56w php56w-opcache

    b. PHP 5.6 php-fpm SAPI
        yum install php56w-fpm php56w-opcache

Demikian cara upgrade CentOS 7 ke PHP 5.6.

Tags: