Chapter 63: Controller: /siteworx/dns Up Part III: SiteWorx API Spec Chapter 65: Controller: /siteworx/domains/pointer 

64 Controller: /siteworx/domains/php

Required Permissions "PHP"
Action: edit
Added in version 6.0.16-1389
Description Edit PHP options.
Input Parameters
Name Type Notes Required?
domain string Example Values
example.com, secondary.com
Yes
php_version string Help Entry
####
Example Values
/opt/remi/php71
Example Default Value
/opt/remi/php71
No*
* indicates that it’s actually required, but probably already has a valid default value
Action: listPhpVersions
Added in version 6.0.16-1389
Description List php versions for master and secondary domains.
Sample output
array (
’status’ => 0,
’payload’ =>
array (
0 =>
array (
’domain’ => ’example.com’,
’type’ => ’master’,
’php_version’ => ’7.1.11’,
’ipv4’ => ’10.1.15.100’,
’ipv6’ => false,
’ipv4_type’ => ’##LG_SHARED##’,
’ipv4_ssl’ => ’example.com’,
’ipv6_type’ => ’’,
’ipv6_ssl’ => ’’,
),
1 =>
array (
’domain’ => ’secondary.com’,
’type’ => ’slave’,
’php_version’ => ’7.1.11’,
’ipv4’ => ’10.1.15.100’,
’ipv6’ => false,
’ipv4_type’ => ’##LG_SHARED##’,
’ipv4_ssl’ => ’example.com’,
’ipv6_type’ => ’’,
’ipv6_ssl’ => ’’,
),
),
)
 Chapter 63: Controller: /siteworx/dns Up Part III: SiteWorx API Spec Chapter 65: Controller: /siteworx/domains/pointer 

(C) 2018 by InterWorx LLC