From Convention Master Documentation

Revision as of 18:32, 30 March 2020 by Alofoxx (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<< Previously: 2.3 - Configure Apache Webserver

Install the Ioncube Loader

IonCube Loader is responsible for managing the license that allows you to run Convention Master.

1. Visit the Ioncube Loader download page and select the download that matches your system architecture: You can download the file to your server by copying the location and using wget, like so:

   cd ~/
   tar -xof ioncube_loaders_lin_x86-64.tar.gz

2. You will now have an ioncube folder containing the Ioncube PHP extensions for every version of PHP currently supported. Copy the matching loader to the appropriate folder in /usr/lib/php (there is likely only one appropriate folder, and it is datestamped). If you followed the installation instructions in section 2, you will be running PHP 7.2 and your command will look like this:

   sudo cp ioncube/ /usr/lib/php/20170718/

3. Create a file called ioncube.ini in /etc/php/7.2/mods-available and put the following two lines in it (adjust the path to the Ioncube loader as appropriate):

   ; priority=00
   zend_extension = /usr/lib/php/20170718/

This is the only configuration required for the Ioncube Loader. Save the file and exit.

4. Enable the new PHP extension for both Apache and CLI.

   sudo phpenmod -v 7.2 -s ALL ioncube

5. Restart Apache to load the new PHP extension

   sudo systemctl restart apache2

6. You can now delete the Ioncube downloads

   rm ~/ioncube_loaders_lin_x86-64.tar.gz
   rm -r ioncube/