Show Posts

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.


Messages - ontarget

Pages: [1]
1
CentOS-WebPanel Bugs / Re: cwp_stats is taking too much space
« on: June 04, 2025, 02:24:47 PM »
Code: [Select]
find /home/*/cwp_stats/goaccess/{daily,weekly,monthly} -type f -name "*.html" -delete
Then Cron
Code: [Select]
0 0 * * * find /home/*/cwp_stats/goaccess/{daily,weekly,monthly} -type f -name "*.html" -delete
This removed 6.32GB of stats - nice!

2
How to / Re: [Request] How to Setup whmcs Cronjob in CWP crontab?
« on: May 14, 2025, 09:16:50 AM »
Had this same issue as well.
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 error
Code: [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]