CWP New backup (beta) - ionCube only for PHP 5

Started by djprmf, April 25, 2020, 12:03:58 PM

Previous topic - Next topic

djprmf

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

Sandeep

hi ensure you've latest version of cwp installed.

djprmf

Hi,

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

Thanks

prakash7610

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

CoriaWeb Hosting

Same problem here. The backups stopped working.
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

rcschaff

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)
Google Hangouts:  rcschaff82@gmail.com

CoriaWeb Hosting

Quote from: 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)

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
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

djprmf

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...

rcschaff

Quote from: 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...

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..
Google Hangouts:  rcschaff82@gmail.com