Koozali.org: home of the SME Server

HOWTO Install OrangeHRM on SME 7.x

Offline thomasch

  • *
  • 232
  • +0/-0
HOWTO Install OrangeHRM on SME 7.x
« on: November 21, 2007, 05:15:11 AM »
Orange Human Resources Management (OrangeHRM) aims to be the world’s leading open source HRM solution for small and medium sized enterprises (SMEs) by providing a flexible and easy to use HRM system affordable for any company worldwide. The project was started during fall 2005 and the first beta release was made in January 2006. Today OrangeHRM has users worldwide enjoying a free, stable and highly usable HRM solution

In this Howto, we will not install OrangeHRM into ibays but into /opt/orangehrm instead.

OrangeHRM needs PHP5 … too bad smeserver 7.2 have php4 installed and you are advised not to upgrade to PHP5 because it will broke SMEServer system. But don’t worry,  based on this howto :  http://sme.firewall-services.com/spip.php?article46  you can add PHP5 as cgi .

Step 1. Install php5 as cgi
Code: [Select]
mkdir php5-cgi
cd php5-cgi

wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-imap-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-ldap-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-mysql-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-pear-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-xmlrpc-5.1.2-1.sp.i386.rpm

yum localinstall ./*.rpm

you can ignore post-upgrade and reboot process

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/80php5-cgi

then paste below into 80php5-cgi template fragment

Code: [Select]
ScriptAlias /php5-cgi /usr/bin/php5
<Directory /usr/bin/php5>
order deny,allow
deny from all
allow from all
Options ExecCGI
</Directory>

[Ctrl-X] : Y : [Enter]

Step 2. Install OrangeHRM

Code: [Select]
wget  http://optusnet.dl.sourceforge.net/sourceforge/orangehrm/orangehrm-2.2.2.tar.gz

tar xfvz  orangehrm-2.2.2.tar.gz

mv orangehrm-2.2.2 /opt/orangehrm

chown -R www:www /opt/orangehrm

pico  /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90orangehrm
paste below to the terminal

Code: [Select]
Alias /orangehrm /opt/orangehrm

<Directory /opt/orangehrm>
AddHandler php5-cgi .php
Action php5-cgi /php5-cgi/php

Options  FollowSymLinks
AllowOverride all
order deny,allow
deny from all
allow from all
php_admin_value open_basedir /opt/orangehrm
</Directory>

Ctrl-X : Y :  [Enter]

Expand the template and restart httpd

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf

svc -t /service/httpd-e-smith

create mysql user and privileges

Code: [Select]
mysql -e "grant all privileges on *.* to orangehrmuser@localhost identified by 'yourpassword' WITH GRANT OPTION"

mysql -e "flush privileges"

Enable InnoDB, smeserver disable it by default

Code: [Select]
db configuration setprop mysqld InnoDB enabled
Do post-upgrade and reboot

Code: [Select]
signal-event post-upgrade
signal-event reboot

Point your web browser to http://[smeserver IP]/orangehrm

Follow the instructions on screen..

Privileged database Username : orangehrmuser
Privileged database User password : yourpassword

You can ignore "Memory alocated for PHP Script warning"..


Actually I want to write this into Howto wiki, but until now my access to edit wiki has not granted by the developers/doc team

I think it is enough to share in this forum until I have access to edit the wiki.


« Last Edit: November 21, 2007, 05:26:23 AM by thomasch »

Offline jester

  • *
  • 496
  • +1/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #1 on: November 21, 2007, 06:31:48 PM »
Thanx for this!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #2 on: November 21, 2007, 07:58:25 PM »
Please put the OrangeHRM part in the wiki. You do not need to put the PHP5 section there as the installation procedure is already outlined in the link you supplied in you post.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline jester

  • *
  • 496
  • +1/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #3 on: November 21, 2007, 09:03:37 PM »
Cactus,
Read the last 3 lines in thomasch post  ;)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #4 on: November 22, 2007, 08:24:45 AM »
Cactus,
Read the last 3 lines in thomasch post  ;)
Oops, missed that in the amount of lines probably.

To get access to the wiki please apply for it using the bugtracker. The development team will than grant you access to the wiki using your forums account.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline thomasch

  • *
  • 232
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #5 on: November 22, 2007, 10:54:54 AM »
Oops, missed that in the amount of lines probably.

To get access to the wiki please apply for it using the bugtracker. The development team will than grant you access to the wiki using your forums account.

I did apply, its quite a long time a go... the request still there.
Dev team, can u help me grant the access? Thanks

Offline crobruncato

  • 5
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #6 on: December 31, 2007, 08:36:08 PM »
Thanks for bringing this application to my attention - this is great. I'm trying the install, but I'm unable to add employees. I go into the PIM module, and when I click add, nothing happens. Are there any log files or anything I can check?

Thanks!
Rob

Offline Bud

  • *
  • 487
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #7 on: January 29, 2008, 06:51:30 AM »
Installation went Fine.

All the OrangeHRM Modules are working except for the PIM Module. Whan I want to add an Employee all I get is a white screen. I have asked for help on the Orange HRM Forum but with no reply.

Please Help

I need to get this Module working Urgently.


Offline Bud

  • *
  • 487
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #8 on: January 29, 2008, 04:19:39 PM »
Please guys any help on the PIM Module. I cannot enter any Data as it just Displays a White Screen. Please advise what I need to do?  :(

Offline Bud

  • *
  • 487
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #9 on: February 01, 2008, 05:46:16 AM »
Ok no Problem I solved it.  :)

Working GREAT

Offline crobruncato

  • 5
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #10 on: February 05, 2008, 03:16:29 AM »
Bud
This is the same problem I'm having - How did you fix it?

Thanks
Rob

Offline shawnbishop

  • ****
  • 298
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #11 on: February 05, 2008, 10:33:16 AM »
Hi Guys

I just found out that the OrangeHRM wont display information in a default install of Mozilla Firefox, that is I cant edit the Company name etc..open it in IE and it works....


...bugger...

Offline Bud

  • *
  • 487
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #12 on: February 06, 2008, 06:36:49 PM »
crobruncato
Ok this is what I did.

Notice what thomasch said about during the Installation. He mentioned "You can ignore "Memory alocated for PHP Script warning "

According to the OrangeHRM Developers they Recommend that you allocate 16M per Module to get the Application (PIM etc.) to work Correctly. As the Application is by Default installed to use 8M per Module this is what the Problem is.

I would like to thank " thomasch " though for doing all the Leg Work in showing what needs to be done to get this Application to work on the SME Server.

Follow these Steps, As we are installing "php5" we need to edit Just ONE File.

Use PuTTY or WinSCP and EDIT the File " /etc//php5/php.ini "
On about Line 304 (The Heading will say Resource Limits) change " memory_limit = 8M " to " memory_limit = 32M "

I set mine to 32M and am having NO Problems. You can Change yours to 16M or whatever works for you.

Hope this Helps

Offline shawnbishop

  • ****
  • 298
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #13 on: February 07, 2008, 07:04:07 AM »
That confuses me...

So if we keep the MEM=8M, it works in IE, only when I raise it to 32M does it work in Firefox??

Offline crobruncato

  • 5
  • +0/-0
Re: HOWTO Install OrangeHRM on SME 7.x
« Reply #14 on: February 12, 2008, 02:17:18 AM »
crobruncato
Ok this is what I did.

Notice what thomasch said about during the Installation. He mentioned "You can ignore "Memory alocated for PHP Script warning "

According to the OrangeHRM Developers they Recommend that you allocate 16M per Module to get the Application (PIM etc.) to work Correctly. As the Application is by Default installed to use 8M per Module this is what the Problem is.

I would like to thank " thomasch " though for doing all the Leg Work in showing what needs to be done to get this Application to work on the SME Server.

Follow these Steps, As we are installing "php5" we need to edit Just ONE File.

Use PuTTY or WinSCP and EDIT the File " /etc//php5/php.ini "
On about Line 304 (The Heading will say Resource Limits) change " memory_limit = 8M " to " memory_limit = 32M "

I set mine to 32M and am having NO Problems. You can Change yours to 16M or whatever works for you.

Hope this Helps

Bud - Thanks! I'll give it a try.