> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/agency-hosting/php/replace-website-php-extensions.md).

# Replace website PHP extensions

Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/agency-hosting/v1/websites/{website\_uid}/php-settings/extensions" method="put" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
