Since Sentora is still stuck on an old version of PHP, this script will update the system to the newer v5.6, via the Remi repository, as most things are deprecating support for older PHP versions at this point. Suhosin will also be recompiled for the new PHP version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/bash echo "Upgrading PHP to version 5.6. Please Wait..." wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm sudo rpm -Uvh remi-release-7*.rpm yum update yum --enablerepo=remi,remi-php56 update yum --enablerepo=remi,remi-php56 upgrade echo "Recompiling Suhosin for PHP 5.7..." cd /tmp wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip unzip -q suhosin.zip rm -f suhosin.zip cd suhosin-suhosin-0.9.37 phpize &> /dev/null ./configure &> /dev/null make &> /dev/null make install cd .. rm -rf suhosin-suhosin-0.9.37 echo "Restarting Web Server Services..." systemctl restart httpd |
The
Continue readingCentOS 7 Sentora 1.0.3 PHP5.6 Upgrade Script