Multiple PHP Versions - Installing PHP 7.4 and/or 8.0 on CentOS 7



enable epel repo

yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm && yum clean all

yum install php74 php74-php php74-build php74-runtime
yum install php74-php-{cli,dba,pdo,fpm,zip,gd,xml,mysqlnd,opcache}
yum install php74-php-{ast,bcmath,componere,dbg,devel,embedded,enchant,gmp,imap,intl,ioncube-loader,ldap,mbstring,odbc,pear,pecl-apcu,pecl-apcu-devel,soap,xmlrpc}
yum install php74-php-pecl-{imagick,imagick-devel,mcrypt,memcache,memcached,mysql,scrypt}

yum install php81 php81-php php81-build php81-runtime
yum install php81-php-{cli,dba,pdo,fpm,zip,gd,xml,mysqlnd,opcache}
yum install php81-php-{ast,bcmath,dbg,devel,embedded,enchant,gmp,imap,intl,ldap,mbstring,odbc,pear,pecl-apcu,pecl-apcu-devel,soap}
yum install php81-php-pecl-{xmlrpc,imagick,imagick-devel,mcrypt,memcache,memcached,mysql,scrypt}


Ref:

https://www.virtualmin.com/documentation/web/multiplephp/



Article ID: 82
Created On: Wed, Dec 22, 2021 at 2:49 PM
Last Updated On: Wed, Dec 22, 2021 at 2:49 PM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/multiple-php-versions-installing-php-74-and-or-80-on-centos-7-82.html