DEV Community

keikesu0122
keikesu0122

Posted on

A simple way to update your php to 8.0 on CentOS7

  1. Uninstall your current php and its modules
sudo yum remove -y php php-*
Enter fullscreen mode Exit fullscreen mode
  1. Add remi repository
sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
Enter fullscreen mode Exit fullscreen mode
  1. Install php 8.0
sudo yum install -y --enablerepo=remi-php80 php
Enter fullscreen mode Exit fullscreen mode
  1. 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
Enter fullscreen mode Exit fullscreen mode

5.Install necessary php modules

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay