Centos – Update Upgrade PHP to 7.3.3

Last updated on May 14th, 2019 at 11:35 am

yum update -y
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils -y
yum-config-manager --enable remi-php73
yum remove php php-opcache php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc php-mbstring php-mcrypt -y
yum install php php-opcache php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc php-mbstring php-mcrypt -y
systemctl restart httpd


Check PHP Version

php -v

Check php version on web

nano /var/www/html/info.php
<?php phpinfo(); ?>

http://IP-ADDRESS/info.php

rm -rf /var/www/html/info.php

Enjoy

🙂