ftp and settings

theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-01-07 15:45

Can anyone summarise or point me to a document describing two important factors with G2:

1) ascii/binary mode file transer and how you need to use it on your server for your G2 files

2) CHMOD settings on the files and directoreis and how you need to set them up

thanks!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2005-01-08 01:33

Very similar to G1. You should be safe transfering in "auto" mode, and failing that I would say use "binary" mode. The /g2data directory needs web server write access, so it can either be owned by the web server processes's user OR be chmod 777 (rwx). You might also have to make the config.php file inside the /gallery2/ directory is writable by the web server.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-01-08 01:40

OK
What does it mean, "writable by the web server"?
All I understand is the CHMOD settings.

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sat, 2005-01-08 08:16

If you are using linux and apache "write access" means the apache user has write access to that file. The best bet is while installing, just chmod 777 to config.php, and just like the install says, then when you are finished it asks you to chmod 644 config.php. It should be fairly simple.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-01-08 10:59

ok thanks

I'm getting errors with step 2 though its saying:

checkmanifest(/home/sites/jameslomax.com/public_html/gallery/setup/modules/core/classes/GalleryUtilities.class): failed to open stream: No such file or directory in /home/sites/jameslomax.com/public_html/gallery/setup/install/steps/SystemChecksStep.class on line 237

Fatal error: checkmanifest(): Failed opening required '/home/sites/jameslomax.com/public_html/gallery/setup/modules/core/classes/GalleryUtilities.class' (include_path='.:/usr/share/pear') in /home/sites/jameslomax.com/public_html/gallery/setup/install/steps/SystemChecksStep.class on line 237

.........I dont understand this because those files are there.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-08 19:32

If PHP can't open these files, then either they're not where you think they are, or they have file permissions such that the webserver can't read them. Usually "chmod 755" on these files should fix this. Try this from a shell (or from ftp, though your cd line may vary):

$ cd /home/sites/jameslomax.com/public_html/gallery/setup/modules/core/classes/
$ ls -al GalleryUtilities.class

What do you get?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-01-08 20:46

bharat: we've got 2 or 3 communication streams here and i think right now you're looking at the install with ftp access, AND this problem has since moved on (though I don't understand why - but refer to PM) - so i won't attempt this.

Also: I'm not familiar with command line editing.

But basically, when I loaded the files I didn't move any around so if a script can't find them something strange is happening. And with CHMOD, i changed a few files to 777 but nothing more than that.