unable to create backup

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
rmfred

unable to create backup

Post by rmfred »

I just finished an install using version 1.0.4 for a friends website... everything went smooth... no errors or anything. Able to access the default installation and the admin area.

Just installed backup module version 0.5. When attempting to create a backup I get the following:

Warning: mkdir() [function.mkdir]: Permission denied in /home/websitename/public_html/cms/modules/Backup/Backup.module.php on line 237

Warning: fopen(backups/backup-2007-02-28_19-45-23.txt) [function.fopen]: failed to open stream: No such file or directory in /home/websitename/public_html/cms/modules/Backup/Backup.module.php on line 248
backing up database ...

this is followed by a gazillion lines of errors that look like this
# cms_additional_htmlblob_users

Warning: fwrite(): supplied argument is not a valid stream resource in /home/websitename/public_html/cms/modules/Backup/Backup.module.php on line 258

The Modules folder has permissions 777
The Backup folder has permissions 775

Any idea what I need to do to fix this?
Thanks
rmfred

Re: unable to create backup

Post by rmfred »

OK... I changed permissions on the admin folder to 777 and was able to create a backup.

If I view the site folders via FTP it shows a backup folder under the admin folder and the backup folder has the backup.txt file.

But, if  I view via his cpanel and file manager... admin does not show as a folder and there is obviously not a backup folder beneath it.

If I try to upload a backup created from my development PC to his admin/backup folder via FTP the upload fails.

Any ideas?
cyberman

Re: unable to create backup

Post by cyberman »

rmfred wrote: But, if  I view via his cpanel and file manager... admin does not show as a folder and there is obviously not a backup folder beneath it.
I'm sure backup is there  :). But backup is created by server so server is the owner of this backup. So you can't see someone cause you are not "user" server ...

There's another module named mysqldump - have you tried it?
rmfred

Re: unable to create backup

Post by rmfred »

cyberman wrote:
rmfred wrote: But, if  I view via his cpanel and file manager... admin does not show as a folder and there is obviously not a backup folder beneath it.
I'm sure backup is there  :). But backup is created by server so server is the owner of this backup. So you can't see someone cause you are not "user" server ...

There's another module named mysqldump - have you tried it?
Thanks for the reply...
I thought I would automagically be the owner of the backup since I created it logged in as admin in CMSMS...

Yes, backup is there since I can see it via FTP but I can't ftp files to that folder... they always fail. I even tried to "fake" it out by ftping the backup file to another folder and then tried to move it to the backup folder but it wouldn't allow that either.

Then, via cpanel I created a new folder called admin_test.  It didn't appear as a folder in file manager either and wouldn't allow ftping any files to it either. This leads me to believe there must be some sort of "global" restrictions on any folder named admin?

The OS of his hosting service is Linux and running Apache 1.3.36 (Unix) if this is of any help.

No... I have not looked at or tried mysqldump
Locked

Return to “CMSMS Core”