Update default PHP version

The version of PHP that you wish to set as the system's default.

  • ea-php81
  • inherit
  • Any custom PHP package name.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
version
required
string

The version of PHP that you wish to set as the system's default.

Example: version=ea-php81
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/php_set_system_default_version
Request samples
whmapi1 --output=jsonpretty \
  php_set_system_default_version \
  version='ea-php74'
Response samples
application/json
{
  • "metadata": {
    • "command": "php_set_system_default_version",
    • "reason": "Ok",
    • "result": 1,
    • "version": 1
    }
}