(gs):Install ionCube loader libraries
- This page was last modified on February 1, 2012, at 09:46.
From (mt) Community Wiki
Contents |
This article will assist you with installing the ionCube libraries on a particular domain on your (gs) Grid-Service 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 or x86-64 depending on your cluster) libraries from http://www.ioncube.com/loaders.php.
- 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.
Via SSH
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):
cd /home/00000/domains/example.com/Download the files:
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Extract the files:
tar zxvf ioncube_loaders_lin_x86.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:
php.ini
zend_extension = /home/00000/domains/example.com/ioncube/ioncube_loader_lin_4.4.so zend_extension = /home/00000/domains/example.com/ioncube/ioncube_loader_lin_5.2.so zend_extension = /home/00000/domains/example.com/ioncube/ioncube_loader_lin_5.3.soBe 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.
Via SSH
Alternatively, you can run the following command in SSH to modify your php.ini file (replace 00000 with your site number):
vim /home/00000/etc/php.iniAdd 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 on the link next to PHP 4 or PHP 5. Or, you can visit these URLs directly (replace 00000 with your site number):
http://s00000.gridserver.com/gs-bin/phpinfo.php4
http://s00000.gridserver.com/gs-bin/phpinfo.php5
You will see the ionCube Loader mentioned in the Zend Engine section near the top, and also listed in the Additional Modules section.
If you are on Cluster 08 through 10, please make sure that you use the x64 version of the loaders:
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Extract the x64 ionCube files:
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
To find which cluster your service resides on, please see: How to find your Cluster and Storage Segment.
Notes
IonCube does not have to go into a domains folder. It can load from /home/00000/data/ioncube.