PHP back up script not working
I found this site ericzhang.me/howto-cpanel-automatic-backups/ with information on how to create a back up with a cron job and a PHP file. However I am under to get this to work. The cron E-mail I get is:
I'm using cPanel 11.46.0.14 as shown in the E-mail. It seems that there is a command that can't be used because something moved? Here is what the PHP script looks like:
Perhaps it's the fputs($socket,? I don't know PHP. Any help would be great. TIA!
HTTP/1.1 301 Moved
Server: cpsrvd/11.46.0.14
Connection: close
Content-length: 141
Location: /frontend/https:/backup/dofullbackup.html?submit=Generate
Content-type: text/html; charset="utf-8"
I'm using cPanel 11.46.0.14 as shown in the E-mail. It seems that there is a command that can't be used because something moved? Here is what the PHP script looks like:
Perhaps it's the fputs($socket,? I don't know PHP. Any help would be great. TIA!
-
Hello :) You may find the following thread helpful, as there's discussion of a similar topic with links to potential solutions: Backing Up cPanel Accounts Thank you. 0 -
I'm running into the same problem. I was using a slightly different script which failed when I migrated to PHP 5.6 - reverting back to 5.5 resolved it short term, but I would like to be on 5.6 eventually. The site for the old script appears gone, at which point I came across Eric Zhang's script - but it has the same issue. The error it generates is: HTTP/1.1 301 Moved Server: cpsrvd/11.42.1.21 Connection: close Content-length: 120 Location: https://(servername):2083/ Content-type: text/html; charset="utf-8" Any idea how to adjust the PHP script to account for this? The other thread mentioned above does not have a solution posted, only issues with PERL instead of PHP. 0 -
HTTP/1.1 301 Moved Server: cpsrvd/11.42.1.21
Hello :) cPanel version 11.42 is end-of-life. Please upgrade to a supported version of cPanel at your earliest convenience and let us know if the issue persists. Thank you.0 -
Upgraded to cPanel 11.50.3, still getting the same error. The full message contains my site's URL and my offsite FTP credentials, so I will post an abbreviated version: HTTP/1.1 301 Moved Server: cpsrvd/11.50.3.0 Connection: close Content-length: 308 Location: ((REDACTED)) Content-type: text/html; charset="utf-8" Cache-Control: no-cache, must-revalidate Pragma: no-cache 0 -
Please keep in mind the custom script you are using is not supported. The feature request to have this officially supported through a cPanel option is located at: Allow to enable/Disable Automatic schedule backup for Cpanel users so they can use it instead of use CRON Thank you. 0 -
Then why did you ask me to upgrade, if you're not going to support it? That was a waste of time and money on my part. 0 -
There's no cost when updating your version of cPanel unless you are paying a system administrator for the task of updating it for you. It's important to use a supported version, no matter what the issue is, to ensure you have access to the newest features and previous flaws in the product are addressed. It's likely a good idea to stay at PHP 5.5 if the script works at that version, or consult with a developer to update the script: cPanel App Catalog :: Development Services Thank you. 0 -
There was a cost incurred by my hosting company to perform the upgrade for me. In either case, it would have been more straightforward to say the script was unsupported, BEFORE asking me to upgrade and then state it was not supported. 0
Please sign in to leave a comment.
Comments
8 comments