Page 1 of 1

How can I backup the serendipity_config_local.inc.php

Posted: Thu Nov 23, 2006 8:13 am
by Ottokar1234
Hi,
I regulary backup the whole serendipity folder with all subfolders via ftp.

How can I backup the serendipity_config_local.inc.php, too?

It is always excluded from the ftp-backup and creates an critical transfer error. Do I have to change the attribs before the backup?

Same with .htaccess
It is never included. How can I included these both files in my ftp-backup?

Thanks for you help

Re: How can I backup the serendipity_config_local.inc.php

Posted: Thu Nov 23, 2006 12:12 pm
by clander
Hi Ottakar!
Ottokar1234 wrote:Hi,
I regulary backup the whole serendipity folder with all subfolders via ftp.

How can I backup the serendipity_config_local.inc.php, too?

It is always excluded from the ftp-backup and creates an critical transfer error. Do I have to change the attribs before the backup?

Same with .htaccess
It is never included. How can I included these both files in my ftp-backup?
The file serendipity_config_local.inc.php normally ends being owned by the webserver user/group with permissions rwx --- --- ( or 0700), which means ONLY the webserver can read/write it, it is also possible that that the .htaccess may have similar restrictions.

I believe your critical transfer error may be tied to this.

You may be able change ownership/permissions on these file so it ends up being something like:

owner: you
group: webserver's group
permissions: rwx rwx --- (or 0770)

This may be easier said than done when they are not under your ownership!

:idea: You may be able to ftp the directory down to your local machine, if possible change permissions on the local copy or create the files if they are missing, delete the existing remote directory, then ftp your local copy back into place. You may still have to change ownership/permissions afterwards on the remote machine, so that both files are readable/writable by you and the webserver, either through your FTP client or via an ssh session using the commands chown and chmod

e.g.

Code: Select all

#: chown you:webservergroup serendipity_local_config.inc.php
#: chmod 0770 serendipity_local_config.inc.php
Once the files are readable by you then you should be able to get them from the server via FTP without a transfer error, but for S9Y to be able to do it's work too then the webserver must also be able to read/write them...

Does that make any sense to you?

Best regards

Re: How can I backup the serendipity_config_local.inc.php

Posted: Thu Nov 23, 2006 12:29 pm
by garvinhicking
Hi!

Have a look at the FAQ on s9y.org and look for the 'Fixperm.php' script. With that you can make the config_local redaable for you. By default it is only readable for the webserver for some extra security.

Best regards,
Garvin