How to change the PHP version of a domain installed on ISPConfig

Procédure

On an ISPConfig VPS, each site has its own PHP version, and you change it yourself from ISPConfig: Sites menu, site details, Domain tab, PHP Version field. The versions offered in this field are those declared on your server: they depend on the date your VPS was installed and on the updates applied since then. The change takes effect after about a minute.

What is PHP?

PHP is a programming language that integrates into HTML pages. It is used in particular to automate repetitive tasks, most often by communicating with a database. CMS platforms such as WordPress, Joomla or PrestaShop, as well as e-mail contact forms, need PHP to work.

Change a site's PHP version

  1. Open ISPConfig

    In your LWS customer area, open the list of your servers, click Manage opposite your VPS, then Administration Panel. Log in with your ISPConfig credentials. Details are in How do I access ISPConfig on my VPS dedicated server?.

  2. Open the site details

    In the top menu, click Sites, then click the site to modify in the list.

  3. Choose the version in the PHP Version field

    In the Domain tab of the site details, open the PHP Version field list (Version de PHP if your ISPConfig is displayed in French) and choose the desired version.

  4. Save

    Click Save at the bottom of the details page. The new version becomes active on your site after about a minute.

This method works on a managed VPS as well as on a root-access VPS. It changes only the selected site: repeat it for each affected site.

Which PHP versions can you choose?

There is no single list valid for all VPSs: the PHP Version field list shows the versions available on your server. To view the versions installed on your VPS, including the Debian version, follow How do I find out the versions of the software installed on my ISPConfig VPS?.

Check that the change has been applied

Wait a minute after saving, then display your site and check that it works normally, including pages and forms. To confirm the version your site is really using, upload a small test file as explained in the “Check the PHP version actually used by a site” section of the help How do I find out the versions of the software installed on my ISPConfig VPS?, then delete it.

Video procedure

Frequently asked questions

How long do I need to wait to see the change applied?

It takes about one minute for the chosen PHP version to be activated on your site.

My site shows a 503 error right after changing the version

Wait one minute after saving the change in ISPConfig: while the new version is being activated, the site may display this error. If the site still does not work afterwards, put back the version you noted in the PHP Version field, then have the site’s compatibility with the new version checked by the person who developed it.

The PHP version I need does not appear in the list

The list shows only the versions declared in ISPConfig, and only an administrator can add one. On a managed VPS, open a ticket from your customer area, specifying the site and the desired version: support will check whether it can be added. On a root-access VPS, you administer the server yourself: installing a new PHP version is your responsibility, and it is declared in ISPConfig with the administrator account, System menu, then Additional PHP Versions. To find out which case applies to you, see Managed VPS, root access or VPS KVM: who manages what?.

This help used to provide a list of PHP versions by Debian version (7 to 10): is it still valid?

No. Those lists described older installations and no longer match the versions actually available on VPSs. Debian 10 and earlier versions no longer receive security fixes either. The versions available on your VPS can be seen in the PHP Version field or with the methods in the help How do I find out the versions of the software installed on my ISPConfig VPS?.

Related articles

help.lws.net/a/778
Was this article helpful?

Yes

No

Read 27 085 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

Need more help?

A question about this article?

Léo, our assistant, answers you straight away based on our articles.

A problem with your account?

Our technical support team handles your request by ticket, from your customer area.

Open a ticket