How To Install Ioncube On Debian 8

How to Install PHP IonCube Loader in CentOS and Ubuntu. IonCube loader is used for decoding encrypted PHP files. It is freely available and very easy to install. It handles both reading and execution of encoded files at run time. It also helps to speed up the websites. Steps to install IonCube loader. This document contains installation instructions for the Debian GNU/Linux 10 system (codename buster), for the 64-bit PC (amd64) architecture. It also contains pointers to more information and information on how to make the most of your new Debian system.
Related
Introduction
ionCube is a PHP module extension that loads encrypted PHP files and speeds up webpages. It is often required for PHP-based applications. In this tutorial, we will install ionCube on a Ubuntu 16.04 server.
Prerequisites
To follow this tutorial, you will need:
- One Ubuntu 16.04 server with a sudo non-root user and firewall, which you can set up by following this initial server setup tutorial.
- A web server with PHP installed, like Apache or Nginx. Follow the steps for installing the web server itself, updating the firewall, and installing PHP.
Step 1 — Choosing the Right ionCube Version
It is important that the version of ionCube you choose matches your PHP version, so first, you need to know:
- The version of PHP our web server is running, and
- If it is 32-bit or 64-bit.
If you have a 64-bit Ubuntu server, you are probably running 64-bit PHP, but let’s make sure. To do so, we’ll use a small PHP script to retrieve information about our server’s current PHP configuration.
Create a file called info.php
file in the root directory of your web server (likely /var/www/html
, unless you’ve changed it) using nano
or your favorite text editor.
Paste the following inside the file, then save and close it.
After saving the changes to the file, visit http://your_server_ip/info.php
in your favorite browser. The web page you’ve opened should look something like this:
From that page, look at the header at the top where it says PHP Version. In this case, we’re running 7.0.8. Then, look at the System line. If it ends with x86_64, you’re running 64-bit PHP; if it ends with i686, it’s 32-bit.
With this information, you can proceed with the download and installation.
Step 2 — Setting Up ionCube
Visit the ionCube download page and find the appropriate download link based on your OS. In our example, we need the this 64-bit Linux version. Copy the tar.gz link on the site and download the file.
Next, extract the archive.
This creates a directory named ioncube
which contains various files for various PHP versions. Choose the right folder for your PHP version. In our example, we need the file PHP version 7.0
, which is ioncube_loader_lin_7.0.so
. We will copy this file to the PHP extensions folder.
To find out the path of the extensions folder, check the http://your_server_ip/info.php
page again and search for extension_dir.
In this example, it’s /usr/lib/php/20151012
, so copy the file there:
For PHP to load the extension, we need to add it to the PHP configuration. We can do it in the main php.ini
PHP configuration file, but it’s cleaner to create a separate file. We can set this separate file to load before other extensions to avoid possible conflicts.
To find out where we should create the custom configuration file, look at http://your_server_ip/info.php
again and search for Scan this dir for additional .ini files.
So, we’ll create a file named 00-ioncube.ini
inside the /etc/php/7.0/apache2/conf.d
directory. The 00
at the beginning of the filename ensures this file will be loaded before other PHP configuration files.
Paste the following loading directive, then save and close the file.
For the above change to take effect, we will need to restart the web server.
If you are using Apache, run:
If you are using Nginx, run:
You may also need to restart php-fpm
, if you’re using it.
Netsuzou trap bd episode 1. Finally, let’s make sure that the PHP extension is installed and enabled.
Step 3 — Verifying the ionCube Installation
Back on the http://your_server_ip/info.php
page, refresh the page and search for the “ionCube” keyword. You should now see with the ionCube PHP Loader (enabled):
That confirms that the PHP ionCube extension is loaded on your server.
It can be a bit of a security risk to keep the info.php
script, as it allows potential attackers to see information about your server, so remove it now.
You can also safely remove the extra downloaded ionCube files which are no longer necessary.
ionCube is now fully set up and functional.
Conclusion
Now that the ionCube PHP extension has been installed, you can proceed with any PHP application which requires it.
This tutorial exists for these OS versions. Debian 9 (Stretch).On this page.IonCube is a PHP extension that can be used for decoding secured encrypted PHP files at runtime. The IonCube encoder is used by commercial PHP program vendors to protect applications and the loader, which we install in this tutorial, is required to run IonCube encoded files on your server. The IoncubeLoader is available free of charge. Ioncube loader increases your website loading speed and preventing others from stealing the source code by converting your PHP into byte-code.
In this tutorial, we will explain the installation of IonCube Loader on Debian 9 server. Requirements. A server running Debian 9 with LAMP installed. A non-root user with sudo privileges.Getting StartedBefore starting, update all packages that are installed on your server using the following command: sudo apt-get update -ysudo apt-get upgrade -yOnce all the packages are updated, restart the system to apply all the changes: sudo reboot Installing IonCube LoaderFirst, you will need to download the latest version of the IonCube Loader from their official website.
Otherwise, you can download it using the following command: wget the download is completed, extract the downloaded file using the following command. Same for me:( ISPconfig tells 'Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance.' I noticed in phpinfo that 'Loaded Configuration File' points to /etc/php5/cgi/ and I changed this php5-misslinking to /etc/php/7.3/cgi/ in the file: /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter and restart apache2The Site error disappeared but the Interface in Web, Mail, System,.
Didn't come back to life.Any Tipps or Ideas? Trying next night a reboot.Thx. ISPConfig is not ioncube encoded and the file /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter is not used for any websites hosted on your server, it is used exclusively for the non-ioncube encoded software that runs on port 8080, so adding ioncube there makes no sense and changing the config include path to a wrong PHP version must crash your system. To fix your problem, undo the changes that you made in /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starterBack to your original problem, to enable ioncube in the website which runs ioncube encoded files, check out which php.ini is used on that site by using phpinfo function and then add ioncube in that php.ini file, that's all.The tutorial above adds ioncube loader for the PHP that ships with Debian, when you claim that you have php 7.3 installed, then that is definitely not the PHP from Debian as Debian 9 does not ship with PHP 7.3, it ships witrh PHP 7.0. So if you use a third party PHP 7.3 version and installed it in a different path, then you must edit the php.ini file of that third party PHP version and enable ioncube there and not in the default PHP from Debian.