I copied the HTML directory of my ClarkConnect Linux machine before I rebuilt it. I have since been able to copy the albums back onto the machine, but I can't seem to copy the users back. I thought they would be in usersdb.dat file, but apparently not.
Does my problem make any sense? Anyone have any advice, or am I just going to have to recreate my Gallery users and reassociate them with their albums?
Posts: 7994
Did you copy and restore the albums/.users directory? That's where user records are stored.
Posts: 4
Yes, I did. I orginally just tried to copy the userdb.dat, and ignore all the dats and what appear to be temporary files. But it didn't do any good, so I copied in the entire directiory.
Still not working.
Posts: 7994
Hard to say what might be going wrong. I'd have to get onto your box and debug it to figure it out. A pure backup/restore of the entire albums directory should work as long as you don't migrate between Windows and Unix. If you really want to get this going, I can offer you our <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Donation%20Based%20Support" TARGET="_blank">Donation Based Support</A><!-- BBCode End --> service.
Posts: 4
I might get around to contributing even if this doesn't get resolved.
But I figured I would just recreate the users and assign them to the galleries. But I got an error, maybe it is related.
First, I create a user in "manage users". The user is there, even when I close that window and return to "manage users". I went into an albums "permissions" and tried to add this user to "Users who can see the album". I get this:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>Warning: fopen("/var/www/html/albums/garris/album.dat.lock","a+") - Permission denied in /var/www/html/gallery/platform/fs_unix.php on line 53
Error: Could not open lock file (/var/www/html/albums/garris/album.dat.lock)!</TD></TR></TABLE><!-- BBCode End -->
I thought I had given Apache permissions to the appropriate directories when I ran the configuration. After I copied the albums back in, I got an error in the gallery wizard, and resolved it. But apparently I didn't do it right. Just to make sure... how is the command to give the Apache user supposed to read?
I don't think my problems are problems with the Gallery software. So far it has performed admirably.
Posts: 7994
The easiest thing to do is:
chmod -R 777 albums
but, if you know the group of the webserver user you can do this:
chgrp -R 777 <webserver-user-group> albums
chmod -R 770 albums
that's slightly more secure on a shared system.