How to Install OrangeHRM on Centos


How to install OrangeHRM on Centos

Step 1. Requirments: Apache, Mysql and Php

Step 2: Download the OrangeHRM Package and Create the Apache Environment to Run it:

# cd /tmp
# wget http://nchc.dl.sourceforge.net/project/orangehrm/stable/3.3.2/orangehrm-3.3.2.zip
# unzip orangehrm-3.3.2.zip
# mv orangehrm-3.3.2 orangehrm
# mv orangehrm /var/www/html
# chown -R apache:apache orangehrm
# chmod -R 755 /var/www/html/orangehrm/lib/confs/
# vi /etc/httpd/conf/httpd.conf

Line number 304 and 338

Change AllowOverride to All from None

AllowOverride All

add these lines after line number 312

<Directory /var/www/html/orangehrm>
    Options  -Indexes +Multiviews +FollowSymLinks
        DirectoryIndex index.php index.html
    AllowOverride All
    Allow from all
</Directory>

---- save and quit (:wq) ----

# service httpd restart

Step 3: Create Mysql Database and User for OrangeHRM:

Note: It can be Created by the Web Panel of OrangeHRM Installation, But Here Creating it Before and Will Give the Details to the Panel at the Installation Time

# mysql -u root -predhat -e "create database orangehrm"
# mysql -u root -predhat -e "grant all privileges on orangehrm.* to 'orangehrm'@'localhost' identified by 'redhat'"
# mysql -u root -predhat -e "grant all privileges on orangehrm.* to 'orangehrm'@'%' identified by 'redhat'"
# mysql -u root -predhat -e "flush privileges"

Step 4: Its time to install OrangeHRM

Browse on Browser: http://<Your-IP>/orangehrm/installer/installerUI.php

Press Next --> Accept The License --> At the place of Database Do the Following:

Database to Use: Existing Empty Databse
Database Host Name: localhost
Database Host Port: 3306
Database Name: orangehrm
OrangeHRM Database Username: orangehrm
OrangeHRM Database User Password: redhat

Press Next -->  Press Next --> Set admin Password and then Press Next --> Press Install --> Press Next --> Finish.

Step 5: The Installation is Complete now Open OrangeHRM and Login to the Admin Panel:

http://<Your-IP>/orangehrm

User: admin
Pass: <You_set_at_Installation_Time>

____________________ DONE ,Thanks _____________________
First