helpSavane - Support: sr #729, Post-It: How do I install Savane...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

sr #729: Post-It: How do I install Savane (INSTALL.verbose)?

Submitted by:  Mathieu Roy <yeupou>
Submitted on:  Wed 14 Sep 2005 04:28:04 PM UTC  
 
Category: Post-ItPriority: 1 - Later
Status: RemindPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: 

Tue 28 Nov 2006 07:49:36 AM UTC, comment #2:

This item is no longer accurate

Mathieu Roy <yeupou>
Project Administrator
Thu 17 Nov 2005 06:29:43 AM UTC, comment #1:

Just as a note for folks who may run into a couple of the same issues I did during install on a SUSE 9.1 i386 Server:

Symptoms - Cronjobs not working and inability to view posted tracker items

I reviewed errors in apache error_log and shell output for perl scripts that were giving me trouble and perused the internet to find solutions as follows:

Problem with viewing tracker items was related to ctype not being enabled in PHP so I rebuilt my PHP 4.4.1 distribution with the following config.nice file
----------------------------------------------------------------
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/usr' \
'--datadir=/usr/share/php' \
'--mandir=/usr/share/man' \
'--bindir=/usr/bin' \
'--libdir=/usr/share' \
'--includedir=/usr/include' \
'--sysconfdir=/etc' \
'--with-_lib=lib' \
'--with-config-file-path=/etc' \
'--with-exec-dir=/usr/lib/php/bin' \
'--disable-debug' \
'--enable-inline-optimization' \
'--enable-memory-limit' \
'--enable-magic-quotes' \
'--enable-safe-mode' \
'--enable-sigchild' \
'--enable-ctype' \
'--enable-session' \
----------------------------------------------------------------

And cron jobs were failing due to missing perl modules in my environment so I used CPAN to download and install the following modules:

File-Find-Rule-0.28.tar.gz
Number-Compare-0.01.tar.gz
Text-Glob-0.06.tar.gz
01mailrc.txt.gz

Paul <sysxperts>
Wed 14 Sep 2005 04:28:04 PM UTC, original submission:

INSTALLATION OF SAVANE:

This file might change very often. Please make sure you have the most recent
version. This installation instructions are still not complete. If you have
any questions or run into trouble,
please contact us at <https://gna.org/support/?group=savane>

$Id: INSTALL.verbose,v 1.28 2005/09/14 16:06:15 yeupou Exp $

*
* *

FRONTEND AND BACKEND?

Savane is made of a PHP Frontend and a Perl Backend.

The PHP Frontend is the web interface and the only way to interact
with the database and trigger actions executed by the backend.

The Perl Backend is a set of scripts that update a system (a set of
machines) according to the informations entered in the database by the
PHP Frontend. It is not necessary for bug tracking (for instance) because
it only relies on the database. It is necessary for mailing lists or CVS
because it needs to create directories and configure servers.

In the following guide, the tag [BACKEND ONLY] designates information
you can skip if you are only interested by the Frontend.

*
* *

GETTING THE SOURCE CODE

First, you must get a copy of Savane from the CVS tree located at
http://gna.org/projects/savane

In this guide, we will assume that your copy is in a directory called
/home/products. Go in this directory:

cd /home/products

(if you use a different directory, keep that in mind every time we refer
to /home/products below);

The configure script will ask you several things required in order to proceed.
You're not forced to choose /etc/savannah as configuration directory. If you choose something else (needed if you use concurrent Savane installation), be sure to set SAVANE_CONF enviroment variable, both in Apache and in terminals you use to call backend scripts.

