Submitted by haaser on Wed, 04/22/2020 - 00:37
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
Hi,
Thanks for contacting us.
We do not provide support for setting up third-party scripts. Sorry.
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.
Submitted by JamieCameron on Sat, 04/25/2020 - 17:47 Comment #2
Did you install ionCube using Virtualmin? If so, the setup process should configure PHP such that all scripts run use ionCube.
Submitted by haaser on Mon, 04/27/2020 - 23:26 Comment #3
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.
It would be very helpful to see logs info or error messages?
Submitted by haaser on Fri, 05/01/2020 - 08:52 Comment #5
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.
Submitted by JamieCameron on Sat, 05/02/2020 - 14:15 Comment #6
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.Submitted by haaser on Sun, 05/03/2020 - 00:42 Comment #7
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
Submitted by JamieCameron on Sun, 05/03/2020 - 13:59 Comment #8
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.
Submitted by haaser on Sun, 05/03/2020 - 16:31 Comment #9
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.
Submitted by haaser on Sun, 05/03/2020 - 20:54 Comment #10
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.
Submitted by haaser on Thu, 05/07/2020 - 00:14 Comment #11
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.
.. 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.
Submitted by haaser on Thu, 05/07/2020 - 14:01 Comment #13
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.
Submitted by haaser on Sat, 05/09/2020 - 14:22 Comment #14
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.
Submitted by JamieCameron on Sat, 05/09/2020 - 15:35 Comment #15
Try first running :
export PHPRC=/home/yourdomain/etc
Submitted by haaser on Sat, 05/09/2020 - 18:57 Comment #16
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.
Submitted by JamieCameron on Sun, 05/10/2020 - 13:45 Comment #17
So coming back to that original issue, how was PHP 7.3 installed on this system?
Submitted by haaser on Sun, 05/10/2020 - 14:01 Comment #18
I believe this is the command that I ran yum install rh-php73-build.x86_64
Submitted by JamieCameron on Sun, 05/10/2020 - 15:44 Comment #19
Do you also have PHP 5.x or other versions installed?
Submitted by haaser on Sun, 05/10/2020 - 20:49 Comment #20
Yes the default version 5.4 is installed. Version 7.0, 7.2 and 7.3 is installed.
Submitted by JamieCameron on Mon, 05/11/2020 - 00:23 Comment #21
Ok - I found the bug, and it will be fixed in the next release of the IONcube script installer.
Submitted by haaser on Thu, 05/14/2020 - 11:54 Comment #22