Author Topic: bug in backup scripts for upgraded CWP 6 users  (Read 66 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
bug in backup scripts for upgraded CWP 6 users
« on: December 07, 2017, 03:13:30 AM »
Soon, I just found out from restoring a daily backup that my backups had not been running since March 15th 2017. I went to the cron.daily/cwp script:

/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

This throw the error:

PHP Fatal error: 
The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php was encoded
with the PHP 5.6 ionCube Encoder and requires PHP 5.6 to be installed.
 in Unknown on line 0

switching it to:
usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

fixed it. But discovering this has been most unpleasant. So if you have an older CWP system in production, check your backups.

Server:
CPU Model: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
CPU Details: 8 Core (2500 MHz)
Distro Name: CentOS release 6.9 (Final)
Kernel Version: 2.6.32-696.13.2.el6.x86_64
Platform: x86_64 [Dedicated]
CWP version: 0.9.8.273 [Get CWPpro]