It’s mostly used with commercial PHP applications to provide another layer of security in an unpredictable world of website security. On Linux systems including Ubuntu, it’s installed on the webserver (Physical) and made available to PHP configuration. This brief tutorial shows students and new users how to download and install ionCube Loader on Ubuntu 16.04 / 17.10 and 18.04 servers with PHP 7.1 / 7.2 installed. To install this PHP tool, follow the steps below:
Download ionCube Loader
There are other ways to install ionCube Loader, however, downloading it and installing it manually is the safest way to go. On 64-bit systems, use the link below: On 32-bit systems can use this link. After downloading the version for your platform, run the commands below to extract the loader. After extracting the list of all ionCube versions. ls ioncube
Validate PHP Version Installed
Before you begin using a particular version of the ionCube loader, you must validate the PHP version installed on the system. then use that particular loader for the specific PHP version. To see which version of PHP is installed, run the commands below. You should see the PHP version installed on your system. php -v Output: Next, find the PHP extensions directory on the system by running the commands below Output: You should see the directory PHP uses for its extensions. Next, copy the ionCube loader into the PHP directory above, by running the commands below. do this for each loader for the particular PHP version. When you’re done. open the default PHP config file and include the loader.
Use ionCube Loader with PHP
Now that you’ve downloaded, extracted, and copied the ionCube loader to the PHP directory, open the PHP configuration file and include the loader. PHP with Nginx PHP with Apache2 PHP with CLI PHP with CGI Then add a line in the file to include the ionCube loader. it can be anywhere in the file below the [PHP] line. however, you’ll need to specify the exact location of the loader you copied above. Save the file and restart PHP and/or the web server. Now check PHP to see all modules installed. If you added it to the CLI config, you should see the output below when you run the PHP CLI command. Output: Enjoy!