file permmissions problem
|
colinspurs
Joined: 2008-05-07
Posts: 10 |
Posted: Wed, 2009-08-26 12:38
|
|
I keep tripping over the file permissions in installing Gallery2. Now I have installed puTTY and changed the file permissions using chmod -R 777 but it doesn't seem to make any difference. Can anyone explain what I have done wrong please? Thanks, Colin |
|
| Login or register to post comments |

Posts: 17376
Perhaps the uer you run as via putty is not the same as gallery/webserver runs as. Ask your host to run the command.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 10
Hi Dave,
Thanks for your response. I did ask my host but they just point me at shell tutorials...not a very helpful mob!
I went into each directory/subdirectory in the chain and ran chmod -R 777 and verified it had worked by ls -l, but still no joy with gallery.
I'll do a bit more digging.
Cheers,
Col
Posts: 10
I obtained some expert help and now the permissions are as per below:
[domain2321715@ssh-gw-5 ~]$ ls -lah /home/fhlinux131/f/fobgfc.org/user/htdocs/user/private/Gallery2/g2data/
total 12K
drwxrwxrwx 3 domain2321715 vweb 4.0K Aug 26 13:21 .
drwxrwxrwx 3 domain2321715 vweb 4.0K Aug 26 13:00 ..
drwxrwxrwx 2 domain2321715 vweb 4.0K Aug 26 13:21 test123
I still get the same error when upgrading, so is it time to report a bug?
Posts: 11026
I'm having a hard time understanding what's happening here. In your first post it's indicating that you're running Windows e:\domains... but now you're showing that you're running Linux.
Please post a link to phpinfo, this link explains how:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Thanks again for your fast response.
The background to this is that I am moving the site from Windows to Linux. I have backed up all the G2 database files. I gathered I had to reinstall Gallery2 onto the Linux version. I cannot remember how I got to the G2 upgrade screen I am using, perhaps it is still trying to install onto Windows.
Meanwhile, here's the phpinfo link.
http://www.fobgfc.org/phpinfo.php
Posts: 17376
Now the details come out.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 11026
make sure you've followed this:
FAQ: How can I move my gallery installation from one server to another?
Be sure to read step 6
Another issue I see is you have a 20M memory limit and you don't have exec enabled. Which means you can only use GD and that's just not going to cut it for using GD.
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Yes sorry about that - typical user! and I'm in IT myself! In my defence I'm stressed out about this server move and not least because I was/am worried I might lose all my Gallery stuff.
Thanks for the links, will investigate in the morning.
Col
Posts: 11026
As long as you have backups there shouldn't be much to worry about.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
I do not have a backup of the G2 folder - is that a showstopper?
Posts: 11026
Show stopper, I don't think so, but if something goes south, you'll either not be able to recover or will have tons of work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Sorry, I'm not sure I made myself clear (again). Before I load my site into Linux, I don't have my old Windows G2 folder. So can I get away with an empty one?
Posts: 11026
Sure, you can get away with an empty one, but you'll be starting all over
. Without both g2data and your database you cannot migrate or recover a gallery install.
g2data contains all your photos, the database contains tons of data that gallery requires to run.
EDIT: this is a step-by-step on how to move servers. There are not many other ways to do this and it boils down to requiring g2data and the database:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Okay then, I'm left with a ton of work, but what is the advantage of recovering the server over a simple new clean install? Does the database hold all my style changes etc?
Posts: 11026
The database holds stuff like permission settings, user data, titles, descriptions, comments, etc.
g2data holds the pictures, resizes, thumbs, cache, etc
your theme under gallery/themes/YourTheme/ would be where your style changes are (most likely)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
ok so it looks like the clean install is my best option then. oh well.