---
title: "Update PHP options"
method: PATCH
path: "/api/hosting/v1/accounts/{username}/websites/{domain}/php/options"
tags: ["Hosting: PHP"]
---

# Update PHP options

`PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/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.

## Path parameters

- `username` string, required
- `domain` string, required

## Request body

- HostingV1PhpUpdatePhpOptionsRequest
  - `options` object, required — Map of PHP options to update, keyed by option name. Only include options you want to change.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
