How to update IonCube Loader in Windows Plesk Server?
According to Plesk release notes:.
'ionCube Loader 4.2.2' is the latest version which is supported with Plesk 12.X. Please check below given release document (it's for Plesk 12.X which is latest version of Plesk).
- [*] IonCube loader was updated to version 4.2.2 in PHP 5.3 - 5.4, and to 3.1.32, in PHP 5.2.
If still want to update the same to other version, please check resolution part.
As supported ionCube Loader (4.2.2) is already installed on your server, further if you still want to install the latest ionCube Loader, you can perform below steps.
As it is third party installation (not available in release notes as supported one), this is purely a system administrative task, so please involve your system administrators before performing the same.
Take the backup of current
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini(copy it like php.ini_bak).
Download the latest MSI installer of IonCube Loader from vendor site, example: "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_win_nonts_vc9_x86_ipf.zip".
Run setup > select option “Install to this machine”. Installation location will be
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\ext(as per the path of PHP installation).
Check the libraries on updated path
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\ext\ioncube.
Take the backup of "C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini" and update the inocube loder library path as below.
zend_extension="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\ext\ioncube\ioncube_loader_win_5.4.dll"
- Restart IIS and checked for 'ionCube Loader' version. It should be the latest one.
Note: if you want to use the older version or want to revert the changes, you need to replace the php.ini with the php.ini_bak file (backup of previous config) and restart the IIS.
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54>php.exe -v PHP 5.4.23 (cli) (built: Dec 11 2013 00:56:17) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.