Before you begin installing ionCube loader, double-check whether it is already installed on the server. To find out, use the command
php -m | grep ionCube |
after connecting to the VPS server. If the answer is negative, proceed to downloading.
First of all, you need to understand what operating system and what bit version is on your server:
cat /etc/issue |
– command to determine the type of operating system.
uname –m |
– to determine its bit version.
How to Install ioncube on Debian
1. You need to download the ioncube distribution for your operating system type
This is for 32-bit systems:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz |
This is for 64-bit systems:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
2. Then extract the archive –
tar xzvf ioncube* |
3. Place the information in the /usr/local folder using the command
mv ioncube /usr/local/ |
4. Determine which version of PHP is installed on your VPS server to write the path to the ioncube module. Use the command
php –v |
Example:
[root@151-248-126-120 ~]# php -v PHP 5.3.3 (cli) (built: May 10 2016 21:39:50) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies |
Here you can see that the handler version is 5.3, so you need to specify it. Execute the following command:
echo "zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so" >> /etc/php5/conf.d/ioncube.ini |
5. Restart the Apache server using the command
/etc/init.d/apache2 restart. |
How to Install ioncube on CentOS
1. You need to download the ioncube distribution for your operating system type
This is for 32-bit systems:
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86_5.1.2.tar.gz |
This is for 64-bit systems:
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64_5.1.2.tar.gz |
2. Then extract the archive –
tar xzvf ioncube* |
3. After that, the ioncube modules need to be moved to the PHP directory
This is for 32-bit systems:
mv ioncube /usr/lib/php/ioncube |
This is for 64-bit systems:
mv ioncube /usr/lib64/php/ioncube |
4. Determine which version of PHP is installed on your VPS server to write the path to the ioncube module. Use the command
php –v |
Command execution result:
[root@151-248-126-120 ~]# php -v PHP 5.3.3 (cli) (built: May 10 2016 21:39:50) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies |
From this we see that PHP version 5.3.3 is installed. Therefore, you need to specify this version.
To do this, you need to execute:
This is for 32-bit systems:
echo "zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_5.3.so" >> /etc/php.d/ioncube.ini |
This is for 64-bit systems:
echo "zend_extension=/usr/lib64/php/ioncube/ioncube_loader_lin_5.3.so" >> /etc/php.d/ioncube.ini |
5. Restart the Apache server using the command
/etc/init.d/httpd restart |
If you don’t have a certain knowledge base, it’s better to seek help from professionals. UkrHost company is one of the best hosting providers in Ukraine! We will help solve all your problems.