ionCube installation
What is ionCube:
ionCube helps you to protect your PHP code from being viewed and modified and helps you to provide a licensed version of your script.
How to install it:
To install ionCube you need to execute the 3 lines below in your server console. The first line will download one of the two scripts presented at the end of the page.
#For 32 bits, uncomment the line below and comment the other one. #wget https://www.nicolasmeloni.com/blog/wp-content/uploads/2015/07/ioncube_32.txt wget https://www.nicolasmeloni.com/blog/wp-content/uploads/2015/07/ioncube_64.txt #Rename the file to a shell file extension #Replace 64 by 32 if you use a 32 bits OS mv ioncube_64.txt ioncube.sh #Execute the script #If you have permission problem, chmod +x ioncube.sh #Replace 5.6 with your PHP version. To know what version you are using #enter the following command in you server console: php -v bash ./ioncube.sh 5.6
The script below help you to install ioncube on a 64 bits OS.
#!/bin/bash # # Script usage: bash ./ioncube.sh 5.6 # #PHP version (5.2, 5.3, ..., 5.6) As I write this, it supports only up to PHP 5.6. PHP_VERSION=$1 #Download ioncube files wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz #Extract the archive tar zxvf ioncube_loaders_lin_x86-64.tar.gz #Move extracted files to /usr/local folder mv ioncube /usr/local/ #Add the extension to php.ini echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_${PHP_VERSION}.so">> /etc/php5/apache2/php.ini /etc/init.d/apache2 restart
The script below help you to install ioncube on a 32 bits OS.
#!/bin/bash # # Script usage: bash ./ioncube.sh 5.6 # #PHP version (5.2, 5.3, ..., 5.6) As I write this, it supports only up to PHP 5.6. PHP_VERSION=$1 #Download ioncube files wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz #Extract the archive tar zxvf ioncube_loaders_lin_x86.tar.gz #Move extracted files to /usr/local folder mv ioncube /usr/local/ #Add the extension to php.ini echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_${PHP_VERSION}.so">> /etc/php5/apache2/php.ini /etc/init.d/apache2 restart
0 Comments