Linux (Ubuntu) Installation - 3.1: Difference between revisions

From IHRIS Wiki
No edit summary
Line 6: Line 6:
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:
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:
<pre>
<pre>
sudo apt-get install apache2-mpm-prefork apache2-prefork-dev mysql-server mysql-client php5 php5-cli php5-gd php5-mysql libapache2-mod-php5 php-pear php5-dev make
sudo apt-get install apache2-mpm-prefork mysql-server mysql-client php5 php5-cli php5-gd php5-mysql libapache2-mod-php5
</pre>
</pre>
There are some optional packages you may wish to install:
 
<pre>
sudo apt-get install php5-gd php5-tidy
</pre>
</pre>
which are used to for inserting images into PDF output of reports and for exporting XML files in a nicely formatted manner


== Installing Pear and PECL Packages ==
== Installing Pear and PECL Packages ==
Line 18: Line 15:
We need to install a few Pear and PECL packages for PHP.  For the Pear packages you can do:
We need to install a few Pear and PECL packages for PHP.  For the Pear packages you can do:
<pre>
<pre>
sudo apt-get install php-pear
sudo pear  install MDB2 MDB2#mysql text_password console_getopt
sudo pear  install MDB2 MDB2#mysql text_password console_getopt
</pre>
</pre>
Now we need to install the PECL APC Package (more [http://baheyeldin.com/technology/linux/installing-php-apc-on-ubuntu-dapper-and-debian.html info]):
Now we need to install the PECL APC Package (more [http://baheyeldin.com/technology/linux/installing-php-apc-on-ubuntu-dapper-and-debian.html info]):
<pre>
<pre>
sudo apt-get install apache2-prefork-dev php5-dev make
sudo ln -s /usr/bin/apxs2 /usr/bin/apxs
sudo ln -s /usr/bin/apxs2 /usr/bin/apxs
sudo pecl install apc
sudo pecl install apc
Line 37: Line 36:
sudo /etc/init.d/apache2 restart  
sudo /etc/init.d/apache2 restart  
</pre>
</pre>
== Optional Packages ==
There are some optional packages you may wish to install:
<pre>
sudo apt-get install php5-gd php5-tidy
</pre>
which are used to for inserting images into PDF output of reports and for exporting XML files in a nicely formatted manner


== Database Setup ==
== Database Setup ==

Revision as of 11:52, 15 August 2008

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

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

If you have never used mysql on your system, you will need to set the 'root' password for mysql:

mysqladmin -u root password XXXX

where you replace XXXX with your password.

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:

caption Create iHRIS_Manage Database and User

. For security, make sure the password

you choose is different than the root password for mysql.


Downloading the Software