Skip to main content

How to change the PHP version in Plesk (step by step)

Published on July 10, 2026 8 min read

Want to change the PHP version in Plesk? Pick the right version for speed and security, adjust the settings and roll back safely if your site breaks.

Flat illustration of a person beside a large browser window showing a settings panel with an open drop-down list, with cogs, a shield icon for security and a rising arrow for speed, in shades of blue with an orange accent.

The PHP version of your website has a big say in how fast, secure and reliable your site runs. The good news: you do not need to be a programmer to adjust it. To change the PHP version in Plesk you only need a few clicks, and you can set it separately for each website. This article explains why the right PHP version matters, which version to pick, how to check the version you run now, how to switch in Plesk and what to do if your site stops working after an upgrade.

What is PHP and why does the right version matter?

PHP is the programming language that powers many websites and content management systems (CMSes), including WordPress, Joomla and WooCommerce. The server runs PHP code to build your pages before they reach the visitor. The PHP version you use has a direct effect on three things.

Speed

Each new PHP version is usually faster than the one before it. Newer versions handle more requests per second and use less memory, so your pages load quicker. If you want to go further, read how to speed up your website with caching and compression.

Security

A PHP version only receives security updates for a limited number of years. If your site runs on a version that is "end of life" (no longer supported), no more security patches are released and you take on needless risk. Choosing a supported version is one of the quickest ways to keep your site safe.

Compatibility

CMSes, themes and plugins set requirements for the PHP version. Modern software often needs a recent version, while very old plugins can break on a new one. The right choice is therefore the newest version that all of your software supports.

Which PHP version should you choose?

The rule of thumb: pick the newest stable PHP version that your CMS, theme and plugins support. That way you get the best speed and security while your site keeps running smoothly. At LJPc you choose from PHP 8.2, 8.3, 8.4 and, on almost all of our servers, 8.5. This is how long the PHP developers support those versions (as of November 2026).

Support for the PHP versions (as of November 2026)
PHP versionFull support untilSecurity updates untilAdvice
PHP 8.531 December 202731 December 2029Newest version, a fine choice if your plugins and theme support it
PHP 8.431 December 202631 December 2028A safe, fast choice for most sites
PHP 8.331 December 202531 December 2027Still usable, plan a move to 8.4 or 8.5
PHP 8.231 December 202431 December 2026Upgrade soon
PHP 8.1 and olderEndedEndedNo longer available at LJPc

Running WordPress? WordPress itself recommends PHP 8.3 or higher, and PHP 8.4 is a good choice for it. The very latest version works too, but first check that your plugins and theme already support it.

Before you move to a newer version, see how to prepare your website for a PHP upgrade.

Check which PHP version your site runs now

Before you change anything, it helps to know which version you are on. There are three ways to check.

  • In Plesk: go to Websites & Domains and click the Dashboard tab in the card of your domain. Under Dev Tools you see PHP with the current version, for example Version 8.4.27.
  • In WordPress: go to Tools > Site Health > Info and open the Server section. Your PHP version is listed there.
  • With the phpinfo page in Plesk: on the PHP page of your domain (see the steps below), click View the phpinfo() page. You then see all details of your site's PHP version. The page opens inside Plesk, so your server details are visible to you only.
Dashboard tab of a domain in Plesk with the PHP tile under Dev Tools showing Version 8.4.27, next to Logs, Scheduled Tasks, Git, PHP Composer and Website Importing

How to change the PHP version in Plesk (step by step)

You set the PHP version per domain or subdomain, so you can choose a different version for each website. Here is how to do it.

  1. Log in to Plesk from the customer portal: go to Services > Sites, open your site and click Log in to Plesk in the Site overview block. Read more in open Plesk from the customer portal.
  2. Go to Websites & Domains and find the domain you want to adjust. Click the Dashboard tab in the card of that domain. On a new, empty site the Get Started tab is open first.
  3. Under Dev Tools, click PHP. This opens the PHP Settings page of your domain.
  4. Select the version you want under PHP version. The list shows the full version number, for example 8.4.27.
  5. Leave the choice under run PHP as as it is, unless support advises otherwise. What that setting means is explained in Apache and PHP handlers in Plesk.
  6. Click OK at the bottom of the page to save the change.
PHP Settings page in Plesk with PHP support ticked and the PHP version list open showing the versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12

The new version is active within a few seconds. On some of our servers your site can be unreachable for a few seconds during the switch. Afterwards, refresh your website and click through a few pages to check that everything still works. Pay particular attention to your login page, forms and your CMS dashboard.

Changing the PHP version is part of almost every package. If it does not work for you, get in touch with support.

After the switch: check these too

  • Scheduled tasks: a scheduled task of the type Run a PHP script has its own PHP version in Plesk (Use PHP version) and does not always follow your site. So check under Scheduled Tasks that your tasks use the new version. Read how to adjust a task in set up cron jobs in Plesk.
  • PHP settings: if a setting shows (Default), its value comes from the default configuration of the chosen PHP version. After a switch, such a value can be different. So check on the PHP page that memory_limit and upload_max_filesize still suit your site.

