G2 install via ftp ... SUCCESS!

Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Fri, 2004-12-17 19:53

READ MY Dec 18, 2004 - 01:07 PM POST. I WILL BLAME MY MEMORY LAPSE ON THE PRESSURES OF CHRISTMAS, PLEASE GO ALONG WITH ME ON THIS... :lol:

This is what I originally said/thought:

I managed to successfully get G2-Alpha 4 uploaded via ftp when it was announced, despite a lot of "550 can't create directory: file exists" messages popping up in the ftp log. I created a couple of albums but couldn't get some features to work. I didn't worry about it since I just wanted to try out the basics and see how smoothly the install went.

Today I thought I try the newest version from Jesse Mullan's download page, but after about 30 minutes of files loading (via ftp - I've switched to a personal account and so that's my only option), WS_FTP crashes and closes. G2 is the only program causing me this problem. The first time I installed G2 it took almost an hour (and I'm on cable). This time around I can't get past the 30 minute mark (twice now).

Ideas anyone?

I know there will be a lot of users with only ftp access to their accounts, especially once G2 is more mainstream. Having to spend an hour uploading files is painful! Users on dialup will probably have a heck of time with this.

Will that change at any point? Is there a way on MY end for me to make it go any smoother (changes to ftp settings, etc)?

Thanks for any insight...

Gaile

 
CSpotkill

Joined: 2004-12-11
Posts: 113
Posted: Fri, 2004-12-17 20:19

Have you tried using another FTP client? I personally prefer SmartFTP at www.smartFTP.com myself.

Are you using the latest version of WS_FTP ? http://www.ipswitch.com/Support/WS_FTP/patch-upgrades.html

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2004-12-17 20:30

what i do to install big applications on a hosted webserver:
- use the webhosts control panel or php system calls to upload the application in a tar.gz
- use the control panel or php system calls to decompress/unarchive the application
- voila

uploading 5-10k files by FTP one by one is insane, tried it a couple of times, almost always had errors. the probability for errors must be quite high for 5-10k files.

 
CSpotkill

Joined: 2004-12-11
Posts: 113
Posted: Fri, 2004-12-17 20:36

Ah-ha! Yet another reason for a pre-install script that can unpack the g2 archive ;)

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Fri, 2004-12-17 21:14
CSpotkill wrote:
Have you tried using another FTP client? I personally prefer SmartFTP at www.smartFTP.com myself.

Are you using the latest version of WS_FTP ? http://www.ipswitch.com/Support/WS_FTP/patch-upgrades.html

I'm a long time user of WS_FTP (and old habits die hard), but I may give SmartFTP a go, since Valiant's thoughts:

valiant wrote:
what i do to install big applications on a hosted webserver:
- use the webhosts control panel or php system calls to upload the application in a tar.gz
- use the control panel or php system calls to decompress/unarchive the application
- voila

are WAY over my head. :o I don't see any option in the cpanel for uploading a tar.gz file, and know pretty much nothing (I think?) about php system calls for uploading and decompressing/unarchiving... :-?

But my thanks to you both, I'm sure I'll find a way.

Gaile

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2004-12-17 21:15

I've uploaded G2 to my site using ftp about 4 or 5 times. It does take a while (not 30 minutes though more like 5-10). It runs just fine as long as you create a blank writeable config.php file. I'm using FileZilla as my FTP client.

 
CSpotkill

Joined: 2004-12-11
Posts: 113
Posted: Fri, 2004-12-17 21:50
PixelPoet wrote:
are WAY over my head. :o I don't see any option in the cpanel for uploading a tar.gz file, and know pretty much nothing (I think?) about php system calls for uploading and decompressing/unarchiving... :-?

You don't have to. Upload a .zip or .tar.gz to your site with the cPanel File Manager and then use the File Manager to extract it on the server itself.

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Sat, 2004-12-18 14:10

You can also try Filezilla, http://filezilla.sourceforge.net/.

This is the way i do:
1. Upload file with FTP or cPanel Filemanager
2. Click on the file in cPanel File Manager
3. Uncompress/extract the file by choosing such a option on the right
4. And there it is.

 
loyukfai

Joined: 2004-11-29
Posts: 58
Posted: Sat, 2004-12-18 14:17

I did upload all the files via FTP (With SmartFTP), and it worked, there were a few interruptions and I had to manually re-start the upload at the last failed points through.

It took quite some time too, but the server is oversea to me.

A self-unpacking installer accessible via the web interface would be nice.

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Sat, 2004-12-18 14:25
valiant wrote:
what i do to install big applications on a hosted webserver:
- use the webhosts control panel or php system calls to upload the application in a tar.gz

Could such a php file be made with the correct php system calls? Some type of autoinstaller that first extract the file, remove the file and runs the install process. It would be make life much easier for such users that doesn't have a control panel that is able to extract files.

I know it's a hell to try to upload files one-by-one through FTP.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2004-12-18 17:15

Sorry, obviously you don't need php to upload the .tar.gz.
But for extracting you need either a tool by your webhoster or php system calls. I tried it and it works. It's a 1 liner. But adding some UI and reliability takes more time.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2004-12-18 18:46

we could have a file called "get_gallery2.php" with instructions to upload the file to where you want the G2 dir created and name the file get_{dirname}.php, then access it via your browser. it will download the tar.gz from somewhere, extract it and rename the gallery2 dir to {dirname}, then redirect your browser to {dirname}/install/

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Sat, 2004-12-18 21:07
Einstein wrote:
This is the way i do:
1. Upload file with FTP or cPanel Filemanager
2. Click on the file in cPanel File Manager
3. Uncompress/extract the file by choosing such a option on the right
4. And there it is.

I will blame the stress of planning Christmas dinner for 13 on my inability to think straight.

I just followed Einstein's instructions (which as I realize now is the way I set up G2 the first time tried it out). Uploaded the zip file with WS_ftp, opened the file manager, clicked on the zip file, extracted files, chmod where required, created config.php and voilà! I have G2 set and ready to upload photos to.

It really IS that simple and everything works. :)

But now I need to get back to preparing for Christmas, so the Gallery must wait.

Thanks everyone, and pardon my moment of panic!

AND THANK YOU EINSTEIN!!

Gaile