How to Install PHP 8 0 on Ubuntu | UPDATED

preview_player
Показать описание
In this video, I am going to show you how to install PHP 8.0 with Apache on Ubuntu 20.10.

PHP is an independent, open-source programming language and the most popular server-side programming language used by many popular CMSs, including Drupal, WordPress, Magento, and many more. PHP 8.0 is a major PHP language update that includes new features and customizations, including named arguments, union types, attributes, constructor property enhancements, matching expressions and null secure operators, JIT and type system improvements, error handling, and stability. Let's start by installing PHP 8 on Ubuntu 20.10.

Commands:
Update the Server OS Packages:
$ sudo apt update

Install the required dependencies using the following command:
$ apt-get install software-properties-common -y

Next, add the ondrej/php PPA repository with the following command:
$ add-apt-repository ppa:ondrej/php

Once the repository is added, you can update it with the following command:
$ apt-get update -y

Install PHP and PHP-FPM using the following command:
$ sudo apt install php8.0-fpm

NOTE:
The PHP-FPM service should start automatically. You can verify this:
$ sudo systemctl status php8.0-fpm

#php8.0 #ubuntu

Thanks for watching.
PLEASE LIKE
COMMENT :)
Рекомендации по теме