Sahana Unix/Linux Installation


  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



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

 $ tar xzvf sahana-

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

 ln -s /path/of/sahana/extract /path/of/web/root
 (most linux distributions)
 ln -s /home/foo/sahana/www /var/www/sahana
 ln -s /home/foo/sahana/www /var/www/html/sahana
 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.:


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 file

Once the setup writes the 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

QR Code
QR Code doc:installunix:english (generated for current page)