How to
PHP 7
Install PHP 7.4 - Ubuntu below 20.04
PHP 8
Install PHP 8.0 - Ubuntu
Install additional extensions
An example to install a few more useful extensions:
For development environments, code coverage tools or the Xdebug debugger can be installed as well.
Purge old PHP versions
If the new installation is working as expected, you can remove the old PHP packages from the system.
This assumes you are using PHP 7.4 as the previous version. Change php7.4
part of the command above with the appropriate PHP version.
References
Install Pear
Commands
PHP Built-in Server
Interactive mode
Set Default value for env vars
Generate BCrypt hash
Execute Shell Script from PHP
Working with Dates
Use PHPCS globally
Installing globally PHPCS
Know your path
Add the line below into your
~/.zshrc
ou~/.bashrc
array_map to utf8_encode
Last updated