Installing the Debian Packages

From IHRIS Wiki

EXPERIMENTAL Directions for debian installation. Tested on meerkat. Does not include any translations whatsoever.

Adding sources

Before we begin we need to make sure that we have the most recent version of APC available (not the one that comes with Meerkat or Lucid). We also want to add in our iHRIS packages. This can be done by: <source lang='bash'> echo "deb http://ppa.launchpad.net/chris-lea/php-pecl-extras/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/pecl-extras.list echo "deb http://open.intrahealth.org/ihris-packages / " | sudo tee /etc/apt/sources.list.d/ihris.list sudo apt-get update </source>

Installing Sites

The are four possible sites you can install:

When you install a site, it will at first give an error about the mysql root/administative password not being set.

  • Please select to <Retry>
  • Use dbconfig-common tools to configure the debian package
  • Enter the mysql administrator password (this is probably the same password of the account you logged into the computer with)
  • For the "app" password make sure it is 'manage'


Your Done!

Cleanup

PHP

You may need to increase the memory limit for PHP. You can do this by editing the /etc/php5/apache2/php.ini. <source lang="bash"> sudo gedit /etc/php5/apache2/php.ini </source>

Change the following line: <source lang="ini"> memory_limit = 32M </source> to: <source lang="ini"> memory_limit = 128M </source>

APC

Just make sure that you have 'etc/php5/apache2/conf.d/apc.ini' looking something like this:

; configuration for php apc module
extension=apc.so
apc.shm_size=150
apc.slam_defense = Off

The important thing being that the slam_defense is off and that the shm_size is at least 100.

Details

  • The i2ce/ihris library is installed under /usr/lib/iHRIS/lib/4.0
  • All sites are installed under /var/lib/iHRIS/sites/, for example /var/lib/iRHIS/sites/ihris-manage-site-demo
  • There is no link (ln -s) under /var/www to the pages directory, instead the site is made available by /etc/apache2/conf.d/ihris-manage-site-demo.conf