How To: Enable Multiple PHP in NodeWorx and SiteWorx

The InterWorx Control Panel provides the ability to install more than one version of PHP using the Multiple PHP tool. From the Webserver page, server administrators can install several different PHP versions, which can then be assigned to different domains and SiteWorx accounts.

Documentation on how to set PHP versions for specific domains in SiteWorx can be found here.

Note

The versions of PHP provided by the Multiple PHP tool within InterWorx are PHP-FPM by default, whether the system-level PHP mode is set to SuPHP or PHP-FPM.

Managing Multiple PHP Versions in NodeWorx

To Enable Multiple PHP

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to System Services > Web Server > Overview

  3. Under Multiple PHP Versions, click Enable

multiple php enable button

To Install Multiple PHP Versions

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to System Services > Web Server > Overview

  3. Under Multiple PHP Versions, select the checkbox next to the PHP versions to be installed

    Note

    Depending on the number of PHP versions that are being installed, and the speed of the internet connection on the server, it is not uncommon for this process to take several minutes.

    php versions
  4. Click Update

Managing Multiple PHP Versions for SiteWorx Accounts

To Set the Default PHP Version for SiteWorx Accounts

The Default PHP Version is what will be pre-selected when creating new SiteWorx accounts.

This also controls the default value when using an API call to create a new SiteWorx Account.

Note

Changing the default PHP version will only affect newly created SiteWorx accounts. The PHP version for existing accounts will not be changed.

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to System Services > Web Server > Overview

  3. From the Default PHP Version dropdown, select the installed PHP version to set as the default

  4. Click Update

default php version

To Enable Specific PHP Versions for a SiteWorx Account

It is possible for server administrators to set specific PHP versions that a SiteWorx account has access to. This can be achieved both when creating a new SiteWorx account, or when editing an existing one.

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to SiteWorx > Accounts

  3. If creating a new SiteWorx account, click +

    • If editing an existing SiteWorx account, click the Pencil next to the account. This opens the SiteWorx Account Management form

  4. To select the Default PHP Version for the SiteWorx account (if different from the default set on the Webserver page), select the PHP version from the PHP Versions dropdown under PHP Options

  5. To select and PHP versions that the SiteWorx account should have the ability to use, other than the default, under Available PHP Versions, select the checkbox next to all PHP versions that apply

    • To select all versions, click check all

  6. Click Save

php options