This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
How to / Re: [Request] How to Setup whmcs Cronjob in CWP crontab?
« on: Today at 09:16:50 AM »
Had this same issue as well.
I manually ran the cron using SSH
So i then searched for a php version with ionCube
so I checked if it had ionCube
Which it does so i can update my cron to:
So now my Automation works in WHMCS
I manually ran the cron using SSH
Code: [Select]
/usr/local/bin/php -q /home/XXXXX/public_html/clients/crons/cron.php
Which gave the errorCode: [Select]
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.
So i then searched for a php version with ionCube
Code: [Select]
find /usr/ -type f -name "php" 2>/dev/null | grep bin
/usr/local/bin/php
/usr/local/cwp/php71/bin/php
so I checked if it had ionCube
Code: [Select]
/usr/local/cwp/php71/bin/php -v
PHP 7.2.30 (cli) (built: Apr 29 2020 02:29:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd
Which it does so i can update my cron to:
Code: [Select]
/usr/local/cwp/php71/bin/php -q /home/XXXXX/public_html/clients/crons/cron.php
So now my Automation works in WHMCS
Pages: [1]