Installation Steps

From PANACeA THIRRA

(Difference between revisions)
Jump to: navigation, search
(Removed config.php)
(Edit to configure mpdf)
Line 6: Line 6:
   svn co https://thirra.svn.sourceforge.net/svnroot/thirra thirra  
   svn co https://thirra.svn.sourceforge.net/svnroot/thirra thirra  
-
- Place "thirra" directory into web server document root
+
- Place "thirra" directory from thirra/trunk/ into web server document root
-
- Edit the following database config file:
+
  e.g. /var/www/thirra
 +
 
 +
- Edit the following database configuration file:
   thirra/app_thirra/config/database.php
   thirra/app_thirra/config/database.php
-
   - change $db['default']['database'] = "thirra-3625"; to the correct database.
+
   - change $db['default']['database'] = "thirra-samp"; to the correct database.
   - make sure that the database user and password is correct.
   - make sure that the database user and password is correct.
-
 
-
- Change ownership of the whole "thirra" directory to web server user
 
- Create and restore database (available separately) inside PostgreSQL, using either pgsql or PgAdmin3. Ensure that the database schema matches the correct version of THIRRA.
- Create and restore database (available separately) inside PostgreSQL, using either pgsql or PgAdmin3. Ensure that the database schema matches the correct version of THIRRA.
Line 23: Line 23:
   - /var/www/thirra-uploads/case_pics
   - /var/www/thirra-uploads/case_pics
-
- Copy the whole mpdf directory to thirra/mpdf
+
- For pdf documents output, download mpdf from http://mpdf.bpm1.com/
 +
 
 +
- Unzip and move, renaming the whole mpdf directory to /var/www/mpdf so that all THIRRA installations can use this single copy.
 +
- Make a symbolic to the directory of mpdf
 +
  ln -s /var/www/mpdf /var/www/thirra/mpdf
 +
- Copy /var/www/mpdf/mpdf.php to /var/www/thirra/codeigniter/system/libraries
 +
- Edit this file changing
 +
  if (!defined('_MPDF_PATH')) define('_MPDF_PATH', dirname(preg_replace('/\\\\/','/',__FILE__)) . '/');
 +
  if (!defined('_MPDF_PATH')) define('_MPDF_PATH', 'mpdf/'); // To adapt to CodeIgniter
 +
 
 +
- Change ownership of the whole "thirra" directory to web server user
- To launch THIRRA use the following URL in browser that supports XHTML:
- To launch THIRRA use the following URL in browser that supports XHTML:

Revision as of 04:05, 24 November 2010

INSTALLATION STEPS

- Ensure that the system has the Apache webserver is running properly with PHP activated. The postgresql extension for PHP must be installed to allow Apache to access the database server. These components must be working first, before trying to install THIRRA, so that any installation error can be identified more easily.

- Obtain tar ball or pull down via Subversion from Sourceforge

  svn co https://thirra.svn.sourceforge.net/svnroot/thirra thirra 

- Place "thirra" directory from thirra/trunk/ into web server document root

  e.g. /var/www/thirra

- Edit the following database configuration file:

 thirra/app_thirra/config/database.php
 - change $db['default']['database'] = "thirra-samp"; to the correct database.
 - make sure that the database user and password is correct.

- Create and restore database (available separately) inside PostgreSQL, using either pgsql or PgAdmin3. Ensure that the database schema matches the correct version of THIRRA.

- Create the required directories (look inside the thirra/docs/directories_required.txt for the latest info.

 - /var/www/synch-THIRRA/in
 - /var/www/synch-THIRRA/out
 - /var/www/thirra-uploads/patient_pics
 - /var/www/thirra-uploads/case_pics

- For pdf documents output, download mpdf from http://mpdf.bpm1.com/

- Unzip and move, renaming the whole mpdf directory to /var/www/mpdf so that all THIRRA installations can use this single copy. - Make a symbolic to the directory of mpdf

 ln -s /var/www/mpdf /var/www/thirra/mpdf

- Copy /var/www/mpdf/mpdf.php to /var/www/thirra/codeigniter/system/libraries - Edit this file changing

 if (!defined('_MPDF_PATH')) define('_MPDF_PATH', dirname(preg_replace('/\\\\/','/',__FILE__)) . '/');
 if (!defined('_MPDF_PATH')) define('_MPDF_PATH', 'mpdf/'); // To adapt to CodeIgniter

- Change ownership of the whole "thirra" directory to web server user

- To launch THIRRA use the following URL in browser that supports XHTML:

 http://[appropriate_domain_name]/thirra/
Personal tools