Gallery 3.0 multisite embedded in Drupal multisite - My experiences

hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 08:46

I have decided to start up a new website. Gallery 3.0 Alpha 2 is going to be my Image engine. Gallery will be integrated in Drupal latest version. I have decided to share my experiences in this thread....

Status:
Website www.tineoghenrik.dk
Has been running as gallery 2.1.2 for a couple of years in PHP Safe Mode (Patched version)
This has been a dead-end since safe mode is not supported and I have not been able to upgrade...
I registered with gigahost.dk yesterday. The url is currently beeing transferred and should take effect within a couple of hours from now

Gallery:
As mentioned I know the platform from a user perspective - not a developer perspective. In other words this is integration for dummies... Anyone joining this discussion - please keep that in mind and post constructive and useful replies!

For now I downloaded the Gallery 3.0 Alpha 2. And uploaded to my website (FTP) as a zip file (I am aware of the non official release situation, however I prefer going straight for G3 rather than having to upgrade from G2 to G3 later). I have asked my host how I can unzip, if not I have asked them to do it for me. Currently waiting for a reply.

To newbies: Prior experience tells me that a local unzip and then FTP upload is no go. You will have errors that WILL mess up your installation. Do local unzip no matter what!

The host is www.gigahost.dk running on platforms that comply with Gallery 3.0 Alpha to my knowledge. My brother is running a Drupal site with the same host with success so far. Not integrated with Gallery though.

I came across this info on Gallery and Drupal integration:
http://codex.gallery2.org/Integration:Drupal

And as it seems discussions are ongoing at Drupal:
http://groups.drupal.org/gallery2-integration

and at gallery:
http://gallery.menalto.com/forum/78

The Drupal perspective of Gallery 3.0:
http://groups.drupal.org/node/17454

Ill get back soon

all the best
Henrik

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 10:41

I will go with Drupal 6.10 for my site

Install guide:
http://drupal.org/getting-started/install

The reason for installing Drupal first is that gallery is to be installed inside Drupal as described unless you want to code (I don't!):
http://codex.gallery2.org/Integration:Drupal:Quick_Start

Note, Gallery needs another name than "Gallery", in order to avoid conflicts with Drupal.

In general please note, I do an installation from scratch, both concerning Drupal and Gallery. This experiment will give no input on going from one Drupal/Gallery branch to another.

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 11:31

Domainname is succesfully moved from one.com to gigahost.com

I ran the installation of Drupal 6.10 as mentioned above. Installation was succesful for now..... :-/ nothing is changed in Drupal yet. Default settings....

all the best
HB

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-02-27 14:50
Quote:
To newbies: Prior experience tells me that a local unzip and then FTP upload is no go. You will have errors that WILL mess up your installation. Do local unzip no matter what!

That might have been the case with G2 and the thousands of files and directories, not to mention the size of all them together. However with G3 size and quantity for ease of upload are a major factor in its design. But in the end it is best to unzip/untar the files on the server saving bandwidth and possible errors.

Looking forward to seeing more of your experiences.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 17:55

I have been playing with Drupal for a while now and everything works fine... First time experience! tried PHPNuke before.

Anyways - on to installing Gallery 3.0 alpha 2
and then embedding in Drupal 6.10

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 18:32

I guess your right Dave. So far I have no help from my host, so I have to unzip locally and the FTP upload. I did that for Drupal and worked fine.

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 19:35

Gallery 3.0 alpha 2 is running as standalone (installed inside Drupal). Configuration worked out well...

Can't seem to access via. Gallery Remote for picture upload. Is 3.0 not ready for G Remote or do I have a bad installation?

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 20:02

Downloaded the 6.0 - 1.0 Drupal integration module for gallery integration

Not expected to work, but will look into it tomorrow. For now evrything is good.

all the best
HB

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-02-27 21:02
Quote:
Is 3.0 not ready for G Remote

nope. Other upload methods will be developed over time.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-02-27 21:30

Thanks Dave

As mentioned G3 alpha 2 ia installed and looking fine. However, I can not see uploaded jpegs. New album is ok, the flash uploader works fine, statusbar updates etc. I click finish when files are completed, but no thumbs show up.

I have tried both ImageMagick and GD as the graphics tool...?

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2009-02-28 11:20

Found an interesting thread for my own convenience:
http://gallery.menalto.com/node/75482

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2009-02-28 12:48

Link for my convenience:
http://groups.drupal.org/node/17454

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2009-02-28 14:08

In the G3 FAQ:
http://codex.gallery2.org/Gallery3:FAQ

it says: "edit your php.ini file and set "short_open_tag" to 1 "

I can enable or disable. I assume 1 = enable?

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2009-03-01 11:53
hebhansen wrote:
To newbies: Prior experience tells me that a local unzip and then FTP upload is no go. You will have errors that WILL mess up your installation. Do local unzip no matter what!

PHP script for unzipping on remote server. Save time and avoid missing files. To use the script, simply follow this procedure:

1) Upload this script via FTP (or paste the script into a new file) in the directory that contains the .zip file to unzip.
2) Run your web browser, and point it at the script
3) Select the file to unzip, and hit the “Unzip” button.

