Plesk 7.5.5-7.6.1versions support this version of PHP but they are not able to manage PHP4 and PHP5 at the same time only PHP4 or PHP5.
If your Plesk version is 7.5.5 or higher you can follow these steps to install PHP5 at your server:

1. Download PHP5 Windows Binaries:

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

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

Open command prompt:


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 folder "%plesk_dir%Additional\Php" to "%plesk_dir%Additional\Php4"

4. Re-register web service extensions for PHP4.

Open command prompt:


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 PHP 5.x.x package into %plesk_dir%Additional\Php.

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

7. Register PHP5 extension in IIS manually:

Open command prompt:


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. Backup or rename C:\Windows\php.ini.

9. Put attached to this article file php.ini to C:\Windows\php.ini.

10. Configure default C:\Windows\php.ini according to Plesk configuration.

Set parameters:

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

Example:

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

11. Re-configure webmail in IIS to use PHP4 because HORDE webmail does not work on PHP5.

IIS Management, Web Sites, webmail(default), Properties, Home Directory tab, Configuration button, Application Extensions, edit value for `.php` extension, set to "%plesk_dir%additional\php4\php.exe"

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

Change parameter:

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

Example:

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

12. Make sure that PHP5 has been detected by Plesk. You can check in Plesk, Server, Components Management, Web Scripting section PHP should be listed there. If not, you need to check whether all the steps were done properly.

13. Reconfigure domains web-sites in IIS to use PHP5.


"%plesk_bin%\websrvmng.exe" --reconfigure-all
Additional information
Please see also Simultaneous PHP 4 and PHP 5 usage

http://kb.parallels.com/en/1048

Recommended buys!

0 comments