Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Skydiver on March 08, 2005, 06:53:09 AM

Title: gforge
Post by: Skydiver on March 08, 2005, 06:53:09 AM
Has anyone used gforge on sme before..

Can anyone offer assistance in settting it up on SME

I would like to play with it.
Title: DEP's
Post by: Skydiver on March 08, 2005, 07:12:16 AM
Looks like i will need these dep's
Install of POSTGRESQL database
For 6.01

mx-2.0.3-1.i386.rpm
postgresql-docs-7.4.2-1PGDG.i386.rpm
postgresql-python-7.4.2-1PGDG.i386.rpm
postgresql-7.4.2-1PGDG.i386.rpm
postgresql-jdbc-7.4.2-1PGDG.i386.rpm
postgresql-server-7.4.2-1PGDG.i386.rpm
postgresql-contrib-7.4.2-1PGDG.i386.rpm
postgresql-libs-7.4.2-1PGDG.i386.rpm
postgresql-test-7.4.2-1PGDG.i386.rpm
postgresql-devel-7.4.2-1PGDG.i386.rpm
postgresql-pl-7.4.2-1PGDG.i386.rpm

Anyone care to work through a how to for this
Title: gforge
Post by: duncan on March 08, 2005, 10:11:31 AM
Used this  (http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=29&meid=)one for my failed sipx attempt.
Title: gforge
Post by: Skydiver on March 08, 2005, 10:18:52 AM
Quote from: "duncan"
Used this  (http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=29&meid=)one for my failed sipx attempt.


That looks like it will make things a bit easyier. I will complete this part now. Tomorrow the rest will start.. Thanks Duncan you made things easy for me again. Give this man a pay rise someone.

Cheers
Title: gforge
Post by: altamaiz on March 08, 2005, 05:22:54 PM
I'm very interested in hearing how your gforge install goes. I use it at work and think it's great. I tried installing it on SME about 18 months back but didn't get very far (I'm still pretty new to linux).
Title: Update
Post by: Skydiver on March 08, 2005, 10:43:05 PM
Ok The how to for postgresql worked a treated.. thanks duncan

I have now completed the import of the gforge database and starting the WEB setup.

Does it matter what location i enter the entries:
looks like i need to add them to the httpd.conf file. I am sure this will need to be the one under templates-custom.. hmmmm maybe i need to create the custom template first.
Title: need some help with this part httpd.conf
Post by: Skydiver on March 08, 2005, 11:29:56 PM
The following are sample Apache 2.0 httpd.conf entries:

NameVirtualHost 192.168.1.1

#
#   Primary GForge vhost
#
<VirtualHost 192.168.1.1>
ServerName gforge.company.com
ServerAdmin webmaster@gforge.company.com
DocumentRoot /var/www/gforge3/www
ErrorDocument 404 /404.php
php_value include_path ".:/var/www/gforge3/:/var/www/gforge3/www/include/"
<Files projects>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo on
</Files>
<Files users>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo on
</Files>
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    AcceptPathInfo On
    LimitRequestBody 2097152
</Files>
#
#   LOCATION may have to be used instead of FILES for some installs
#
#<Location /projects>
#  ForceType application/x-httpd-php
#</Location>
#<Location /users>
#  ForceType application/x-httpd-php
#</Location>
DirectoryIndex index.php
</VirtualHost>

#
#   Lists vhosts - where mailman lives
#
<VirtualHost 192.168.1.1>
ServerName lists.gforge.company.com
ServerAdmin mailman@lists.gforge.company.com
DocumentRoot /var/www/mailman
ScriptAlias   /mailman/ /var/mailman/cgi-bin/
Alias /pipermail/ /var/mailman/archives/public/
DirectoryIndex index.php index.cgi index.html index.htm
</VirtualHost>

#
#   CVS Vhost - allows viewing of CVSWeb for each project
#
<VirtualHost 192.168.1.1>
ServerName cvs.gforge.company.com
ServerAdmin webmaster@cvs.gforge.company.com
DocumentRoot /var/www/cvs
DirectoryIndex index.php index.cgi index.html index.htm
</VirtualHost>

#
#   *.gforge.company.com vhosts
#   Each project can have its own vhost
#
#   WARNING - security is degraded by having this
#   on the same machine as the primary GForge
#
<VirtualHost 192.168.1.1>
  ServerName projects.gforge.company.com
  ServerAlias *.gforge.company.com
  DocumentRoot /var/www/homedirs/groups
  VirtualDocumentRoot /var/www/homedirs/groups/%1
  <Directory /var/www/homedirs/groups>
    Options Indexes
#
#   WARNING - turning on php will allow any user
#   to upload a php file to your server, and include
#   the gforge local.inc file and get your password to
#   connect to the database and have total control.
#
    php_flag engine off
    AllowOverride None
    order allow,deny
    allow from all
  </Directory>
  DirectoryIndex index.html index.htm
