Linux (Ubuntu) Installation - 3.1
Here are instructions for installing the iHRIS Suite on an Linux (Ubuntu) system. If you need help installing Ubuntu you may want to take a look at these directions for installing a Server or a Desktop system.
Getting Ready
Here are a list of packages you need installed on your system before you install the iHRIS Suite. First we make sure the appropriate Ubuntu packages are installed:
sudo apt-get install apache2-mpm-prefork mysql-server mysql-client php5 php5-cli php5-gd php5-mysql libapache2-mod-php5
During installation, it should prompt you to choose a password for the user 'root' for MySQL Server. Let us call this passsword XXXXX. If you did not get prompted to setup the 'root' password for MySQL Server above, and you have never used mysql on your system, you will need to set the 'root' password for mysql:
mysqladmin -u root password XXXXX
where you replace XXXXX with your password.
Installing Pear and PECL Packages
We need to install a few Pear and PECL packages for PHP. For the Pear packages you can do:
sudo apt-get install php-pear sudo pear install MDB2 MDB2#mysql text_password console_getopt
Now we need to install the PECL APC Package (more info):
sudo apt-get install apache2-prefork-dev php5-dev make sudo ln -s /usr/bin/apxs2 /usr/bin/apxs sudo pecl install apc
Now:
sudo gedit /etc/php5/apache2/php.ini
and add the following line to the end:
extension=apc.so
Finally we restart the Apache webserver using:
sudo /etc/init.d/apache2 restart
Optional Packages
There are some optional packages you may wish to install:
sudo apt-get install php5-gd php5-tidy
which are used to for inserting images into PDF output of reports and for exporting XML files in a nicely formatted manner
Database Setup
Next, you will need to create a user and a database for each component you wish to install of the iHRIS Suite. You should now create a user and a database for each component of the iHRIS Suite. We will do it below for iHRIS-Manage. If you want to install iHRIS Qualify (or iHRIS Plan) just replace everywhere you see manage with qualify (or plan). You can do this by hand, or you can do it using phpmyadmin as follows:
sudo apt-get install phpmyadmin
Open up your favorite browser and go to:
http://localhost/phpmyadmin
login with the user 'root' and password XXXX that you set above. Once logged in you will create a database and user called ihris_manage. To do this, click on the 'Privileges' link and select 'Add a new User'. Then fill out the form as follows:
. For security, make sure the password
you choose is different than the root password for mysql. Let us refer to this password as YYYYY.
Downloading the Software
To download the software you enter these commands:
cd /var/lib sudo mkdir iHRIS cd iHRIS sudo mkdir 3.1 sudo ln -s 3.1 current cd 3.1 sudo wget http://launchpad.net/i2ce/3.1/3.1.0/+download/ihris-suite-3_1_0.tar.bz2 sudo tar -xjf *
Creating a Site Configuration File
We are going to start by modifying the BLANK site for iHRIS Manage. If you wish to install iHRIS Qualify or iHRIS Plan, you can follow the same instructions below but change manage to qualify or plan. To copy the BLANK site:
cd /var/lib/iHRIS/ sudo mkdir sites sudo cp -R /var/lib/iHRIS/current/manage/sites/blank /var/lib/iHRIS/sites/manage sudo mv /var/lib/iHRIS/sites/manage/iHRIS-Manage-BLANK.xml /var/lib/iHRIS/sites/manage/iHRIS-Manage-BLANK.xml
We now need to edit the site configuration file:
sudo gedit /var/lib/iHRIS/sites/manage/iHRIS-Manage-BLANK.xml
by changing:
<path name='modules'> <value>./modules</value> <!-- If this site module is not installed under the iHRIS Manage file structure, then remember to include a path to the rest of the modules here. e.g. <value>..</value> --> </path>
to:
<path name='modules'> <value>./modules</value> <value>/var/lib/iHRIS/current</value> </path>
You may choose to change the email address feedback is sent to by changing:
<configuration name='email' path='to' values='single'> <displayName>Email Address</displayName> <value>BLANK</value> </configuration>
to:
<configuration name='email' path='to' values='single'> <displayName>Email Address</displayName> <value>my_email@somewhere.com</value> </configuration>
You may also choose to change BLANK everywhere with your organization's name. For best results, please choose one word, possilby with a dash, such as Sample, MOH, or MOH-Taifeki. To make this change, hit the replace icon, fill in blank under Search for and MOH-Taifeki under Replace With, then hit replace all.
Making the Site Available
We will now edit the configuration to let the site know about the database user and options:
sudo gedit /var/lib/iHRIS/sites/manage/pages/config.inc.php
We now need to change the value of a few variables. They are:
Variable Name | Value |
---|---|
$i2ce_site_i2ce_path | /var/lib/iHRIS/current |
$i2ce_site_database | ihris_manage |
$i2ce_site_database_user | ihris_manage |
$i2ce_site_database_password | YYYYY (the password you set above) |
$i2ce_site_module_config | /var/lib/iHRIS/sites/manage/iHRIS-Manage-Site.xml |
Finally, we make iHRIS Manage site we just created available via the webserver:
cd /var/www/html sudo ln -s /var/lib/iHRIS/current/sites/manage/pages manage cd /var/www/html/manage/pages sudo cp htaccess.TEMPLATE .htaccess sudo gedit .htaccess
We need to look for the line RewriteBase and change it to the web directory we want to use which in this case /manage.