We Note for users: This article has practical information for configuring your server. Be sure to share this article with your system administrator or hosting provider support desk and ask if your hosting solution already covers all or what’s needed to set it up.
Notes about configuration details: As reference, we use the APT packages of the second-latest Ubuntu LTS release and their its default configuration as a reference. We recommend using the second-latest Ubuntu LTS and build the stack from its default packages. Alternatively, install and configure a comparable setup.
...
Default configuration using PHP-FPM, FastCGI or mod_php as PHP Integration
Host configuration as prescribed by your Joomla or Wordpress site
Modules: mod_rewrite, mod_headers, mod_expires, mod_deflate, support for .htaccess files in docroot
PHP
Version: 5.6 - 7.3 (latest 7.3 recommended)
Extensions:
php-cli
php-common
php-fpm
php-gd
php-json
php-bcmath
php-mbstring
php-mcrypt
php-mysql
php-opcache
php-readline
php-soap
php-xml
php-zip
php-curl
php-apcu
php-imagick
...
Depends on many factors (trust your server administrator), propose Propose these settings to your server administrator:
...