Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: djprmf on April 25, 2020, 12:03:58 PM

Title: CWP New backup (beta) - ionCube only for PHP 5
Post by: djprmf on April 25, 2020, 12:03:58 PM
Hi,

I have notice that the New backup (beta) script is encoded with ionCube, but is only for the PHP 5.x version.
If the PHP of CWP is changed to a more recent version, the backup script will not work.

I think is safe to say that this script should be updated to a more recent version of PHP, since PHP 5.x are in EOL.
Also this have impact in the security of CWP from itself, since if we need to use this Backup Script, then CWP needs to be in PHP 5.x....

Thanks
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: Sandeep on April 25, 2020, 01:12:08 PM
hi ensure you've latest version of cwp installed.
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: djprmf on April 25, 2020, 01:17:42 PM
Hi,

Yes, it is in the last version
CWPpro version: 0.9.8.962

Thanks
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: prakash7610 on April 25, 2020, 05:30:19 PM
Hi CWP team

The new backup beta is not working since i have updated to the latest panel still showing loading list accounts thats all no backup done
it was worked before update pls check this also restore accounts is not working atleast manual restore is posssible if we get the full account backup

Thanks in advance
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: CoriaWeb Hosting on April 25, 2020, 06:44:41 PM
Same problem here. The backups stopped working.
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: rcschaff on April 25, 2020, 07:03:37 PM
check "crontab -l" as root and make sure

15 23 * * * /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php

is there

(NOTE: Times may be different)
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: CoriaWeb Hosting on April 25, 2020, 07:59:57 PM
check "crontab -l" as root and make sure

15 23 * * * /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php

is there

(NOTE: Times may be different)

Yes:

26 14 * * * /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: djprmf on April 25, 2020, 08:07:27 PM
The issue is that "cron_newbackup.php" is encoded under a old version of ionCube (before PHP 5.x).
If you check the error log, the script outputs that error.

if you select in "PHP Version Switcher" the PHP version 5.6.40, the script runs fine.
If you update to a new version - PHP 7.x - then the script doesn't work.

PHP Version Switcher changes the PHP of CWP, that is where the cron_newbackup.php is running...
Title: Re: CWP New backup (beta) - ionCube only for PHP 5
Post by: rcschaff on April 25, 2020, 08:27:27 PM
The issue is that "cron_newbackup.php" is encoded under a old version of ionCube (before PHP 5.x).
If you check the error log, the script outputs that error.

if you select in "PHP Version Switcher" the PHP version 5.6.40, the script runs fine.
If you update to a new version - PHP 7.x - then the script doesn't work.

PHP Version Switcher changes the PHP of CWP, that is where the cron_newbackup.php is running...

Then you probably have to follow the instruction on the 500 error posts.  My version of the backup script is working perfectly fine running on php72 ioncube.  Guessing that file did not get updated in your update..