Install PHP 8.1: sudo apt install php8.1.You can install any of the required PHP versions on your system. As the latest stable version of PHP is 8.0, but a large number of websites still required PHP 7. Now, update the Apt package manager cache.LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php Add the Ondrej PPA to your system, which contains all versions of PHP packages for the Ubuntu systems. Install a few dependencies required by this tutorial with the below-mentioned command: sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https.You just need to add the required PPA and you can install any PHP version on the Ubuntu system.įollow these steps to complete PHP installation on Ubuntu: PHP installation on Ubuntu systems is pretty straightforward. You must have sudo or root privileged account access on Ubuntu 20.04.įirst of all, open a terminal and update the current packages with the following commands: sudo apt update & sudo apt upgrade Installing PHP on Ubuntu 20.04 You can also configure Apache to run PHP web applciation’s with different-2 PHP versions. You can install multiple PHP versions on Ubuntu system and then switch PHP version as per your requirements. If you need to use PHP on your computer or server running Ubuntu, keep reading to find out more about installing the software and understanding its role as part of the LAMP stack as well as other advantages of using it. It’s an open-source programming language that stands for “PHP Hypertext Preprocessor.” We’ll explain what all of that means in a bit. The PHP scripting language is one of the most popular options for creating dynamic websites, and it’s also used in a variety of other contexts. In this article, we will see how to install the PHP scripting language on our Ubuntu operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |