To install PHP 7. you need to first enable epel and remi repo.
yum install -y epel-release rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Remove existing PHP
yum -y remove php
Install PHP 7.3
yum --enablerepo=remi-php73 install php73-php php73-php-mbstring php73-php-mysqlnd php73-php-gd php73-php-fpm php73-php-intl php73-php-cli php73-php-xml php73-php-opcache php73-php-pdo php73-php-gmp php73-php-process php73-php-pecl-imagick php73-php-devel
start php-fpm
service php-fpm stop service php73-php-fpm start
Set php 7.3 as default PHP for cli
rm /usr/bin/php ln -s /usr/bin/php73 /usr/bin/php
Restart apache
service httpd restart
Leave a Reply