Senegal Installation Instructions: Difference between revisions
(Created page with "This page contains installation instructions on installing iHRIS Manage Customizations for Senegal Ministry of Health == Getting Ready == First you should install Ubuntu and al...") |
|||
Line 44: | Line 44: | ||
<source lang="bash"> | <source lang="bash"> | ||
sudo mkdir -p /var/lib/iHRIS/sites/4.1/sn-manage/pages/local | sudo mkdir -p /var/lib/iHRIS/sites/4.1/sn-manage/pages/local | ||
cd /var/lib/iHRIS/sites/4.1/sn-manage/pages | |||
sudo cp config.values.php local/ | sudo cp config.values.php local/ | ||
sudo cp htaccess.TEMPLATE .htaccess | sudo cp htaccess.TEMPLATE .htaccess |
Revision as of 10:17, 14 February 2013
This page contains installation instructions on installing iHRIS Manage Customizations for Senegal Ministry of Health
Getting Ready
First you should install Ubuntu and all the supporting software required by iHRIS by following the Linux (Ubuntu) Installation - Supporting Software instructions.
Note: Installing on ext4 filesystem? see this
Note: Unless specifically mentioned, all the commands below are run using a terminal. You can start this in Ubuntu by going to Applications -> Accessories -> Terminal. Any time a command begins with sudo it will prompt for your password because this will be run with administrative privileges. When you run sudo multiple times, only the first time will ask for your password.
Note: Some installation commands will prompt for inputs in the terminal window, usually with a blue background. The mouse doesn't work to click on options here. You can use Tab to move between options and the space bar to check or uncheck selections.
Note: Some commands will launch the gedit file editor. Look at the documentation if you need additional help.
Install Bazaar
Enter these commands on your terminal
<source lang="bash"> sudo apt-get install bzr bzrtools </source>
Download Senegal Customizations
You just enter these commands on your terminal:
<source lang="bash"> sudo mkdir -p /var/lib/iHRIS/sites/4.1/ cd /var/lib/iHRIS/sites/4.1 bzr branch lp:~ihris-senegal-team/ihris-senegal/sn-manage </source>
Create Database
<source lang="bash"> mysql -u root -p -Be 'create database ihris_manage_senegal' </source> When prompted, you will have to type your MySQL password
Edit config.values.php
Before editing this file, you have to create a directory under pages, where your local site configuration values will be set. And then you will copy both the config.values.php and the htaccess.TEMPLATE files there.
<source lang="bash"> sudo mkdir -p /var/lib/iHRIS/sites/4.1/sn-manage/pages/local cd /var/lib/iHRIS/sites/4.1/sn-manage/pages sudo cp config.values.php local/ sudo cp htaccess.TEMPLATE .htaccess </source> Then you go edit the file in local <source lang="bash"> sudo gedit local/config.values.php </source> When editing this file, you have to make to sure you change the values as they are set on your computer. The $i2ce_site_i2ce_path is the path where we can reach the latest I2CE source codes.
Set the correct database username and password on the line $i2ce_site_dsn, if these are not well set, the site will try to update and fail on the way. Set the $i2ce_site_module_config to /var/lib/iHRIS/sites/4.1/sn-manage/iHRIS-Manage-Senegal.xml.
You save and quit.
Finally, make the Senegal site you just installed available via the webserver: <source lang="bash"> sudo ln -s /var/lib/iHRIS/sites/4.1/sn-manage/pages /var/www/sn-manage </source>
To install the system you simply browse to:
and wait for the site to initialize itself. Congratulations! You may log in as the i2ce_admin with the password you used to connect to the database.