Hosting: PHP
Update PHP options
Updates PHP options for the website (e.g. memory_limit, max_execution_time, upload_max_filesize). Only provide the options you want to change, inside the options object.
Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
patch/api/hosting/v1/accounts/{username}/websites/{domain}/php/options
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Request body
Example request
{
"options": {
"memory_limit": "512M",
"max_execution_time": 300,
"upload_max_filesize": "256M"
}
}Response
Success empty response
Example response
{
"message": "Request accepted"
}