eGroupWare + G2

RalfBecker
RalfBecker's picture

Joined: 2006-07-09
Posts: 5
Posted: Sun, 2006-07-09 16:50

Hi,

I'm one of the eGroupWare administrators and core-developers.

I just started Integration G2 into eGroupWare. The Basic instegration (Accountssync and embeding into eGroupWare itself) is already working and availible via our SVN: http://svn.egroupware.org/egroupware/trunk/gallery (it fetches G2 automatic from the G2 repository trunk).

I'm working now in creating a block/module for our integrated content management SiteMgr. I might need some help, when I'm further into it. We'll see ...

Were I need help is: I want to install G2 automatic, with our own installation. All the necessary configuration is already queried by our installer. So I "only" need to script your installation. I created a config.php file, which fetches all required information from eGroupWare. That works very well, with an installed G2, even with what we call multiple eGW domains / DB instaces running from one copy of the sources (within the same path). Any ideas or sugestions ...

Ralf Becker
eGroupWare (www.egroupware.org)

AttachmentSize
eGW+G2.png241.15 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-07-10 06:43

Awesome! Can we see a demo somewhere? :)

Also please add your integration to this table:
http://codex.gallery2.org/index.php/Gallery2:Integration:Available_Integrations
I guess adding it in an alphabetical order makes sense.

There's no scripted installation of G2 yet. It has been requested before, but we didn't come to it, yet.
But I guess it has been done already, just not open source. All the 1-click installations, e.g. through cpanel's Fantastico, do that already.

If you'd like to do that yourself, I suggest you take a look at install/ . It's probably the least organized part of G2 though.
- The multisite step is required for what you call "multiple eGW domains running with one copy of the sources".
- The storage step has code to generate the g2data/ folder and necessary subfolders.
- The database step doesn't do anything but collecting the database connection information and ensuring that we can connect to the database.
- The core module installation step does the whole work of creating the tables and populating them.
- The other modules step installs and activates ... other modules.

One of your problems is that installing G2 takes some time, installing all modules even more so. That's why we use a progress bar in our installer to a) inform the user of the installation status and even more importantely b) to keep the connection between the server and the user alive. And we periodically call set_time_limit() to ensure PHP doesn't time out. If you create a web-based installation script circumventing our installer, you'll have to think about this.
Apropos requirements: G2's requirements are probably more restrictive than eG's requirements. Take a look at our system checks step of the installer.

Something that could work:
from php, use output buffering, manually manipulate the $_POST array and then call one of the G2 installation steps after the other.

 
RalfBecker
RalfBecker's picture

Joined: 2006-07-09
Posts: 5
Posted: Mon, 2006-07-10 07:06

Hi,

I do a demo soon, maybe tomorrow.

I already looked into the stuff in install/, and can surely hack that, to do the trick - thought I wanted to check if there's already an other possebility. I just wrote a commandline client for our installer.
The requirements for eGW and G2 are nearly identical, can I can specify further requirements on a per applications basis for the eGW installer. set_time_limit(0) is also done, as eGW itself installs about 200 Tables too ...

Btw. I just added WebDAV access to the eGW filemanager. That would be a nice feature for uploading images in G2 too. It was easy to do using PEAR/HTTP/WebDAV_Server. Just a thought ...

Anyway I hope we once get a equaly good documentation for eGW as you have for G2. It's realy nice, thought I mostly looked direct into the sources ...

Ralf Becker
eGroupWare (www.egroupware.org)

 
RalfBecker
RalfBecker's picture

Joined: 2006-07-09
Posts: 5
Posted: Mon, 2006-07-10 07:11

Btw. do I need a different account to add something to the wiki, as for posting to that forum?

Ralf

Ralf Becker
eGroupWare (www.egroupware.org)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-07-10 18:02

A webdav module for g2 is on the way.
You're the first to note that we have good documentation. I'd disagree with that though. :)

And yes, the wiki isn't integrated with drupal yet. We chose the best-of-breed product which is MediaWiki, but it seems there's no way to integrate it with drupal yet. We'd have to do it ourselves.

@set_time_limit:
note that g2 sets set_time_limit to 30 and dynamically calls it again during runtime to extend the timeout. we don't set it to unlimited.
also, set_time_limit(0) doesn't help extending the webserver / connection timeout.

 
Frans Lieshout
Frans Lieshout's picture

Joined: 2005-12-31
Posts: 62
Posted: Fri, 2006-09-15 15:37

Dear Ralf,

Is there any place where I can find a kind of installation guide. I am getting all kind of strange remarks when I am trying to setup this.

I have Galler2 in the same root as egroupware but not in the root of egroupware could that be a problem ?

Like to hear from you

Frans Lieshout