Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

[Info] How to install PHP5 with legacy Plesk versions

Article ID: 1048 
Last Review: Feb,13 2009
Author: Daria Taranova
Last updated by: Daria Taranova APPLIES TO:
  • Plesk 7.5 for Windows
  • Plesk 7.6 for Windows

Resolution

Parallels Plesk versions 7.5.5-panel 7.6.1 supports this version of PHP but can not manage PHP4 and PHP5 simultaneously, only PHP4 or PHP5.
If you have
Parallels Plesk Panel version 7.5.5 or higher, follow the steps below to install PHP5 on your server:

1. Download Windows Binaries for PHP5:

- Package 5.x.x PHP zip
- Collection of PECL modules for PHP 5.x.x

2. Remove current PHP4 extensions from Registered Web Service Extensions in IIS:

Issue the following commands in the command line:

cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\php.exe"
cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\sapi\php4isapi.dll"


3. Rename the folder "%plesk_dir%Additional\Php" to "%plesk_dir%Additional\Php4"

4. Re-register web service extensions for PHP4.

Issue the following commands in the command line:

cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\php.exe" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\php.exe"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll"


5. Unzip the package into
%plesk_dir%Additional\Php.

6. Unzip the Collection of PECL modules in
%plesk_dir%Additional\Php\Ext.

7. Record
PHP5 extension in IIS manually:

Issue the following commands in the command line:

cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php-cgi.exe" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php5isapi.dll" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php-cgi.exe"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php5isapi.dll"


8. Copy or rename
C:\Windows\php.ini.

9. Replace existing C:\Windows\php.ini file with one attached to this article

10. Set
C:\Windows\php.ini default depending on the configuration of Parallels Plesk Panel.

Set parameters:

extension_dir = "%plesk_dir%Additional\Php\ext"

For example:

extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php\ext"

11. Reset the IIS web mail in order to use PHP4 as the HORDE webmail does not work on PHP5.

In IIS administration, Web sites, webmail (default), Properties, Home Directory tab, Configuration button, Application Extensions, edit the value for the '.php' extension, define it as
"%plesk_dir%additional\php4\php.exe"


Edit "%plesk_vhosts%webmail\horde\php.ini"

Change the parameter:

extension_dir = "%plesk_dir%Additional\Php4\extensions"

For example:

extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php4\extensions"

12. Verify that Parallels Plesk Panel detected PHP5  correctly. Check that PHP is shown in section Parallels Plesk Panel, Server Management Components, Web Scripting. If there is no correct information about PHP5 in this section, make sure you have completed the steps in the right way.

13. Re-configure Web sites of the domains in IIS to use PHP5.

"%plesk_bin%\websrvmng.exe" --reconfigure-all


Additional Information

See Simultaneous use PHP 4 and PHP 5

Attachments:



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