I want to install PHP 7.3
on Ubuntu 20.04
for my Nginx web server, when I try to install the 7.4
version everything is fine but for 7.3
I get the following error:
E: Unable to locate package php7.3
Then, I run the commands below :
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3
But, again, it shows that it can't locate the package. Does Ubuntu 20.04 supports PHP 7.3
or below and if it does, what can be wrong with my installation?
Best Answer
Perhaps the support wasn't available when you asked the question but all you need to do is as described in your Q.
Add ondrej PPA repository to your system.
Install php7.3 and check it's installed.
This also works for php 7.4, php7.2 and php5.6. Just change the relevant digits.