Installing and Upgrading PHP 5

PHP 5 is included in the Plesk distribution package and can be automatically installed by one of the automatic installation methods. For more information about the automatic installation methods, see "Automatic Installation of Plesk Components". For more information about upgrade methods, see "Plesk Component Upgrade".

Supported versions

For the latest supported PHP 5 engine version, see your Plesk release notes or the "Third-Party Software Supported by Plesk" section in this guide.

Manual Installation

To install PHP 5 manually as Plesk component, follow these steps:

  1. Log in to the Plesk server as the administrator by using Remote Desktop.
  2. Obtain a PHP 5 distribution package and install the application on a Plesk server by running the package installer.

    The PHP 5 installation folder must be located in the %plesk_dir%\Additional folder, where %plesk_dir% is the Plesk installation folder.

  3. Start registry editor.
  4. Ensure that the HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5 registry key has the InFilePath value set to to the full path to the PHP version installation folder (for example, C:\Program Files\Parallels\Plesk\Additional\PleskPHP5).
  5. Locate the php.ini file located in the PHP 5 installation folder (for example, C:\Program Files\Parallels\Plesk\Additional\PleskPHP5\php.ini).
  6. Ensure that the extension_dir directive in the php.ini file contain a valid full path to folder where the loadable PHP extensions (modules) reside.
  7. Complete the installation of PHP 5 engine as Plesk component by following the general integration procedure. The newly installed PHP 5 component entry appears in the Plesk components list.

Manual Upgrade

To upgrade the PHP5 component manually, follow these steps:

  1. Log in to the Plesk server as administrator by using Remote Desktop.
  2. Obtain a PHP5 upgrade package and apply the upgrade to the existing installation.
  3. Complete the upgrade of PHP5 component by following the general integration procedure. The upgraded PHP5 component entry appears in the Plesk components list.