Santanu
Santanu

General

Gallery2

Some tech glitches

A description of cover image.

Well, I am having lots of trouble with a simple Gallery2 installation with 15 pictures for my wife’s hobby pictures. Meanwhile, I am running a 1600-picture gallery on the same server without any problems, touch wood. The backup on the main one is not there.

And I am having wonderful tech support from Dot5 Hosting, to say the least. The guy doesn’t even know what Unix is; he replies it is FreeBSD.

A quick and dirty way to get around this: Let’s name the site as www.mysite.com. Here, the username for your web server is not the same as your account. So when you create a file via FTP, you see the owner/group as “joe/joe”, and when the web server creates it, it is “web/web”.

Connect via FTP, create a “gallery2” directory, chmod 777 the same in the topmost document root. Put this file “gallery-2.0-full.tar.gz” in the same directory. Make sure binary mode is also FTP’d this PHP file, “foobar.php”, with these lines in it:

system("tar -zxvf gallery-2.0-full.tar.gz");

Now connect to “foobar.php” via a web browser. Follow the instructions from Gallery2 installation when you point your browser to this location:

http://www.mysite.com/gallery2/

You need to create the “g2data” directory and chmod 777 via FTP again to finish. Gallery will ask you to chmod 755 the “gallery2” directory.

Read Next

26 Sept   2005
5 Oct   2005

French class

2005-10-05-french-class