Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu update php 7.4 to 8

sudo apt-get purge php7.*
# recommended 
sudo apt-get autoclean
sudo apt-get autoremove
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
# end recommended 
sudo apt-get install php8.0
Comment

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
Comment

php 7 to php 8 in ubuntu 20.04

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.0
 #install common extension 
sudo apt install php8.0-common php8.0-mysql php8.0-xml php8.0-xmlrpc php8.0-curl php8.0-gd php8.0-imagick php8.0-cli php8.0-dev php8.0-imap php8.0-mbstring php8.0-opcache php8.0-soap php8.0-zip php8.0-intl -y
  sudo a2dismod php7.0
  sudo a2dismod php7.1
  sudo a2dismod php7.2
  sudo a2dismod php7.3
  sudo a2dismod php7.4
sudo a2enmod php8.0
sudo service apache2 restart
Comment

installing php version 8 in Ubuntu 20+

#Rn the command as sudo
			• apt install software-properties-common
            • apt update
            • apt install php8.0
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install vagrant on linux 
Shell :: add remote origin git 
Shell :: how to open epub files on linux 
Shell :: ionic capacitor run android live reload 
Shell :: remove submodule git 
Shell :: Checkbox in markdown file. 
Shell :: cv2.error: OpenCV(4.5.4) D 
Shell :: bash search file in directory 
Shell :: wsl shutdown reboot 
Shell :: install termius in ubuntu 
Shell :: how to check if jenkins is running 
Shell :: powershell new folder 
Shell :: cmake openssl linux 
Shell :: How to Ignore/disable SSH Host Key Verification 
Shell :: install razer synapse ubuntu 
Shell :: abort git merge 
Shell :: How to run batch file and dellete it 
Shell :: linux get docker compose logs 
Shell :: ubuntu 16.04 bluetooth not detecting devices 
Shell :: github ue4 gitignore 
Shell :: install visual studio code ubuntu 
Shell :: git remove remote 
Shell :: remove mariadb 
Shell :: ubuntu sudo no password 
Shell :: composer install drupal drush 
Shell :: docker daemon is not running 
Shell :: bash echo can create file 
Shell :: ufw allow http and httpw connections 
Shell :: How to check the installed version of React-Native 
Shell :: how to check used ports linux 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =