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-allAdditional Information
See Simultaneous use PHP 4 and PHP 5