Article ID: 1770, created on Mar 29, 2007, last review on Oct 2, 2014

  • Applies to:
  • Plesk for Windows


This article describes versions of PHP that can be used in Plesk and the recommended configuration of php.ini files.

There are two versions of PHP included with and supported by Plesk: PHP4 and PHP5. PHP can work in two modes: as CGI or as ISAPI. Both versions of PHP use php.ini files that are different depending on the version of PHP.

The default location of php.ini for PHP4 is the Windows base directory %systemroot%.

The default location of php.ini for PHP5 is the PleskPHP5 base directory %plesk_dir%Additional\PleskPHP5.

A custom php.ini with PHP4 in CGI mode can be used. In order to apply that, the php.ini file needs to be placed in the /httpdocs folder.

However, there is no such option with PHP4 in ISAPI mode which always uses the default php.ini of PHP4. Also, there is no option in PHP5 in either mode, where the default php.ini of PHP5 is used.

The default location of the php.ini file in PHP5 is defined by the following value in the registry:


Additional Information

Consult this article for more information on the differences between the ISAPI and CGI modes:

85a92ca67f2200d36506862eaa6ed6b8 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF