Skip to main content
All CollectionsWeb Hosting
Updating your version of PHP
Updating your version of PHP

This article describes the steps to take to change the version of PHP your website uses

Garrett Saundry avatar
Written by Garrett Saundry
Updated over a week ago

Plesk provides full support for the PHP scripting language, including support for multiple PHP versions and handler types out of the box. This topic explains how PHP settings can be managed for domains and subdomains from the Control Panel.

CHOOSING THE PHP VERSION VIA CONTROL PANEL

Plesk supports multiple PHP versions out of the box. To choose the PHP version for your domain or subdomain, within your Hosting Control Panel, go to Websites & Domains > PHP Settings and select the desired PHP version from the menu.

CHOOSING THE PHP VERSION VIA .HTACCESS

The version of PHP being used can also be changed by adding the following line item in the .htaccess file of your site:

AddHandler application/x-httpd-php[versionnumber] .php

e.g. AddHandler application/x-httpd-php82 .php

For a list of all available values, please refer to the Hosting Environment Parameters document, linked below.

AVAILABLE PHP VERSIONS

We regularly make new versions oh PHP available for use by our customers. Click the button below to view our currently available PHP versions as well as other current parameters related to our hosting environments.

Did this answer your question?