MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Spacedust on 2021-05-29, 23:01:52
-
Make sure you have selected default php version:
PHP Used must be set to --PHP Branch--
php -v
should show something like this
PHP 5.6.40 (cli) (built: Jan 11 2019 10:27:04)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Install remi repo:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
Enable PHP 8.0 repo by changing 0 to 1 in enabled line in /etc/yum.repos.d/remi-php80:
[remi-php80]
name=Remi's PHP 8.0 RPM repository for Enterprise Linux 7 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php80/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php80/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/php80/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Change a following line in /etc/yum.conf file from:
exclude= mysql5*
to
exclude=mysql5 php52* php53* php54* php55* php56* php70* php71* php72* php73* php74* php80*
Now remove old php56 by running this command, this will also remove hiawatha and mod24u_suphp, but we will bring it back in a while:
yum -y remove php56*
Now we can install PHP 8.0.x:
yum install php-pecl-memcached php-pecl-mongodb php-pecl-redis5 php-pecl-geoip php-pecl-igbinary-devel php-pecl-igbinary php-pecl-apcu-devel php-pecl-apcu php-pecl-oauth php-pecl-krb5-devel php-pecl-krb5 php-devel php-pecl-rrd php-pecl-gearman php-pecl-yaml php-pecl-xdebug3 php-pecl-lzf php-pecl-memcache php-pecl-ssh2 php-mbstring php-embedded php-tidy php-fpm php-pecl-xmlrpc php-dbg php-pgsql php-imap php-pecl-mcrypt php-mysqlnd php-odbc php-gmp php-intl php-snmp php-bcmath php-ldap php-enchant php-soap php-pspell php-pdo-dblib php-pdo php-dba php-litespeed php-gd mod24u_suphp hiawatha php-cli php-process php-xml php-common php-pear
Press y twice when asked "Is this ok"
Run:
service php-fpm restart
Done. Now you've got PHP 8.0:
php -v
PHP 8.0.6 (cli) (built: May 4 2021 17:26:18) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.6, Copyright (c) Zend Technologies
with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans
-
Thanks, will try it asap.