Using PHP 7
On CentOS 7
Remove any previous Remi installation and activate the RocketSky repository
yum -y remove "php-74*"
yum -y remove "php-73*"
yum -y remove "php55*"
yum install -y https://yum.rocketsky.ch/rocketsky-php-release.rpm
rocketsky-php-repo enable 7.4 --allow-version-change
yum -y upgrade
yum -y install php php-common php-mysqlnd php-pecl-zip php-pecl-mcrypt php-xml php-soap php-pecl-apcu php-bcmath php-gd php-pear php-ldap php-mbstring php-imap php-pecl-imagick
cd /usr/local/src
\rm -r ioncube*
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzvf ioncube_loaders_lin_x86-64.tar.gz
cp ioncube/ioncube_loader_lin_7.4.so /usr/lib64/php/modules/
mv /etc/php.ini /etc/php.ini.orig
cd /etc
wget -O php.ini https://demo.mirtapbx.com/mirtapbx_support/php-7.4.ini
service httpd restart
cd /var/www/html/pbx
wget http://devel.mirtapbx.com/manualupgrade.tar.gz
tar xzvf manualupgrade.tar.gz
\rm manualupgrade.tar.gz
cd /var/www/html/pbx/protected
php manualUpgrade.php
Older info:
yum -y replace php-common --replace-with=php74-php-common
yum -y install php74-php-cli
yum -y install php74-php-pecl-http php74-php-pecl-http-devel
yum -y install php74-php-pecl-mysql php74-php
yum -y install php74-php-pecl-raphf php74-php-pear php74-php-ldap php74-php-cli php74-php-mysqlnd php74-php-xml php74-php-gd
yum -y install php74-php-pecl-mysql php74-php-pecl-http-devel php74-php-mbstring php74-php-process php74-php-pecl-http php74-php-json php74-php-pdo php74-php-pecl-mcrypt php74-php-pecl-zip php74-php-imap php74-php-pecl-imagick php74-php-gd
yum -y remove "php5*"
mv /etc/php.ini.rpmsave /etc/php.ini
mv /etc/opt/remi/php74/php.ini /etc/opt/remi/php74/php.ini.old
ln -s /etc/php.ini /etc/opt/remi/php74/php.ini
service httpd restart
cp /usr/local/src/ioncube/ioncube_loader_lin_7.4.so /usr/lib64/php/modules
\rm /usr/bin/php
ln -s /usr/bin/php74 /usr/bin/phpEdit /etc/opt/remi/php74/php.ini to include the ioncube loader
Current Verification
After applying the change, verify the related MiRTA PBX page, the Asterisk logs, and the relevant Status menu entry. Recheck tenant selection before testing tenant-specific behavior.