</VirtualHost>
Title: gforge
Post by: duncan on March 08, 2005, 11:53:03 PM
http://www.tech-geeks.org/contrib/mdrone/Safely-Installing-Webapps-for-Esmith.html
Title: Web apps
Post by: Skydiver on March 09, 2005, 12:29:06 AM
ok i have all but completed the how for this part..

Now i figure i need to add the edited httpd.conf example above with correct paths to the 99gforge before i expand the template.
Title: gforge
Post by: altamaiz on March 09, 2005, 12:33:31 AM
Great, thanks for sharing that info!
Question: Does mailman install automatically with gforge now? Or did you install that separately?
Title: mailman
Post by: Skydiver on March 09, 2005, 12:44:59 AM
looks like we need to copy the cgi scripts into location and tell httpd.conf where they live with correct paths etc... it should do the rest..
Title: mailman
Post by: Skydiver on March 09, 2005, 12:49:05 AM
hmmmmm looks like i could be wrong also.. just checked and could not locate any mailman script files in the tar... maybe we have to install it.. checking now
Title: mailman
Post by: Skydiver on March 09, 2005, 12:51:20 AM
yes we need to install it but it says its optional..

optional stuff listed

PHP Accelertor
Mailman
jabber
JPGrph
Perl DBI module
Title: httpd.conf
Post by: Skydiver on March 09, 2005, 01:38:23 AM
This is what im thinking i will use for a test.. i will add mailman and a couple of extra's after this test.

Can anyone see an issue before i run this.
 ibay info
/home/e-smith/files/ibay/sme/html
in this ibay i placed the contents of the www from the tarball

Example only
___________________________________________________
 
NameVirtualHost 192.168.1.1

#
# Primary GForge vhost
#
<VirtualHost 192.168.1.2>
ServerName gforge.smeforums.com
ServerAdmin admin@smeforums.com
DocumentRoot /var/opt/gforge/www
ErrorDocument 404 /404.php
php_value include_path ".:/var/opt/gforge/:/var/opt/gforge/www/include/"
<Files projects>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo on
</Files>
<Files users>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo on
</Files>
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
AcceptPathInfo On
LimitRequestBody 2097152
</Files>
#
# LOCATION may have to be used instead of FILES for some installs
#
#<Location /projects>
# ForceType application/x-httpd-php
#</Location>
#<Location /users>
# ForceType application/x-httpd-php
#</Location>
DirectoryIndex index.php
</VirtualHost>

#
# Lists vhosts - where mailman lives
#
#<VirtualHost 192.168.1.2>
#ServerName lists.gforge.smeforums.com
#ServerAdmin mailman@lists.gforge.smeforums.com
#DocumentRoot /var/www/mailman
#ScriptAlias /mailman/ /var/mailman/cgi-bin/
#Alias /pipermail/ /var/mailman/archives/public/
#DirectoryIndex index.php index.cgi index.html index.htm
#</VirtualHost>
#
#
# CVS Vhost - allows viewing of CVSWeb for each project
#
<VirtualHost 192.168.1.2>
ServerName cvs.gforge.smeforums.com
ServerAdmin admin@cvs.gforge.smeforums.com
DocumentRoot /var/opt/gforge/cvs
DirectoryIndex index.php index.cgi index.html index.htm
</VirtualHost>

#
# *.gforge.company.com vhosts
# Each project can have its own vhost
#
# WARNING - security is degraded by having this
# on the same machine as the primary GForge
#
<VirtualHost 192.168.1.2>
ServerName projects.gforge.smeforums.com
ServerAlias *.gforge.smeforums.com
DocumentRoot /var/opt/gforge/groups
VirtualDocumentRoot /var/opt/gforge/groups/%1
<Directory /var/opt/gforge/groups>
Options Indexes
#
# WARNING - turning on php will allow any user
# to upload a php file to your server, and include
# the gforge local.inc file and get your password to
# connect to the database and have total control.
#
php_flag engine off
AllowOverride None
order allow,deny
allow from all
</Directory>
DirectoryIndex index.html index.htm
</VirtualHost>
Title: Confused
Post by: Skydiver on March 09, 2005, 08:42:53 AM
The server i wish to setup gforge on is not a blank server it has a number of virtual domains and ibays.

I really would like to set this to run for a virtual domain not the primary domain.

I see this setup making it either the primary domain or i think it might work with gforge.primarydomain.com  but not the virtual domain as required.

Am i correct in my thinking or is there something i am not seeing.
Title: gforge
Post by: Franco on January 18, 2006, 06:15:21 PM
Quote from: "duncan"
Used this  (http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=29&meid=)one for my failed sipx attempt.


Duncan,
How did it go with it, I'm planning on trying the install on a SME7.

Regards,