Note that whenever you are asked for a domain name, you should use a fully qualified domain name (like http://thishost.thisdomain.net).

./configure
make

It will build several minor parts (translation files etc...)

*
* *

The second step is to create the database:

make database

*
* *

CONFFILES:

The Savane configuration is made of two files: savannah.conf.pl and
savannah.conf.php. savannah.conf.php is generated from
savannah.conf.pl, and must not be edited manually.

These files should be generated using the script sv_update_conf, for instance
by typing:

make conf

This process may ask for input from user, depending on the informations
provided at the configuration step.

Each time savannah.conf.pl is edited, run:

make update-conf

or run the script sv_update_conf to re-generate the savannah.conf.php
file.

*
* *

BACKEND INSTALLATION:

make install

will install backend scripts, even if you only use the frontend. Some backend
scripts like sv_update_conf of sv_skill are used for development purposes
and must be installed.

Also, the translations files will be installed at this step. Note that
translation will only work if your server is configured to accept different
locales. On Debian, run `dpkg-reconfigure locales` to add more locales.

*
* *

"SKILLS"

Savannah users can edit a resume on their profile page. In this resume
there is a "Skills" list which values can be obtained from the project
CJN (http://sf.net/projects/cjn), by running

sv_skill

(this command will only work if you accomplished the previous step)

*
* *

[BACKEND ONLY] CRONJOBS:

You should edit your /etc/cron.d/savane to fit your needs. This
single file runs all the backend jobs.

Commands with --cron option will not be effective until you set them on in
the configuration file.

Remember that backend scripts need SAVANE_CONF to be set if the configuration
directory is not /etc/savannah.

*
* *

APACHE CONFIGURATION:

First of all, note that you should be able to check your server setup at
http://127.0.0.1/pathtosavane/testconfig.php.

Warning: Make sure the env_module is being used by Apache. In the Apache
configuration add the following:

LoadModule env_module /usr/lib/apache/1.3/mod_env.so

-

Savane is in UTF-8. But Apache is frequently distributed with
AddDefaultCharset activated so it adds a default charset different from
UTF-8. You must deactivate it (or set the default charset to UTF-8) by
editing this variable to get the following:

AddDefaultCharset off

-

Warning: Make sure that php accept file upload. In the php.ini file, add
the following:

; Whether to allow HTTP file uploads.
file_uploads = on
-

Warning: Make sure that php register_globals is set to "on". It is
set by default on old PHP packages but not in newer ones. In the
php.ini file, add the following:

register_globals = on
-

Warning: Make sure php variable_order is set to "EGPCS". This is the default
and shouldn't be changed in general, but bad things will happen to Savane,
and other programs in general if it's modified.
-

You can either use a virtual domain for the Savannah package in your server,
or you can install it in a subdirectory of your home page. If for instance you
are going to install it in a virtual server "projects.my.net" in a server with
IP 192.168.62.11, and you've created the configuration file in
/etc/savannah, you should write the following in Apache's
configuration file:

NameVirtualHost 192.168.62.11
<VirtualHost 192.168.62.11>
# Basic setup
ServerName projects.my.net
DocumentRoot /home/products/savannah/frontend/php
ServerAdmin -unavailable-
SetEnv SAVANE_CONF /etc/savannah

ErrorDocument 404 /404.php
Options SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all

# Configure some specials urls:
<Files users>
ForceType application/x-httpd-php
</Files>
<Files projects>
ForceType application/x-httpd-php
</Files>

# Restrict access to testconfig
<Files testconfig.php>
Order Deny,Allow
Allow from 127.0.0.1
Deny from All
</Files>
</VirtualHost>

On the other hand if you decide to install it in a subdirectory of your home
URL, for instance http://myhome.net/projects/, and the configuration file is in
/etc/savannah, put the following lines in Apache's configuration
file:

Alias /projects /home/products/savannah/frontend/php

<Directory /home/products/savannah/frontend/php>
# Pure apache conf:
SetEnv SAVANE_CONF /etc/savannah
Options SymLinksIfOwnerMatch
AllowOverride None
#Necessary with apache2: AcceptPathInfo On
ErrorDocument 404 /savane/404.php
Order allow,deny
Allow from all

# Configure some specials urls:
<Files u>
ForceType application/x-httpd-php
</Files>
<Files us>
ForceType application/x-httpd-php
</Files>
<Files users>
ForceType application/x-httpd-php
</Files>
<Files projects>
ForceType application/x-httpd-php
</Files>
<Files pr>
ForceType application/x-httpd-php
</Files>
<Files p>
ForceType application/x-httpd-php
</Files>

# Restrict access to testconfig
<Files testconfig.php>
Order Deny,Allow
Allow from 127.0.0.1
Deny from All
</Files>
</Directory>

IMPORTANT:
Then reset the Apache server. At this point you should be able to see the
Savannah package home page in you server, at the URL where you put it.

-

To get more complete examples for both apache 1.33.x and apache 2.0.x,
check etc/apache and etc/apache2.

*
* *

CREATING A PROJECT DEDICATED TO ADMINISTRATION

Create a user with the web interface and login.
You should create a project dedicated to the server administration.

Give it the name you chose for it in the configuration.
Administrators of this project will be Savannah administrators.

Warning: the unix_group_name of the system group MUST be defined in the
configuration file before the creation of that group!

*
* *

SETTING UP EXTERNAL FEATURES: mailman, cvs

To install cvs, mailman, you should get them packaged for your distribution.
Once it's done, you should use the tool your distribution provide to configure them.
For instance, on Debian, you can do:

dpkg-reconfigure cvs
And then add 2 new directories... For Source CVS and HTML cvs

IHMO (yeupou@gnu.org), this is the hardest part of the job, dealing with the
installation of this software. If you run exim (it's probably the case if
you are running Debian GNU/Linux), you may take a look at
http://www.exim.org/howto/mailman.html

EOF.

For a more complete guide, look at http://dl.gna.org/savane-doc

Mathieu Roy <yeupou>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sysxperts (Posted a comment)
  • -unavailable- added by yeupou (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Nov 2006 07:49:36 AM UTCyeupouOpen/ClosedOpen=>Closed
    Wed 14 Sep 2005 04:29:39 PM UTCyeupouPriority5 - Normal=>1 - Later
    Wed 14 Sep 2005 04:29:20 PM UTCyeupouStatusNone=>Remind
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup