Note

You are viewing the documentation for an older release of Interworx (6.x). To see documentation for the current generally available release of Interworx, click here: 7.13.

How to Enable Multiple PHP in NodeWorx and SiteWorx

InterWorx supports multiple PHP as of version 6.0.0.

Requirements:

In order to enable multiple PHP support in NodeWorx, the following is required:

  • InterWorx version 6.0.0+

Set Up:

To enable multiple PHP support in NodeWorx, follow these steps:

  1. On a server running at least InterWorx version 6.0.0, navigate to System Services > Webserver in the sidebar on the left

  2. Under the header Multiple PHP Versions, click the Enable button

  3. Check the boxes next to the PHP versions to be installed

  4. Click the Update button

mulphp1 mulphp2 mulphp3

Selecting the default PHP version:

This version will be pre-selected when creating new SiteWorx accounts. This controls the default value when using an API call that may not provide this input for creating a new SiteWorx Account.

To select the default PHP version for the server, follow these steps:

  1. From the Webserver page in NodeWorx, select the installed version of PHP to be the default on the server from the Default PHP Version dropdown menu

  2. Click the Update button

mulphp4

Enabling Specific PHP Version for SiteWorx Accounts

When creating a new SiteWorx account, a specific installed PHP version can be selected by following these steps:

  1. In NodeWorx, navigate to SiteWorx > Accounts

  2. Click the Add New SiteWorx Account button at the top of the page

  3. Select the PHP version to be used from the PHP Versions dropdown under PHP Options

  4. If SiteWorx account should have the ability to use other PHP versions than the server default, check the box next to all PHP versions that apply

  5. Click the Save button

Specific PHP versions can be selected for existing SiteWorx accounts by instead clicking the Edit button next to the account name in NodeWorx under SiteWorx > Accounts, and following the above steps 3-5.

mulphp5 mulphp6 mulphp7 mulphp8

Changing the Default PHP Version for a SiteWorx Account within SiteWorx

The Default PHP version for a SiteWorx account can be changed within SiteWorx by following these steps:

Click the Change button next to the version listed on the SiteWorx Overview page

Select the new default version

Click the Save button

mulphp9 mulphp10

Changing the PHP Version For a Specific SiteWorx Domain

Specific PHP versions may be set for primary and secondary domains within SiteWorx. This can be achieved by following these steps:

  1. In SiteWorx, navigate to Hosting Features > Domains > PHP Options

  2. Click the Edit button next to the domain to be changed

  3. Select the PHP version to be used

  4. Click the Save button

mulphp11 mulphp12 mulphp13