In this guide, we will cover how to install PHP 7.3 on Ubuntu 18.04/19.04. As always we are going to make sure we're up to date.
sudo apt update && sudo apt upgrade
Next, we will edit our apt sources list with nano and include the two lines starting with deb below.
sudo nano /etc/apt/sources.list deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main deb-src http://ppa.launchpad.net/ondrej/php/ubuntu bionic main
Once that is saved, we will go ahead and install software-properties-common. Followed by adding the PHP repository, then updating and upgrading again so our package manager can see the newly listed packages. Then lastly we will install PHP 7.3 and verify the version.
sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.3 php -v
Congratulations, you've installed PHP 7.3 on your Ubuntu Linux VPS.
Join our Private Discord Chat to chat with, as well as find community assistance from other Verified SkySilk Users: https://invite.gg/SkySilk
CLICK TO DEPLOY AN UBUNTU LINUX VPS
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article