![linux libapache2 mod php5 has no installation candidate linux libapache2 mod php5 has no installation candidate](https://www.cyberciti.biz/media/new/faq/2016/02/apt-get-php7-install.jpg)
- LINUX LIBAPACHE2 MOD PHP5 HAS NO INSTALLATION CANDIDATE INSTALL
- LINUX LIBAPACHE2 MOD PHP5 HAS NO INSTALLATION CANDIDATE UPDATE
- LINUX LIBAPACHE2 MOD PHP5 HAS NO INSTALLATION CANDIDATE UPGRADE
Install libapache2-mod-php5 using this command: sudo apt-get install libapache2-mod-php5 Your repository information will be the official Ubuntu ones. Run these commands to add the extra repositories: sudo add-apt-repository universe This PPA is providing a different (old) version of PHP instead of the proper version that Ubuntu wants. Sudo add-apt-repository -remove ppa:ondrej/php5 To remediate this, run the below commands: sudo add-apt-repository -remove ppa:ondrej/php5-oldstable This may mean that the package is missing, has been obsoleted, orĮ: Package ‘php7.Your problem is that you have an unofficial PPA which is breaking your install procedure. Package php7.3 is not available, but is referred to by another package.
LINUX LIBAPACHE2 MOD PHP5 HAS NO INSTALLATION CANDIDATE UPDATE
:/workdir# apt update -yġ1 packages can be upgraded. :/workdir# echo “deb stretch main” | tee /etc/apt//php.list Instruction desn’t work for me in the stretch: sudo apt install php5.6-cli php5.6-common php5.6-curl php5.6-mbstring php5.6-mysql php5.6-xml sudo apt updateĪlso install required php modules. sudo apt install php7.1-cli php7.1-common php7.1-curl php7.1-mbstring php7.1-mysql php7.1-xmlĮxecute the following commands for installing PHP 5.6 on your Debian 9 Stretch system. Here is a list of some frequently used modules. sudo apt updateĪlso, install the required PHP modules as per your requirements. If your application has the specific requirement of PHP 7.1, You can use the following commands for installing PHP 7.1 on Debian 9 Stretch system. sudo apt install php7.2-cli php7.2-common php7.2-curl php7.2-mbstring php7.2-mysql php7.2-xml Run the following commands to install PHP 7.2 on Debian 9. 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 Run the following commands to install PHP 7.3 on Debian 9.
![linux libapache2 mod php5 has no installation candidate linux libapache2 mod php5 has no installation candidate](https://www.codegrepper.com/codeimages/configure-apache-in-ubuntu.png)
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
![linux libapache2 mod php5 has no installation candidate linux libapache2 mod php5 has no installation candidate](https://cdn-0.securityonline.info/wp-content/uploads/2017/09/php.png)
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.
LINUX LIBAPACHE2 MOD PHP5 HAS NO INSTALLATION CANDIDATE 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.