Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

upgrade php 8 ubuntu 20.04

# php -v (default PHP version)

# From PHP 8.0 to PHP 7.4:
sudo a2dismod php8.0
sudo a2enmod php7.4
sudo update-alternatives --set php /usr/bin/php7.4
sudo service apache2 restart

# From PHP 7.4 to PHP 8.0:
sudo a2dismod php7.4
sudo a2enmod php8.0
sudo update-alternatives --set php /usr/bin/php8.0
sudo service apache2 restart
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #upgrade #php #ubuntu
ADD COMMENT
Topic
Name
9+4 =