Back to home

Managed Service PHP

Managed Service PHP

For the Managed Service PHP there are different versions and configurations available depending on the Ubuntu version:

Ubuntu Version Trusty (14.04) Xenial (16.04) Bionic (18.04)
PHP Version 5.5 7.2 / 7.3 / 7.4 7.2 / 7.3 / 7.4
mod_php (Default)
PHP-FPM available

Installation of another PHP version

For consultation and installation of another PHP version contact our support using the support request function in our Cockpit or by mail to

Differences mod_php and PHP-FPM

We operate PHP exclusively together with the Apache webserver. But for this we have two different interfaces available.

mod_php (only until 16.04)

The default PHP Apache module is called mod_php. All the PHP code is directly interpreted by the Apache module and is therefore running as the www-data user.


PHP-FPM stands for FastCGI Process Manager. FPM interpretes the PHP code and manages its own processes. Apache simply passes the requests to and from FPM.

Pros and Cons

A big advantage of FPM is the increased security it provides when running multiple sites on one server. Each hosting can have its own user and FPM processes. This prevents access from one hosting to another one. Another advantage that comes with it is that multiple PHP versions can be used at the same time. The only real downside of FPM is the higher memory footprint of the PHP-FPM processes.

Selecting the version using nine-manage-vhosts

If PHP-FPM is installed on your server you will have access to the template variables which allow you to specify the version for each Virtual-Host.

Create a Virtual-Host using PHP 7.3:

www-data@server:~ $ nine-manage-vhosts virtual-host create \
--template-variable PHP_VERSION=7.3

Switch PHP Version on an existing Virtual-Host using PHP 7.3:

www-data@server:~ $ sudo nine-manage-vhosts virtual-host update \
--template-variable PHP_VERSION=7.3

PHP OPcache flush

To improve the parsing and loading of all scripts at each PHP request, there is a default-enabled PHP Opcache activated. The Opcache enhances the PHP performance by saving pre-compiled bytecode in memory. You can explicitly flush the opcache by running our tool nine-flush-fpm.

Didn't find what you were looking for?

Contact our support:

+41 44 637 40 40 Support Portal