Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

[Info] PHP and php.ini in Plesk

Article ID: 1770 
Last Review: Mar,19 2009
Author: Dmitry Frantsev
Last updated by: Oleg Beznosov APPLIES TO:
  • Parallels Plesk Panel for Windows

Resolution

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

There are two versions of PHP included to 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  version of PHP.

Default location of php.ini for PHP4 is Windows base directory %systemroot%.

Default location of php.ini for PHP5 is 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 place into the /httpdocs folder.

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

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

HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5\IniFilePath

Additional information

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

http://msdn2.microsoft.com/en-us/library/ms525172.aspx


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products