How To Install PHP 7.4 on Debian 10 / Debian 9
Step 1: Update system
Ensure your system is updated:
sudo apt update
sudo apt upgrade -y && sudo reboot
Step 2: Add SURY PHP PPA repository
Download and store PPA repository in a file on your Debian Server/Desktop. But first, download GPG key.
sudo apt -y install lsb-release apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Then add repository.
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
Step 3: Install PHP 7.4 on Debian 10 / Debian 9
The last step is to Install PHP 7.4 on Debian 10 / Debian 9. Before installation, update system package list on added repositories.
sudo apt update
Then install PHP 7.4 on Debian 10 / Debian 9:
sudo apt -y install php7.4
Answer yes when prompted to complete installation of PHP 7.4 on Debian 10 / Debian 9 Linux system.
Use the next command to install additional packages:
sudo apt install php7.4-xxx
Example:
sudo apt install php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip}
Enjoy your websites and Web Applications development with PHP 7.4 on Debian 10 / Debian 9 Linux system.
Records 2021-12-01 14:10:01 通过 网页 浏览(878)
共有0条评论!