xxxxxxxxxx
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.3 php7.3-common php7.3-opcache php7.3-cli php7.3-gd php7.3-curl php7.3-mysql
xxxxxxxxxx
sudo apt install php7.3-cli php7.3-fpm php7.3-json php7.3-pdo php7.3-mysql php7.3-zip php7.3-gd php7.3-mbstring php7.3-curl php7.3-xml php7.3-bcmath php7.3-json
xxxxxxxxxx
step:1. apt-get update && apt-get upgrade
step:2. apt-get install software-properties-common
step:3. add-apt-repository ppa:ondrej/php
step:4. apt-get update
step:5. apt-get install php8.1
step:6. apt-get install libapache2-mod-php8.1 php8.1-fpm libapache2-mod-fcgid php8.1-curl php8.1-dev php8.1-gd php8.1-mbstring php8.1-zip php8.1-mysql php8.1-xml
finish cheerssssssss
xxxxxxxxxx
sudo apt install php7.1 php7.1-common php7.1-opcache php7.1-mcrypt php7.1-cli php7.1-gd php7.1-curl php7.1-mysql
xxxxxxxxxx
sudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/php