Using PHP 7

From MiRTA PBX documentation
Revision as of 16:34, 18 January 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

PHP 7 usage is still experimental...

Upgrade you PHP to php 7.2 by running:

On CentOS 6

rpm -Uvh remi-release-6.rpm

On CentOS 7

rpm -Uvh remi-release-7.rpm


yum -y replace php-common --replace-with=php72-php-common
yum -y install php72-php-cli
yum -y install php72-php-pecl-http php72-php-pecl-http-devel
yum -y install php72-php-pecl-mysql php72-php
yum -y install php72-php-pecl-raphf php72-php-pear php55-php-ldap php72-php-cli php72-php-mysqlnd php72-php-xml
yum -y install php72-php-pecl-mysql php72-php-pecl-http-devel php72-php-mbstring  php72-php-process  php72-php-pecl-http  php72-php-json php72-php-pdo
service httpd restart
cp /usr/local/src/ioncube/ /usr/lib64/php/modules
ln -s  /usr/bin/php72 /usr/bin/php

Edit /etc/opt/remi/php72/php.ini to include the ioncube loader