ionCube Loader libraries are installed on Media Temple servers with Plesk by default. cPanel users will need to install ionCube through either the CLI or WHM.
This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by Media Temple. Please take a moment to review the Statement of Support.
The easiest way to install IonCube Loader libraries on cPanel is to connect to your server as root and execute the following command:
phpextensionmgr install ionCubeLoader
As of this writing, the above command installs the ionCube PHP loader version 4.7.5. If you aren't comfortable using the CLI or would like to toggle between versions 4 and 5, use the cPanel instructions below. Keep in mind that this method will require compiling Apache/PHP and may take several minutes to complete.
1. Start by logging in to WHM and clicking on Software.
- Alternatively, you can simply type EasyApache into the search field in the top left and skip to step 3.
2. Depending on which version you're using, select EasyApache 3 or 4 from the list. EasyApache 3 is enabled by default, but you will be alerted if you select the incorrect version.
3. Select your active template and click on the settings icon on the right.
4. Click on Next Step until you arrive at the Short Options List. Select either ionCube Loader version 4 or 5 depending on what you require.
- Once you've selected your version, scroll to the bottom of the page and click on Save and Build.
Apache and PHP will now compile with your updated settings. This process may take up to half an hour. As always, please feel free to contact our award winning 24/7 support with any questions or concerns.
This article will assist you with installing the ionCube libraries on a particular domain on your Grid and modify your php.ini file to direct Apache to use them.
Installing ionCube loader libraries
- First, we will download the libraries from the ionCube website and then upload them to your server in the correct directory.
- Download the Linux x86-64 version libraries from http://www.ioncube.com/loaders.php. Please be sure to download the 64-bit version, as all Media Temple servers utilize 64 bit architecture.
- Unarchive these files on your local computer. You should now have a folder called "ioncube" with the libraries inside it.
- Connect to your server with FTP.
- Navigate to your /home/00000/domains/example.com/ directory. Please replace 00000 with your site number, and example.com with your domain name.
- Upload the entire folder called ioncube to your server, along with all of its contents.
You should now have a folder directly inside your domain folder called ioncube which has the library files inside of it.
Alternatively, you can download and extract the libraries via SSH. Run these commands separately:
Move to the correct directory (replace with your own site number and domain name):
Download the files:
Extract the files:
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
- Next, we will configure your server to use the libraries.
- In your FTP software, navigate to /home/00000/etc/.
- By default, there is a file called php.ini.sample. Download a copy of this file.
- In a plain text editor, such as Notepad, open the file and add these lines at the top - they MUST be at the top:
zend_extension = /home/00000/domains/example.com/ioncube/ioncube_loader_lin_5.3.so
Be sure to replace 00000 with your site number, and example.com with your domain name.
- Save the file with the name php.ini.
- Upload the file to your /home/00000/etc/ directory, where you originally downloaded it.
Alternatively, you can run the following command in SSH to modify your php.ini file (replace 00000 with your site number):
Add the lines from Step (c) above to the top of your php.ini file. Save and quit.
vim tip: Press "i" to enter "insert mode" so you can type and copy/paste. Press "Esc" to exit "insert mode" when you are done modifying the file. Type ":wq" to save and quit.
- Check that the module was successfully installed by visiting your PHP Info page. You can access this from the AccountCenter. Click on your primary domain, then on PHP Settings, then the link for PHP Stable or PHP Latest. Or, you can visit these URLs directly (replace 00000 with your site number):
You will see the ionCube Loader mentioned in the Zend Engine section near the top, and also listed in the Additional Modules section.
This article will walk you through enabling ionCube for a WordPress account. The ionCube loader is a popular PHP module that makes it possible to use software that has been encoded using ionCube. Developers often use ionCube to protect their proprietary PHP builds.
1. First, we will download the libraries from the ionCube website and then upload them to your server in the correct directory.
- Download the Linux x86-64 version libraries from ionCube. Please be sure to download the 64-bit version, as all (mt) servers utilize 64 bit architecture.
- Unarchive (unzip) these files on your local computer. You should now have a folder called "ioncube" with the libraries inside it.
- Connect to your server with SFTP. In order to connect using SFTP, you must have SSH enabled in the account center. Once connected, you should be in your home directory.
- Upload the entire folder called ioncube to your server, along with all of its contents. Ioncube may also be served from the data directory, but for the purpose of this tutorial, we will be using the home directory. On your SFTP terminal, use 'put' to upload the files. Alternatively, you may also upload using an FTP client such as FileZilla or CoffeeCup.
- put path/to/ioncube
2. We'll use the ionCube Loader wizard to configure the libraries. Open a browser and navigate to the wizard. Make sure you replace "yourDomain" with your actual domain.
3. Select "shared" and enter godaddy.com as the provider when prompted. GoDaddy is Media Temple's parent company. This will not effect anything regarding your account.
4. Click next. You may receive a warning stating that the zend extension is not available. This is normal and will not impact setup.
5. The wizard should have created a php.ini file and placed it in the root of your account. Connect to your server using SSH and edit this file using vim or a similar utility. Help with BASH text editors may be found here. Replace X.X with your PHP version and add this line to the top of the php.ini file:
[ZEND]"zend_extension = /usr/local/ioncube/ioncube_loader_lin_X.X.so"
6. If you refresh the wizard, it is likely that you will see a message stating that your server is not reading the configuration file. You can either manually kill the php process via SSH, or simply wait up to 10 minutes.
ionCube is now enabled on your Managed WordPress account. After the php process has stopped, refreshing the wizard should return this:
Your Managed WordPress account is now able to work with ionCube encoded files. You may also test it by creating a quick php info page.