DEV Community

Discussion on: How to Install PHP 8 on Ubuntu 20.04

Collapse
bdelespierre profile image
Benjamin Delespierre

If (like me) you're frequently switching between PHP8 and PHP7.4, you may use this command on Ubuntu to change your PHP version:

sudo update-alternatives --config php
Enter fullscreen mode Exit fullscreen mode