Maintenance Completed Migration to EasyApache4

#1
In the coming week, I'm going to need to start migrating the shared hosting servers over to EasyApache4. The build will be exactly the same (running PHP5.6),however, it will require a small amount of downtime on the servers while it rebuilds, and I get Memcached working again.

I'm going to be doing cp2.mattwservices.uk tomorrow night after 20:00 UTC. Should only take around 30 minutes to complete the work.
 
#3
I'm moving cp2.mattwservices.uk to EA4 now. Shouldn't cause much disruption.....hopefully.
This has now been completed. As part of this, multiple PHP versions are available for selection.

upload_2017-2-20_4-11-9.png

MutiPHP Manager

PHP5.4, PHP5.5 and PHP7.1 are available, but not configured, so PLEASE DON'T PICK ANY OF THOSE! The system default is PHP5.6 with Memcached available as a cache handler. PHP7 is available, which uses Libmemcached to interface with Memcached.

Both PHP5.6 and PHP7 have Ioncube loaded as well.

upload_2017-2-20_4-12-7.png

You can then pick the PHP version from the drop down menu on the right hand side.

If you are swapping to PHP7 or PHP7.1 and running XenForo, you need to update your config.php file to use the new Libmemcached handler

PHP:
$config['cache'] = array(
    'enabled'                      => true,
    'cacheSessions'                => true,
    'frontend'                     => 'Core',
    'frontendOptions'              => array(
        'caching'                  => true,
        'cache_id_prefix'          => 'NAME_',
        'automatic_serialization'  => false,
        'lifetime'                 => 0),'backend'                      => 'Libmemcached',
    'backendOptions'               => array(
        'servers'                  => array(
            array(
                'host'             => 'localhost',
                'port'             => 11211,
                'weight'           => 1
            )
        )
    )
);
Specifically, the 'backend' option from Memcached to Libmemcached. If you aren't confident doing this, please message me directly, and I'll move you over.

This is currently only available on cp2.mattwservices.uk, I've not done cpanel.mattwservices.uk yet.
 
Last edited:
#4
Also a point to note for anyone running XenForo. You need to be running a minimum version of 1.5.0 (you should be on the latest version preferably),and if you are running Widget Framework addon from xfrocks, update to the latest version available from his site (2.6.X),as 2.5.X isn't compatible with PHP7

[bd] Widget Framework
 
#9
All done. For all the sites which I have got admin access to, I've checked, and updated widget framework where applicable, and switched you over to PHP7.

I've also moved you over to Libmemcached for the caching mechanism.
 

viper357

Hosting Customer
#10
All done. For all the sites which I have got admin access to, I've checked, and updated widget framework where applicable, and switched you over to PHP7.

I've also moved you over to Libmemcached for the caching mechanism.
Hi Matt, I assume PHP 7 or 7.1 is safe to move to from 5.6? Do I just change it in cpanel or is there anything else that needs to be done?
 
#11
Hi Matt, I assume PHP 7 or 7.1 is safe to move to from 5.6? Do I just change it in cpanel or is there anything else that needs to be done?
As long as you are running the latest widget framework per my earlier post, you can simply switch to PHP7. XFMG has an issue with 7.1, which they fixed, so you need to be running the latest version of that to use 7.1