- Uninstall your current php and its modules
sudo yum remove -y php php-*
- Add remi repository
sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
- Install php 8.0
sudo yum install -y --enablerepo=remi-php80 php
- Confirm the php version
php -v
PHP 8.0.0 (cli) (built: Nov 24 2020 17:04:03) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
5.Install necessary php modules
Top comments (0)