PHP version: how to install and change it on the site

29 September, 2023

The installation of the FastPanel control panel by default occurs simultaneously with the latest stable version of PHP. If there is a need to change PHP on the site, simply follow these steps:

  • Go to the “Settings” section, then “Applications” in the left menu.
  • Enter “php” in the search bar and the version you wish to install. The query should look like a single word: for example, “php74”, if you plan to install version 7.4.
  • Click “Install” next to the desired content.
  • The installation will take a few minutes. The status “Installed” will inform you when the operation is complete.
  • Go to the “Sites” section. Next to the resource where you plan to change the PHP version, select “Options”.
  • After going to options, you need to select “PHP Settings” and set PHP-FPM mode, and then the installed version. Save the settings by clicking the corresponding button.