You can also install the latest PHP version on your system. sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-mbstring php7.3-mysql php7.3-xml sudo apt updateĪlso install required php modules. Run the following commands to install PHP 7.3 on Debian 9. sudo apt install php7.4-cli php7.4-common php7.4-curl php7.4-mbstring php7.4-mysql php7.4-xml Run the following commands to install PHP 7.4 on Debian 9. Now use one of the below options to install PHP of your requirements. sudo apt install ca-certificates apt-transport-httpsĮcho "deb stretch main" | sudo tee /etc/apt//php.list
After that configure PPA for the PHP packages on your system. Let’s execute the following commands to install the required packages first on your system.
HOW TO INSTALL CURL PHP5 UPGRADE
Run below commands to upgrade the current packages to the latest version. Windows users can use Putty or other alternatives applications for SSH connection. Login to your Debian 9 system using shell access. This tutorial is for the Debian 9 Stretch users to install PHP 7.4, 7.3, 7.2, 7.1 or 5.6 on their system.įirst of all, you need to complete the prerequisites step and then go forward to install the PHP version of your choice or requirements. Ubuntu users can visit our tutorial for installing PHP 7 on Ubuntu. The PHP 7.4 is the latest version available for installation on Debian 9 Stretch Linux machine.