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.

Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser e:\domains\f\fobgfc.org\user\private\Gallery2\g2data\/ OR run chmod -R 777 e:\domains\f\fobgfc.org\user\private\Gallery2\g2data\/.

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
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17376
Posted: Thu, 2009-08-27 05:38

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Thu, 2009-08-27 08:20

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Thu, 2009-08-27 20:23

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?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Thu, 2009-08-27 21:14

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Thu, 2009-08-27 21:48

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

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17376
Posted: Thu, 2009-08-27 22:19
Quote:
I am moving the site from Windows to Linux.

Now the details come out. :-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Thu, 2009-08-27 22:20

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Thu, 2009-08-27 23:18
floridave wrote:
Now the details come out. :-)

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

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Thu, 2009-08-27 23:24

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Fri, 2009-08-28 09:14

I do not have a backup of the G2 folder - is that a showstopper?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Fri, 2009-08-28 15:30

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Fri, 2009-08-28 19:13

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?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Fri, 2009-08-28 19:20

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Fri, 2009-08-28 21:40

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?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11026
Posted: Fri, 2009-08-28 21:48

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

Login or register to post comments
colinspurs

Joined: 2008-05-07
Posts: 10
Posted: Fri, 2009-08-28 22:08

ok so it looks like the clean install is my best option then. oh well.

Login or register to post comments