Adjust PHP settings: memory_limit, upload_max_filesize and more

On the same PHP page you find your site's PHP settings under Performance and security settings and Common settings. You only need to change them if a plugin or your CMS asks for it, usually through an error message. Change the value of the setting and click OK at the bottom. See how to change PHP settings in Plesk for which error belongs to which setting and what to do if you cannot change a setting yourself.

Whether you can change these settings yourself depends on your package. If the values are shown as plain text, get in touch with support and we will look into it with you.

Common PHP settings in Plesk
SettingWhat it doesWhen to raise it
memory_limitHow much working memory a script may useOn the message "Allowed memory size exhausted"
upload_max_filesizeThe maximum size of a single file you uploadWhen large images or media will not upload
post_max_sizeThe maximum size of a full submitted form (must be greater than or equal to upload_max_filesize)Raise it together with upload_max_filesize
max_execution_timeHow long a script may run, in secondsOn time-outs during imports or backups

Do not raise values higher than necessary: limits that are too generous can hide problems instead of solving them. If you are unsure which value to use, start small and increase it step by step.

Always change PHP settings on this page in Plesk. A php_value line in an .htaccess file causes a 500 error on some of our servers, and a .user.ini file is not read on every server. Read what does belong in .htaccess in set up .htaccess: redirects, security and more.

What to do if your site stops working after the upgrade

Sometimes a plugin or theme is not yet ready for a new PHP version. Your site then shows a blank page (the so-called "white screen of death"), an HTTP 500 error or a message about an unsupported function. Do not worry: you can switch back to the previous version in a few clicks. The error log shows which plugin or theme causes the error; read how to open it in viewing error logs in Plesk.

  1. Go back to Websites & Domains and click PHP again in the Dashboard tab of your domain.
  2. Select the previous PHP version that your site worked on.
  3. Click OK. Your site now runs as it did before.

Next, find out which plugin or theme causes the problem. Update your software to the latest version, because updates often resolve compatibility issues. Make a backup of your website before you update. For WordPress, our guide explains how to update WordPress safely. Then test again whether you can move to the new version.

Common problems after changing the PHP version
SymptomLikely causeSolution
Blank page or HTTP 500 errorA plugin or theme is not compatible with the new versionSwitch back to the previous version and update your plugins and theme
Message "requires PHP x.x or higher"The software needs a newer version insteadChoose a newer PHP version
"Allowed memory size exhausted"The memory_limit is set too lowRaise memory_limit
Large uploads failupload_max_filesize or post_max_size is set too lowRaise both values
Time-out during an import or backupThe max_execution_time is set too lowRaise max_execution_time
A scheduled task fails after the switchThe task still runs on the old PHP versionSelect the same PHP version as your site for the task under Scheduled Tasks

Still stuck? Call us on +31 85 130 6429, email support@ljpc.nl or create a support ticket. We are happy to help.

Frequently asked questions

Which PHP version should I choose in Plesk?

Choose the newest stable version that your CMS, theme and plugins support. For WordPress that is PHP 8.3 or higher, with PHP 8.4 being a safe and fast choice. At LJPc you choose from PHP 8.2 up to and including 8.5. PHP 8.2 receives security updates until the end of 2026, so move away from it in time.

How do I check which PHP version my website runs?

In Plesk, go to Websites & Domains and open the Dashboard tab in the card of your domain; under Dev Tools you see PHP with the version. In WordPress you find it under Tools > Site Health > Info in the Server section. On the PHP page in Plesk, View the phpinfo() page shows all details.

Will my website go offline when I change the PHP version?

For a few seconds at most. The new version is active within a few seconds, and on some of our servers your site is briefly unreachable during the switch. Check your most important pages after the change.

My site broke after changing the PHP version. What now?

Go back to the PHP settings for the domain and select the previous version that your site worked on. The change is fully reversible. Then update the plugin or theme that caused the problem and try again.

What is the difference between the PHP version and the PHP handler?

The version is the PHP release itself, for example PHP 8.4. The handler, the run PHP as choice in Plesk, determines how the web server runs that PHP. Leave the handler as it is, unless support advises otherwise.

Can I use different PHP versions for different websites?

Yes. In Plesk you set the PHP version separately for each domain and subdomain. So one site can run on PHP 8.4 while another already uses PHP 8.5.

Why can I not change memory_limit in Plesk?

Whether you can change PHP settings such as memory_limit and upload_max_filesize yourself depends on your package. If the values on the PHP page are shown as plain text, get in touch with support and we will look into it with you.

Prefer to talk to someone?

We are also happy to answer your questions personally. Schedule a free consultation or call us directly. We are glad to think along with you.

Stay up to date with recent developments! Subscribe and receive our newsletter Signing up...