Server and Web Integrator
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-07-15, 22:10:57

Author Topic: How to install PHP 8.0 on Kloxo-MR under CentOS 7 [Tutorial]  (Read 12754 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Make sure you have selected default php version:

PHP Used must be set to --PHP Branch--

Code: [Select]
php -v
should show something like this

Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
name=Remi's PHP 8.0 RPM repository for Enterprise Linux 7 - $basearch

Change a following line in /etc/yum.conf file from:

Code: [Select]
exclude= mysql5*

Code: [Select]
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:

Code: [Select]
yum -y remove php56*
Now we can install PHP 8.0.x:

Code: [Select]
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"


Code: [Select]
service php-fpm restart
Done. Now you've got PHP 8.0:

Code: [Select]
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
« Last Edit: 2021-05-29, 23:45:52 by Spacedust »

Offline EndErr

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Thanks, will try it asap.


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.083 seconds with 22 queries.

web stats analysis