Article ID: 1048, created on Jan 21, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk 7.6 for Windows
  • Plesk 7.5 for Windows

Resolution

Parallels Plesk versions 7.5.5-panel 7.6.1 support this version of PHP but cannot manage PHP4 and PHP5 simultaneously.

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 the existing C:\Windows\php.ini file with the 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 and 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 correctly detected PHP5. Check that PHP is shown in the 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 above steps in the correct manner.

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

c0c38d2367acfa8909699e0b34b01dea a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 eeda7e5e81623f3acf0bdb69fa51d540 e115c1a9652baf38f4af4f18d5b7ac6e 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF