---

How to Install PHP 8.1 on Ubuntu 21.04

In this tutorial, I am going to show you how to install the current stable release of PHP 8.1 on Ubuntu 21.04.

PHP is a general-purpose scripting language suitable for web development. Most websites out there are programmed using PHP language because it is:

  • Fast – PHP is fast because it runs on its own memory space. Also, PHP has Zend engine that parses PHP code and turns it into opcodes, which are then interpreted.
  • Flexible – PHP is flexible because it allows for almost all databases. MySQL is the de-facto database to connect to because it is open source.
  • Free and open source
  • PHP is forgiving – Why do we say PHP is forgiving? Learning it is not so hard, therefore it’s suitable for almost all programmers starting out.
  • PHP supports major communication protocols i.e. LDAP, IMAP, POP3.

Learn more in the full article.