That’s it!

The script (Note 2 alternatives)
1) system('unzip -o ' . $file);
2) shell_exec('unzip -o ' . $file);

No 2 works for me and is active in the script

Note: chmod 755 should work. I have only testet chmod 777

<?php   
    // The unzip script   
    // Created by Alex at http://www.learncpp.com   
    //   
    // This script lists all of the .zip files in a directory   
    // and allows you to select one to unzip.  Unlike CPanel's file   
    // manager, it _will_ overwrite existing files.   
    //   
    // To use this script, FTP or paste this script into a file in the directory   
    // with the .zip you want to unzip.  Then point your web browser at this   
    // script and choose which file to unzip.   
  
    // See if there's a file parameter in the URL string   
    $file = $_GET['file'];   
  
    if (isset($file))   
    {   
       echo "Unzipping " . $file . "<br>";   
			//       system('unzip -o ' . $file);   
       shell_exec('unzip -o ' . $file);
       exit;   
    }   
  
    // create a handler to read the directory contents   
    $handler = opendir(".");   
  
    echo "Please choose a file to unzip: " . "<br>";   
  
    // A blank action field posts the form to itself   
    echo '<FORM action="" method="get">';   
  
    $found = FALSE; // Used to see if there were any valid files   
  
    // keep going until all files in directory have been read   
    while ($file = readdir($handler))   
    {   
        if (preg_match ("/.zip$/i", $file))   
        {   
            echo '<input type="radio" name="file" value=' . $file . '> ' . $file . '<br>';   
            $found = true;   
        }   
    }   
  
    closedir($handler);   
  
    if ($found == FALSE)   
        echo "No files ending in .zip found<br>";   
    else  
        echo '<br>Warning: Existing files will be overwritten.<br><br><INPUT type="submit" value="Unzip!">';   
  
    echo "</FORM>";   
?>

all the best
HB

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-03-01 18:35

Thanks for that. Step 4 should be to delete this file as it is a security risk.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2009-03-01 19:21

Exactly - I agree

all the best
HB

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-03-02 03:53

This looks like a nice work in progress. We have not spent much time yet workng on embedding with Drupal. It's a priority on our schedule, but we're trying to get a solid working product first. I'll keep watching this thread to see how it's going for you.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2009-03-02 09:55

Thanks Bharat

Status is Drupal 6.10 is running as a single site and G3 alpha 2 ia running standalone.

I am in contact with the integration people from Drupal and waiting to see their move.

The way forward:
1) G3 a problem for me. I can not see pics I upload. I am kind of waiting for next alpha or beta from you. A timeframe could be interesting.
2) Get G3 working "flawless" concidering it's current state
3) Get the embedding going together with Drupal
4) Using other modules, such as Drupal ICME (adding pics "from gallery I hope") into text areas.
5) Setting up the multisite configuration for Drupal
6) Setting up multisite G3 standalone

