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

66 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: fail
Added in version n/a
Description Magic function - test for failure mechanism.
Action: listFpmOptions
Added in version 6.0.27-1423
Description Show FPM options for this SiteWorx account.
Sample output
array (
’status’ => 0,
’payload’ =>
array (
’fpm_max_children’ => ’4’,
’fpm_max_requests’ => ’8192’,
’fpm_process_management’ => ’ondemand’,
’fpm_start_servers’ => ’2’,
’fpm_min_spare_servers’ => ’1’,
’fpm_max_spare_servers’ => ’4’,
’fpm_process_idle_timeout’ => ’120s’,
),
)
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.19’,
’ipv4’ => ’10.1.15.100’,
’ipv6’ => false,
’ipv4_type’ => ’##LG_SHARED##’,
’ipv4_ssl’ =>
array (
0 => ’example.com’,
),
’ipv6_type’ => ’’,
’ipv6_ssl’ => ’’,
),
1 =>
array (
’domain’ => ’secondary.com’,
’type’ => ’slave’,
’php_version’ => ’7.1.19’,
’ipv4’ => ’10.1.15.100’,
’ipv6’ => false,
’ipv4_type’ => ’##LG_SHARED##’,
’ipv4_ssl’ =>
array (
0 => ’example.com’,
),
’ipv6_type’ => ’’,
’ipv6_ssl’ => ’’,
),
),
)
Action: reroute
Added in version n/a
Description Action to re-route from the current controller to a different one.
Input Parameters
Name Type Notes Required?
controller string Example Values
Index, Overview, Email, EmailBox, EmailAlias, EmailGroup, EmailAutorespond, DomainsSlave, DomainsPointer, DomainsSub, DomainsPhp, Dns, Ssl, SslKey, SslChain, SslCrt, SslCsr, Ftp, FtpSessions, MysqlDb, MysqlUser, MysqlPerms, Cron, Htaccess, Simplescripts, Users, Logs, Twofactorauth, EmailRemotesetup, EmailFilters, EmailSpamprefs, EmailSpf, EmailDomainkeys, Backup, BackupSchedule, Prefs, Notice, Logout
Yes
Action: win
Added in version n/a
Description Magic function - test for testing success mechanism.
 Chapter 65: Controller: /siteworx/dns Up Part III: SiteWorx API Spec Chapter 67: Controller: /siteworx/domains/pointer 

(C) 2018 by InterWorx LLC