PHP is one of the most widely used server-side programming languages. Many popular CMS and frameworks such as WordPress, Magento, and Laravel are written in PHP. PHP 8.0 is the latest major release of the PHP language. It introduces several breaking changes, performance improvements, and lots of new features such as named arguments, JIT compiler, union types, match expression, and more. By linuxize.com.
The article will show you how to install PHP 8 on Ubuntu 20.04 and integrate it with Nginx and Apache.
Before upgrading to or installing PHP 8, make sure that your applications support it. The same steps apply for Ubuntu 18.04 and all Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS.
The guide then describes how to:
- Enable PHP repository
- Installing PHP 8.0 with Apache
- Install PHP as Apache Module
- Configure Apache with PHP-FPM
- Installing PHP 8.0 with Nginx
- Installing PHP extensions
- Testing PHP Processing
Installing PHP 8 on Ubuntu 20.04 server seems like a simple task. All you need to do is to enable the appropriate repository and install PHP 8 with apt. How straightforward.
[Read More]