Menu

Installation

Maxime P

This is an installation how-to for installing Fortic on a Linux-based server.

Prerequisites

  1. A PostgreSQL database with a user for fortic:

Bash:

USER=fortic
PASSWORD=fortic
sudo su -
su postgres -c psql <<EOF
CREATE USER $USER UNENCRYPTED PASSWORD '$PASSWORD' LOGIN;
CREATE DATABASE fortic OWNER = $USER;
EOF
  1. Dependencies:
    Bash:
sudo apt-get install apache2 libapache2-mod-php5 php5-pgsql gettext php-pear php5-gd php5-ldap

Installation (web)

ATTENTION!
The current installation procedure ignores the Filesystem Hierarchy Standard ( http://fr.wikipedia.org/wiki/Filesystem_Hierarchy_Standard )

Extract the source code to the location of your choice:

{{code language="bash"}}
TARGET_DIR=/fortic
mkdir -p $TARGET_DIR
cd $TARGET_DIR
svn checkout --username=max-csa svn+ssh://max-csa@svn.code.sf.net/p/fortic/code/trunk fortic-code
cd fortic
python etc/fortic.conf.py
sudo ln -s $TARGET_DIR/fortic/etc/fortic.conf /etc/apache2/conf.d/fortic
sudo sed -i -e "/^register_argc_argv/s/Off/On/" \
-e "/^allow_call_time_pass_reference/s/Off/On/" \
-e "/^short_open_tag/s/Off/On/" \
-e "/^magic_quotes_gpc/s/On/Off/" \
/etc/php5/apache2/php.ini
sudo /etc/init.d/apache2 restart
{{/code}}

For the web installation, open a browser on http://your.server.qc.ca/fortic/installateur/ and follow the steps.

For a manual or automated installation, edit config/config.php and then initialize the database.
Bash:

psql -U fortic -h localhost fortic <<EOF
CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler VALIDATOR plpgsql_validator;
EOF

psql -U fortic -h localhost fortic -f fortic-php/installateur/BD/BDclean.sql

Remove the installation folder:
Bash:

rm -rf fortic-php/installateur

Fortic-Lanceur

Put fortic-lanceur directory somewhere on your server
Configure it in fortic.properties
Compile the project
Adjuste "fortic-lanceur" script
Start the daemon with script "fortic-lanceur"
If possible, set it to start automatically as a service

Initial procedure from Vincent Vinet
Updated by Maxime Pelletier


Related

Wiki: Accueil

MongoDB Logo MongoDB