![]() Now you can install PHP5.6 on Ubuntu by executing the following command: sudo apt-get install php5.6 php5.6-fpmĪnd install some common PHP5.6 extensions. When prompted, press y to confirm the installation. sudo apt-get install php7.1-mysql php7.1-mbstring php7.1-xml php7.1-gd php7.1-curl ![]() Now you can install PHP7.1 on Ubuntu by executing the following command: sudo apt-get install php7.1 php7.1-fpmĪnd install some common PHP7.2 extensions. sudo apt-get install php7.2-mysql php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl Now you can install PHP7.2 on Ubuntu by executing the following command: sudo apt-get install php7.2 php7.2-fpmĪnd install some common PHP7.2 extensions. sudo apt-get install php7.3-mysql php7.3-mbstring php7.3-xml php7.3-gd php7.3-curl Now you can install PHP7.3 on Ubuntu by executing the following command: sudo apt-get install php7.3 php7.3-fpmĪnd install some common PHP7.3 extensions. ![]() sudo apt-get install php7.4-mysql php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl Now you can install PHP7.4 on Ubuntu by executing the following command: sudo apt-get install php7.4 php7.4-fpmĪnd install some common PHP7.4 extensions. sudo apt-get install php8.0-mysql php8.0-mbstring php8.0-xml php8.0-gd php8.0-curl Install PHP 7.4: Now you can install PHP8.0 on Ubuntu by executing the following command: sudo apt-get install php8.0 php8.0-fpmĪnd install some common PHP8.0 extensions. You can view all available PHP8.1 extensions by typing in sudo apt-get install php8.1 and pressing Tab key twice. sudo apt-get install php8.1-mysql php8.1-mbstring php8.1-xml php8.1-gd php8.1-curl Now you can install PHP8.1 on Ubuntu by executing the following command: sudo apt-get install php8.1 php8.1-fpmĪnd install some common PHP8.1 extensions. Read Also: How To Install PHP 8.2 on Ubuntu 22.04 Install PHP 8.1: You can install any of the required PHP versions on your system. As the latest stable version of PHP is 8.0, but many websites still required PHP 7. sudo apt install software-properties-common It’s installed automatically on the Ubuntu desktop but might miss on your Ubuntu server. The software-properties-common package is needed if you want to install software from PPA. To add this PPA, run the following commands in the terminal. The easiest way to install multiple versions of PHP is by using the PPA from Ondřej Surý, who is a Debian developer. Step 2: Installing Multiple PHP Versions on Ubuntu 22.04 Then update the Apt cache and upgrade the current packages of the system using the following command: sudo apt-get update Step 1: System Updateįirst, log in to Ubuntu 22.04 via console. This tutorial is also compatible with Ubuntu 20.04, and 18.04 systems. In this tutorial, you will learn how to install PHP on Ubuntu 22.04 LTS system. The new application developers are suggested to use the latest PHP version ie PHP 8.1. You can install any of the versions as required for your application. We will use the Ondrej PPA for installing PHP on Ubuntu 22.04 LTS system. In this blog post, we’ll show you how to do it quickly and easily. If you’re looking for an easy way to install PHP on Ubuntu 22.04, look no further. Generally, it is used to create e-commerce websites, blogs, and API applications. ![]() You must install PHP packages on a Ubuntu system to run the application written on it. PHP is a programming language used for developing web applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |