How can I change my PHP version?

Basically, each of our web hosting packages provides access to different PHP versions. This article explains how you can adjust the PHP version of your website. Depending on whether you manage your web hosting in our new CloudPit or in the Controlpanel, you will find the settings for this in different ways.  

!!! WARNING !!!

Warning: Changing the PHP version can lead to irreversible consequences and jeopardize the accessibility of your website. Please check BEFORE making the change whether the website is compatible with the desired PHP version.

!!! WARNING !!!

 

Table of contents

1. I manage my web hosting in CloudPit. 2. I manage my web hosting in the Controlpanel.  

1. I manage my web hosting in CloudPit.

In the web hosting menu, click on [Domains] in the left menu bar to open the menu for domains & subdomains.

2024-06-05_17h58_03.png

Click on the [ACTIONS] button next to the desired (sub)domain and select [PHP settings] from the context menu.

2024-06-05_15h24_56.png

Note that there is no way to manage the default PHP version and each subdomain must be edited separately.

The max_memory_limit cannot be adjusted and applies to the selected PHP version.

2. I manage my web hosting in the Controlpanel.

!!! WARNING !!!

Warning: Changing the PHP version can lead to irreversible consequences and jeopardize the accessibility of your website. Please check BEFORE making the change whether the website is compatible with the desired PHP version.

!!! WARNING !!!

You can customise the default PHP version by first clicking on the [Web Hosting] (1) menu item in the Controlpanel and then on the [PHP Settings] (2) sub-item. The currently set default version is displayed at the top, followed by a list of available versions. Click on [Set as default] (3) next to the desired version to change the setting. Under the [Settings] link (4) next to the respective version, you can adjust further parameters, such as the PHP session_cache of memcached, filesystem or redis. You can also access that setting directly under this link.
If you only want to adjust the PHP version for a specific subdomain – for example, for a content management system that requires a specific version or is not compatible with a newer version – please proceed as follows:


Screenshot der Subdomain-Übersicht im legacy Controlpanel, wobei der Unterpunkt Subdomains im Webhostingmenü ausgewählt ist. Die Menüpunkte Webhosting, Subdomains und das Bearbeitensymbol neben einer Subdomain sind mit Zahlen von 1 bis 3 durchnummeriert.

In the [Webhosting] menu (1), click on the [Subdomains] sub-item (2) and then on the pencil icon next to the subdomain to adjust the display options. You can also access that setting directly under this link.
Screenshot der Subdomainverwaltungsoberfläche, wobei der Menüpunkt Webspace-Inhalt anzeigen ausgewählt ist. Der Schriftzug Erweiterte Einstellungen und die PHP-Version 8.3 sind mit den Ziffern 1 und 2 durchnummeriert. Select [Display webspace content] to find the link [Advanced settings »] (1) next to the text field for the folder. Click on it to set the PHP version (2) and make any other settings you require. If the PHP version of a subdomain differs from the specified default version, you can find it in the control panel by clicking on [Web Hosting] and then on [PHP Settings]. The corresponding subdomain and the associated PHP version are displayed at the bottom of the page. Here too, the PHP max_memory_limit cannot be adjusted and applies to the selected PHP version.