Ofcourse I rely heavily on ressources all around so prepare for a "slow" progress.

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Fri, 2009-03-06 20:17

Update:

Drupal 6.10 is doing good. Still adding modules and configuring views and fields to get it right. Seems to be the concept as G3 hopefully will turn out to be...

A very well designed core with features that pleases everyone and with well functioning API's. Niche modules are left out but thanks to a well functioning and smooth API, modules are added with very little effort, and Drupal slowly becomes what everyone could possibly wish for.

I have encountered a huge number of Gallery-like modules for Drupal. Most are heavily integrated in the Drupal- platform´, but in general none of them will do what Gallery as stand-alone does. They work more or less flawless, but they do not provide a fullfeatured gallery with as smooth management as Gallery.

However, I am expecting a weak integration with D6.10 from G3 for the time beeing. Again I am waiting around for something that makes the breakthrough.

I have installed G3 alpha 2 within Drupal and I have during the day, tried to get embedding going. The Drupal-Gallery Module requests an embed.php file. I located the file within the G3. Drupal is not able to locate the file, for whatever reason??? Bad path??? or missing code??? .htaccess??? I have no clue for now.

Anyways plenty to do on the Drupal install, while looking out for updates for G3alpha2 and for the Drupal-Gallery Module.

all the best
HB

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-03-08 00:15

FYI, the Drupal-Gallery module is entirely designed to work with Gallery 2 and will require a major overhaul to work with Gallery 3. You can try contacting the owner of that module to see if he has got anything in the works for Gallery 3...

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2009-03-08 08:15

I am aware and I didn't expect anything to work, which it didn't.

I have contacted the Drupal Module guy and will wait to see what he comes up with.

In the mean time I will be designing the Drupal and keep updating G3 as new releases show up. I guess the Beta is on it's way?

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Mon, 2009-03-23 09:02

No news really

Drupal is running by it self, and so is Gallery3. Gallery is not yet the weapon of choice. I expect a number of upgrades and it does not yet embed into Drupal.

I do work arounds in Drupal to get what seems to be galleries. In other words Gallery is desperately needed before images appear in large numbers.

Why gallery? I want my site to be more image driven as opposed to discussion and text info. The logic in Gallery filehandling is very smooth etc.

Concerns: integration level, one search field, short URLs, user permissions, ability to use Gallery images in Drupal Content and linking for large viewing and much more...

Right now major focus is Drupal maintenance and to some extend adding content.
www.tineoghenrik.dk

all the best
HB

 
t-ma

Joined: 2009-05-31
Posts: 1
Posted: Sun, 2009-05-31 00:26

Hi
Was was wondering if you've had any more progress/success with Drupal/Gallery3 intergration?
I've been very interested in your thread.
Thanks
Tan

 
CyberT

Joined: 2004-05-19
Posts: 22
Posted: Sat, 2009-06-20 00:57

Hello,

I'm also extremely interested in a Gallery 3 integration in Drupal 6!

Are there any progressed steps?

Little reminder: Welcome to the new Gallery website!

TIA.
Till

--
"Can we fix it? - Yes, we can." (Bob the Builder)

 
nattastic101

Joined: 2009-06-27
Posts: 2
Posted: Sat, 2009-06-27 12:16

i'm also interested to hear of further progress with this...

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2009-11-04 00:39

Hey Guys

Have tpo admit I have been off of this...

I am setting up a stand alone G3 beta 3 for now. I may get back to integration in due time. In that case I will continue here

all the best
HB

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Tue, 2010-01-05 14:03

Not sure what the above links are for? I guess that's spam - please remove someone!

Status is that my initial Gallery and Drupal are both gone. Long story short I run a new D and G site

The Drupal 6.15 site will go multisite within soon. Just setting up the basics first.
Gallery is running a G3 latest git at this point of time.

The integration module is either not beeing developed or is awaitng Drupal 7 that currently is in dev. state. In other words I don't expect much embedding for the next 6 months or so.

all the best
HB - http://www.image.agentura.dk