How to upgrade SolusVM to a new version with PHP 7.3 support?

Have more questions? Submit a request

Applicable to:

  • SolusVM

Question

I see the following notification in SolusVM interface:

SVM_ERROR: The current version of SolusVM is running an outdated version of PHP. It is recommended to upgrade to new SolusVM version packaged with PHP 7.3 support. More info can be found here.

How the upgrade procedure should be initiated?

Answer

Requirements

Before the upgrade, three conditions have to be followed:
1. OS version installed on a server has to be CentOS 6 or CentOS 7.

Warning: Do not initiate the upgrade on CentOS 5 servers - it will break your SolusVM node.

2. The architecture of the node has to be 64 bit:

# arch
x86_64

3. The current software stack has to include PHP 5.6 and svmstack-nginx web server:

# php -v
PHP 5.6.30 (cli) (built: Mar 21 2017 12:59:30)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.9, Copyright (c) 2002-2016, by ionCube Ltd.
# service svmstack-nginx status
nginx (pid 136935) is running...

In case PHP version is different or svmstack-nginx service is not installed - proceed with switching to PHP 5.6 and installing svmstack-nginx.

Warning: CentOS 6 reached its End-Of-Life. Make sure that you have configured CentOS Vault Repository on node servers with CentOS 6. Use this article for more details

Procedure

Master node upgrade:

  1. Connect to Master node over SSH.

  2. Update the whole SolusVM infrastructure to the latest mainline version:

    # upcp 2

  3. Initiate upgrade of Master node to PHP 7.3:

    # curl -o php_updater.sh http://files.soluslabs.com/solusvmphp7/php_updater.sh && /bin/bash php_updater.sh

  4. Check PHP version - it has to be 7.3:

    # php -v
    PHP 7.3.11 (cli) (built: Jan 10 2020 08:49:53) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.

Warning: in case SolusVM Master interface becomes unavailable - check /tmp/update.log for any error messages or contact SolusVM Technical Support.

Slave node upgrade:

  • Scripted upgrade of all slave nodes:

    1. Connect to Master node over SSH.

    2. Initiate PHP 7.3 upgrade of all slave nodes with a single command:

      # upcp 4

      Warning: Even though the command will report that slave upgrade is completed - the actual upgrade will be completed in approximately 10 minutes or more.

    3. Connect to a slave node over SSH.

    4. Check PHP version - it has to be 7.3:

      # php -v
      PHP 7.3.11 (cli) (built: Jan 10 2020 08:49:53) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
      with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd. \

  • If the scripted upgrade of all nodes at once is not suitable, use Manual upgrade of each slave node separately:

    1. Connect to Slave node over SSH.

    2. Initiate PHP 7.3 upgrade of this particular node:

      # /bin/bash /usr/local/solusvm/tmp/update/php_updater.sh

    3. Check PHP version on a slave node - it has to be 7.3:

      # php -v
      PHP 7.3.11 (cli) (built: Jan 10 2020 08:49:53) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
      with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.

    4. Repeat for all nodes in SolusVM cluster.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.