Sahana Unix/Linux Installation

Requirements

  o php 5.0 or later
  o MySQL 4.1 or later
  o Apache web server 1.3 or later
  o latest php5-gd libs

Debian & Ubuntu

Command to install the above dependancies in Debian and Ubuntu based systems (inc Mepis, Knoppix, etc)

apt-get install apache2 mysql-server-4.1 libapache2-mod-php5 php5-gd

CentOS & Fedora

Command to install the above dependancies in RedHat based systems (inc CentOS, Fedora, etc)

yum install httpd mysql-server php-mysql

Download

Extract

Extract the file to the location of your preference (preferably to the web root) with tar

 $ tar xzvf sahana-0.6.2.2-RC2.tar.gz

If the extracted path is not in the web root, use a symbolic link to point the path.

 i.e.
 ln -s /path/of/sahana/extract /path/of/web/root
 example
 (most linux distributions)
 ln -s /home/foo/sahana/www /var/www/sahana
 (CentOS/Fedora)
 ln -s /home/foo/sahana/www /var/www/html/sahana
 (FreeBSD)
 ln -s /home/foo/sahana/www /usr/local/www/data/sahana
 (OSX with darwinports)
 ln -s /Users/foo/Desktop/sahana/www /opt/local/apache2/htdocs

Web Setup

Try to access Sahana from the browser if it is the same machine use e.g.:

 http://localhost/sahana/index.php

Now you should be able to proceed with the web installation.

Provide the database host, name, username and password (default value should work)

Copy the config.inc file

Once the setup writes the config.inc file to the you can copy that to your sahana/conf/ directory (Paths will be mentioned in web setup)

Click Start

then click on the “Start Sahana” Button

Ensure Folders writable by webserver

These folders need to be writable by the webserver for the administration of the GIS OpenLayers plugin:

chown apache www/res/OpenLayers/defs
chown apache www/res/OpenLayers/files
chown apache www/res/img/markers

Navigation
  • Navigate