Presentation is loading. Please wait.

Presentation is loading. Please wait.

Installing iHRIS Install iHRIS Manage on an Ubuntu System

Similar presentations


Presentation on theme: "Installing iHRIS Install iHRIS Manage on an Ubuntu System"— Presentation transcript:

1 Installing iHRIS Install iHRIS Manage on an Ubuntu System
Install the LAMP Server Configuring MySQL Configuring PHP PEAR and PECL Configuring Apache Downloading iHRIS MySQL Database Creation IHRIS Site Configuration IHRIS Site Initialization

2 LAMP Server Install the LAMP (Linux Apache Mysql PHP) server:
sudo tasksel install lamp-server

3 MySQL Configuration Want to increase the cache size for the results of a mysql query to increase server speed. From a termnial: sudo gedit /etc/mysql/my.cnf and make sure you have: query_cache_limit = 4M query_cache_size = 64M

4 Configuring Apache Enable the rewrite module for nice URLs
sudo a2enmod rewrite Make sure we can use the .htaccess file sudo gedit /etc/apache2/sites-available/default Change None to All in: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Restart Apache sudo /etc/init.d/apache restart

5 PHP Configuration We need to increase the default memory limit for PHP for site inititialization and reporting. From a terminal: sudo gedit /etc/php5/apache2/php.ini and change the line memory_limit = 32M to the line memory_limit = 128M

6 Installing PEAR and PECL Packages
These add extra functionality to php sudo apt-get install php-pear php-mdb php-mdb2-driver-mysql libmagic-dev php5-dev sudo pear install text_password console_getopt sudo pecl install Fileinfo If the last command doesn't work try sudo pear install pecl/Fileinfo echo extension=fileinfo.so | sudo tee /etc/php5/apache2/conf.d/fileinfo.ini

7 Ubuntu and APC Want to install APC a module that allows caching of data between http requests sudo apt-get install php-apc sudo gedit /etc/php5/conf.d/apc.ini Add the following lines: apc.shm_size=100 apc.slam_defense = Off

8 Ubuntu Lucid and APC Work aournd APC bug in Ubuntu Lucid:
sudo apt-get install php5-dev apache2-prefork-dev sudo apt-get remove php-apc sudo pecl config-set preferred_state beta sudo pecl install APC sudo pecl config-set preferred_state stable Set the configuration options for APC: sudo gedit /etc/php5/conf.d/apc.ini Contents extension=apc.so apc.shm_size=100 apc.write_lock=1 apc.slam_defense=0

9 Configuring Memcahced
(Optional) Install memcached for speedy generation of iHRIS reports in the background sudo apt-get install memcached grep ENABLE /etc/default/memcached Ensure that it says ENABLE_MEMCACHED=yes Now enable php memcached module sudo apt-get install php5-memcached

10 Downloading the Software
Download iHRIS Release from Launchpad sudo mkdir -p /var/lib/iHRIS/lib/4.0.7 cd /var/lib/iHRIS/lib/4.0.7 sudo wget sudo tar -xjf ihris-manage-full-4_0_7.tar.bz2 For iHRIS Qualify, change manage to qualify in the above

11 iHRIS Site Configuration
Copy the sample ”blank” site to our own site sudo mkdir -p /var/lib/iHRIS/sites sudo cp -R /var/lib/iHRIS/lib/4.0.7/ihris-manage/sites/blank /var/lib/iHRIS/sites/manage If installing iHRIS Qualify change manage to qualify

12 Link iHRIS Site with iHRIS Library
We now need to edit the site configuration file sudo gedit /var/lib/iHRIS/sites/manage/iHRIS-Manage-BLANK.xml to point to the iHRIS base code. Change: <path name='modules'> <value>./modules</value> <!-- If this site module is not installed under the iHRIS Manage ...--> </path> to: <path name='modules'> <value>./modules</value> <value>/var/lib/iHRIS/lib/4.0.7</value> </path> Change manage to qualify if installing iHRIS Qualify

13 MySQL Database Creation
Create a database for iHRIS Manage to use (password is your login password) mysql -u root -p Will take to the mysql ”shell” where you enter CREATE DATABASE ihris_manage; GRANT ALL PRIVILEGES ON ihris_manage.* TO identified BY 'PASS'; SET GLOBAL log_bin_trust_function_creators = 1; exit Change PASS to a password of your choosing Change manage to qualify if installing iHRIS Qualify

14 Connecting iHRIS To Mysql
Need to set MySQL database for iHRIS site sudo cp /var/lib/iHRIS/sites/manage/pages/config.values.php /var/lib/iHRIS/sites/manage/pages/local/config.values.php sudo gedit /var/lib/iHRIS/sites/manage/pages/local/config.values.php Set the following variables $i2ce_site_i2ce_path = ”/var/lib/iHRIS/lib/4.0.7/I2CE”; $i2ce_site_dsn = $i2ce_site_module_config = ”/var/lib/iHRIS/sites/manage/iHRIS-Manage-BLANK.xml”; Change PASS to databse password you choose above Change manage to qualify if installing iHRIS Qualify

15 Make the Site Available
Need to make the site visibile to Apache sudo ln -s /var/lib/iHRIS/sites/manage/pages /var/www/manage Change mange to qualify if installing iHRIS Qualify

16 Pretty URLS Get rid of the index.php in URLs Change To
sudo cp /var/www/manage/htaccess.TEMPLATE /var/www/manage/.htaccess sudo gedit /var/www/manage/.htaccess Change RewriteBase /iHRIS/manage-Blank To RewriteBase /manage

17 Installing the site Point your web browser to http://localhost/manage
Administrative User is i2ce_admin Administrative Password is PASS, the database password you chose above


Download ppt "Installing iHRIS Install iHRIS Manage on an Ubuntu System"

Similar presentations


Ads by Google