[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Why when i do tar -zxvf filename and try to access the files from the web...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> When I try to access files that I have restored from a backup,
> gives me this error:
>
> Warning: main(language/lang-spanish.php) [function.main]: failed to
> create stream: Permission denied in
> /home/sites/site8/web/mainfile.php on line 7
>
> Or depends on who made the tar file? I mean the account?
>
> Maybe is about the cobalt user ownership issue?

You should restore the backup while logged in as a user belonging to 
the particular site (you can make the .tar.gz file readable to all 
users by doing "chmod 644 file.tar.gz")  Look at that mainfile.php 
file, line 7, and see what file it's trying to open.  Then go to 
/home/sites/site8/web and do

ls -lF filename

to see who owns it and what the permissions are.  If it's not readable 
by all (for example, -rw-r--r--), the web server can't get access to 
it.  Do

chmod 644 filename

to set it to read/write by owner, read by group, and read by all.

- -- 
Bruce Timberlake

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QKDYvLA2hUZ9kgwRAjw8AJ4gvLPZ2QT3jzk086ayCLhw2pdOwQCghSCI
xF/lvnwa38PDkODc57r3iu8=
=Jz+P
-----END PGP SIGNATURE-----