2
The most up to date information can be found on our wiki:
3
http://open.intrahealth.org/mediawiki/Linux_(Ubuntu)_Installation
7
This documentation covers setting up iHRIS Manage for the first time
10
Before getting started, you'll need to have the following installed:
12
* Webserver (we'll use Apache)
14
* PHP 5 version at least 5.2
16
* MySQL driver from PEAR
18
* Mod_rewrite for Apache
21
* I2CE https://launchpad.net/ihris-common
22
* iHRIS Common https://launchpad.net/ihris-common
23
* iHRIS Manager https://launchpad.net/ihris-manage
24
* TextLayout Tools https://launchpad.net/textlayout if you want to print PDF reports
26
These instructions will cover the installation of I2CE, iHRIS Common,
29
*** TODO These instructions cover development versions. They'll be
30
updated to cover the released software when that is available.
31
As a result, an additional requirement at this point is the bzr
32
version control command. This can be had from
33
http://bazaar-vcs.org/
35
0. Decide where you're going to install the application. For purposes
36
of these instructions we'll use “/var/www/ihris” as the
37
installation location. Also decide the URL that your users will
38
use. We'll use “http://ihris.example.com/Manage” in these
39
instructions. It is best to have only I2CE and related modules
40
underneath the directory. For example, don't put anything else
41
under /var/www/ihris except the directories we give. Otherwise,
42
I2CE will search those directories for configuration files and slow
45
1. Fetch the three modules from Lauchpad. In the /var/www/ihris
48
$ bzr branch lp:i2ce/3.0 I2CE
49
$ bzr branch lp:ihris-common/3.0 iHRIS-common
50
$ bzr branch lp:ihris-common/3.0 iHRIS-Manage
52
2. Configure Apache so that the URL you've selected points to the
53
sites/Demo/pages subdirectory of the iHRIS-Manage check out. For
54
this example, we want http://ihris.example.com/Manage to point to
55
/var/www/ihris/iHRIS-Manage/sites/Demo/pages/, so we add the
56
following line to the end of our Apache configuration:
58
Alias /Manage/ /var/www/ihris/iHRIS-Manage/sites/Demo/pages/
60
3. Create a Database and Database user. Load the Database schema from
61
the I2CE checkout using the file I2CE_structure.sql.
63
$ mysqladmin -u root -p create ihris-manage
64
$ *** FIXME *** Create user
65
$ mysql -u ihris-user -p ihris-manage < I2CE_structure.sql
67
4. Configure the application. Copy the
68
sites/Demo/pages/config.values.php to
69
sites/Demo/pages/local/config.values.php and edit it with the
70
values of your system.
72
5. Move the sites/Demo/pages/htaccess.TEMPLATE file to
73
sites/Demo/pages/.htaccess and make sure the RewriteBase line is
74
set to the correct URL.
76
For this example, we want RewriteBase to be changed so that it
81
6. *** FIXME *** Navigate your browser to the url and tail your apache
82
error log. You should see set up messages as it goes along.
83
(FIXME: This should really log to the web interface.)
85
7. Log in with the username "admin" and password "admin".
87
To run the Demo of iHRIS Manage (which can easily be customized to
88
your particular installation) point your webserver to the
89
sites/Demo/pages sub-directory
96
install the MDB2 MySQL module
98
“Fatal error: Call to a member function search() on a non-object in
101
Clear APC cache (restart Apache)? Make sure the MySQL schema is
104
"The requested URL /ihris/login was not found on this server."
106
Make sure mod_rewrite is enabled ("sudo a2enmod rewrite" on
107
Debian/Ubuntu). Make sure the .htaccess file can add rewrite
108
rules ("AllowOverride All" under a <Directory> directive in your
111
First navigation to the URL takes forever to load
113
Make sure that only I2CE, ihris-common, and ihris-manage exist
114
underneath the ihris directory.
116
Try clearing the config table:
118
mysql> delete from config;