Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to Change the PHP Version in Plesk

This guide shows how to pick a different PHP version for your website in Plesk.

Plesk2 min read10 steps6 screenshots

What is PHP?

PHP is a language that many websites, such as WordPress, are written in. The server reads the PHP code and builds the page. PHP has versions, like 7.4 or 8.1. Some sites need a newer version. Old sites sometimes need an older one.

Plesk is a control panel. A control panel is a web page where you manage your hosting. Which PHP versions you can pick depends on your server. Ask Hostvento support if one you need is missing.

A new version can break an old site. Take a backup first.

Steps

  1. Log in to Plesk.
  2. Click Websites & Domains in the left menu.
  3. Find your domain and click PHP Settings.
  4. Look for the PHP version list. In some Plesk versions you first open Hosting Settings instead.
    login to plesk 1
    website and domains
  5. Pick the version you want from the list.
  6. Check the Run PHP as setting. Common choices are FPM application served by Apache or FastCGI. If you are unsure, leave it as it is.
  7. Click OK or Apply.
  8. Open your website in a browser. Check that every page still works.
Tip: If your site shows an error after the change, go back and pick your old version. Then ask the maker of your theme or plugin which PHP version it supports.

Check the version

  1. In the same PHP Settings page, you can see the settings for that version.
    php settings
  2. To be sure, create a file called info.php in your site folder with this line:
<?php phpinfo(); ?>

Open yourdomain.com/info.php in a browser. It shows the version at the top. Delete the file afterwards, because it shows private details.

Quick recap

  • Go to Websites & Domains, then PHP Settings.
    php settings 1
    PHP versions
  • Choose the version and click OK.
    apply
  • Back up first and test your site after.
  • Switch back if something breaks.