I tried installing ion cube for my WHMCS installation using the script that is provided from VirtualMin but it will not recognize that ioncube is installed. I know that there is a WHMCS installer but I am transfering a website from a cPanel server (Apache) to this new server with Virtualmin (Nginx) on it. Any thoughts on what I would have to do so I can get WHMCS to recognize that ioncube is installed?

Status: 
Fixed (pending)

Comments

Ilia's picture
Submitted by Ilia on Wed, 04/22/2020 - 05:21

Hi,

Thanks for contacting us.

We do not provide support for setting up third-party scripts. Sorry.

it will not recognize that ioncube is installed

The only thing I would recommend is to check that expected version of PHP is used and that ioncube is being loaded for it.

Besides, you are welcome to use our brand new Community Forums.

Did you install ionCube using Virtualmin? If so, the setup process should configure PHP such that all scripts run use ionCube.

I have been trying to figure this out and yes I purchased the virtualmin license to install ioncube with the script but I can not get it to work. I am running nginx and using the latest version offered from the installation script but still can not get it to work. I understand that they do not provide support for this but I would assume that when the script is installed I would expect it to work.

Ilia's picture
Submitted by Ilia on Wed, 04/29/2020 - 02:46

It would be very helpful to see logs info or error messages?

When I install it there is no error messages. Which log file or what log would you like to see I will gladly post whatever you want.

Check the domain's error log file logs/error_log to see if there are any error messages from PHP about loading the ioncube module.

That log file is empty. I tried installing it again and it looks like it installs fine but it does not work.

Downloading http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-6... (12.03 MiB) .. Received 1 kiB (0 %) Received 1.2 MiB (10 %) Received 2.4 MiB (20 %) Received 3.61 MiB (30 %) Received 4.81 MiB (40 %) Received 6.01 MiB (50 %) Received 7.22 MiB (60 %) Received 8.42 MiB (70 %) Received 9.62 MiB (80 %) Received 10.83 MiB (90 %) Received 12.03 MiB (100 %) .. download complete.

Configuring webserver PHP settings .. .. already done. Applying Nginx configuration .. .. done

Now installing ionCube version 10.4.0 .. ionCube installation complete. It will be used by any other PHP scripts installed into this domain. More information on using this script can be found at https://www.ioncube.com/loaders.php.

.. done Applying Nginx configuration .. .. done

How are you checking if ioncube is working on not? Usually I would create a PHP script like :

<?php
phpinfo();
?>

and access it via the web.

Yes I am using phpinfo to check. Also I installed my whmcs installation which says install ion cube even thou it is installed. Does this have something to do with the multiple php versions? I changed my php version to 7.3 and have been using that.

So i had a chance to mess around with it today and I figured it out. The install script is just installing the ioncube for the default version which in my case was ioncube_loader_lin_5.4.so. When i changed the version to 7.3 it did not install ioncube_loader_lin_7.3.so or modify the 7.3 configuration file to include zend_extension=/home/*******/etc/ioncube_loader_lin_7.3.so. So I downloaded the ioncube files copied them to the correct location and modified the php file and it works.

My new problem with ioncube is this error now. It is trying to run a cron job from command line but it is not using my selected php version for the command line.

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.

Ilia's picture
Submitted by Ilia on Thu, 05/07/2020 - 05:58

My new problem with ioncube is this error now. It is trying to run a cron job from command line but it is not using my selected php version for the command line.

.. just point your cron job to use correct PHP binary - instead of using default php, it should be something like /opt/rh/rh-php72/root/bin/php or whaterver path to your PHP binary that is loading ioncube extension.

I tried that but ioncube is still not being installed correctly via the script.

@www7 root]$ /opt/rh/rh-php70/root/bin/php -q /home/*****/public_html/clients/crons/cron.php 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.

Still not working.

I tired that but the command line is still not using the correct php version or loading ioncube either.

/opt/rh/rh-php70/root/bin/php -q /home/********/public_html/clients/crons/cron.php

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.

Try first running :

export PHPRC=/home/yourdomain/etc

I think I got this one solved for the time being. It had to be pointed to the correct php.ini file.

*/5 * * * * export PHPRC=/home/********/etc/php7.3/; /opt/rh/rh-php73/root/bin/php -q /home/********/whmcs/crons/cron.php

The ioncube installer is still not working correctly but I have it figured out for now.

So coming back to that original issue, how was PHP 7.3 installed on this system?

I believe this is the command that I ran yum install rh-php73-build.x86_64

Do you also have PHP 5.x or other versions installed?

Yes the default version 5.4 is installed. Version 7.0, 7.2 and 7.3 is installed.

Ok - I found the bug, and it will be fixed in the next release of the IONcube script installer.

Status: Active ยป Fixed (pending)