PHP7 and HHVM
Summary: Seravo.com always offers the latest version of PHP for fast and secure sites
Alternative PHP Engines
By default, Seravo.com uses the PHP7 as its PHP driver because it is widely supported in the WordPress community and the vast majority of plugins will work with it. Alternative engines have however also been available and customers can easily change the PHP version in use.
The PHP version can be modified by making a (or modifying an existing) file in
/data/wordpress/nginx/*.conf that contains the line:
set $mode php7.3;
Currently available options are:
php5.6. The version
php5 is an alias for
php7 is an alias for
If for some reason an older PHP version is preferred, just add a line to Nginx conguration for example in a file named
set $mode php7.1;
Remember to reload the Nginx configuration afterwards with
The same instructions work both in our Vagrant box and on the live server. When you make the Nginx configuration part of your development repository, all your development, staging and production environments will use the same PHP back-end across the board.
For a performance boost we used to offer the option of using the Facebook’s Hip Hop Virtual Machine (HHVM) instead of PHP as the WordPress driver. HHVM was a massive improvement over PHP5 in speed, but sometimes suffered from stability and compatibility issues. Now when PHP7 has been in general availability for over a year, HHVM is not offered for new WordPress instances any more as HHVM has been deprecated in favour of PHP7.