For the complete documentation index, see llms.txt. This page is also available as Markdown.

List PHP options for a website

Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.

List PHP options for a website

get

Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Responses
200

Success response

application/json
namestringOptional

php.ini directive name.

Example: upload_max_filesize
descriptionstringOptional

What the directive controls.

Example: The maximum size in bytes of an uploaded file.
default_valuestringOptional

Value applied when no custom value is set.

Example: 128M
allowed_valuesstring[] · nullableOptional

Values this option accepts. Null when the option accepts any value of its type.

Example: ["128M","256M","512M"]
valuestringOptional

Value currently in effect for the website.

Example: 256M
typestring · enumOptional

Whether the option takes a single value or a list of values.

Example: valuePossible values:
get/api/agency-hosting/v1/websites/{website_uid}/php-settings/options
GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/options HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "name": "upload_max_filesize",
    "description": "The maximum size in bytes of an uploaded file.",
    "default_value": "128M",
    "allowed_values": [
      "128M",
      "256M",
      "512M"
    ],
    "value": "256M",
    "type": "value"
  }
]

Last updated

Was this helpful?