FAQ
Contents
1. What are the required software to run OrangeHRM?
You will need to be running an Operationg System that supports the Apache HTTP Server and MySQL database server. In addition to that following pre-requisities must be installed.
- Apache HTTP Server 1.3 or later
- MySQL 5.1.6 or later
- PHP 5.3.0 or later
2. How to install OrangeHRM manually on Linux?
For Linux Installation these steps should be followed;
- Retrieve the PHP source of OrangeHRM onto the directory that
is configured as Apache Server htdocs directory;
ex: /var/www/html/orangehrm/
- Change the owner & group of the source directory (and all
files and sub-directories within it) to apache (on most Linux
distributions the user/user-group of apache webserver is set to
apache/apache, if your apache web server's httpd.conf has another
user/user-group please use that user instead ex: nobody). Run the
following command in bash.
ex: /var/html/orangehrm/chown -R apache.apache /var/www/html/orangehrm/
- Now you need to create the database. To do this get to the MySQL
prompt (you should be logged in as a user having rights create
databases and users). Create the database using command; (please note
down the database name), and change into the database using 'USE'.
CREATE DATABASE <orangehrm-db-name>then you need to create the tables using the script dbscript.sql residing in /orangehrm/dbscript directory. Then type in command
USE <orangehrm-db-name> - In the MySQL server create a user account with all
priviledges, please note down the username and password since it will
be required to configure the application to give it access to the
database in step (5). You will also need the database name given in
step (3). Use the commands as follows (Note: the second command is
required if your PHP distribution has a MySQL client older than 4.1);
GRANT ALL PRIVILEGES ON <orangehrm-db-name>.* TO '<username>'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
SET PASSWORD FOR '<username>'@'%' = OLD_PASSWORD('<password>'); - Then you have to configure the application to give the
authentication information it requires to access MySQL server. To do
this rename file Conf.php-distribution(in
/orangehrm/lib/Confs/Conf.php)to Conf.php and edit following settings.
Set the following parameters;
$this->dbhost = '<IP address of MySQL server>';
$this->dbport = '<port no, of MySQL server>';
$this->dbname = '<orangehrm-db-name>';
$this->dbuser = '<username>'; //the user name of the account you created
$this->dbpass = '<password>'; //the user name of the account you created
- Start or restart Apache server
3. How to install OrangeHRM manually on Windows?
For Windows Installation these steps should be followed;
- Extract the PHP source of OrangeHRM onto the directory that is
configured as Apache Server htdocs directory;
ex: C:\apache\Apache2\htdocs\orangehrm\
- Now you need to create the database. To do this get to the MySQL
prompt (you should be logged in as a user having rights create
databases and users). Create the database, and change into the database
using 'USE'; (please note down the database name)
CREATE DATABASE <orangehrm-db-name>then you need to create the tables using the script dbscript.sql residing in /orangehrm/dbscript directory. Type in command
USE <orangehrm-db-name> - In the MySQL server create a user account with all
priviledges, please note down the username and password since it will
be required to configure the application to give it access to the
database in step (5). You will also need the database name given in
step (2). Use the commands as follows (Note: the second command is
required if you your PHP distribution has a MySQL client older than 4.1);
GRANT ALL PRIVILEGES ON <orangehrm-db-name>.* TO '<username>'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
SET PASSWORD FOR '<username>'@'%' = OLD_PASSWORD('<password>'); - Then you have to configure the application to give the
authentication information it requires to access MySQL server. To do
this rename file Conf.php-distribution(in
/orangehrm/lib/Confs/Conf.php)to Conf.php and edit following settings.
Set the following parameters;
$this->dbhost = '<IP address of MySQL server>';
$this->dbport = '<port no, of MySQL server>';
$this->dbname = '<orangehrm-db-name>';
$this->dbuser = '<username>'; //the user name of the account you created
$this->dbpass = '<password>'; //the user name of the account you created
4. How to install the pre-requisities manually on Windows?
- Download Apache HTTP Server, PHP Windows package, MySQL server
Versions Requirements :- Apache HTTP Server ver 1.33 or later
- PHP Windows package ver 5.1.0 or later
- MySQL Server ver 4.1 or later
Note
Download PHP complete ZIP package from http://www.php.net/downloads.php. Usually it comes in the form of php-x.x.x-Win32.zip. (do not use the windows installer package since it only contains the CGI interpreter, and contains no extensions)
- Firstly Install Apache HTTP Server by following these steps;
- Accept the license agreement and press next
- Press next again after reading about Apache HTTP Server
- When promted for details about; Network Domain, Server Name,
etc., use the values below :
Network Domain : localhost Server Name : localhost Admin. Email : <your Email-id>
press next - If you are installing Apache HTTP server 2, then
Select Install Apache HTTP Server 2.0 as a Service. - Choose custom installation.
- change path of apache to directory
c:\apache\
- Install server
Note
In case you are using a firewall software, please make sure the you give (allow) access to Apache HTTP server.
- Secondly you have to install PHP;
- unzip the PHP package you downloaded into directory.
c:\php\
- Then open the file in the apache installation directory
C:\apache\Apache2\conf\httpd.conf"
- Then goto the area where the LoadModule tags are defined. In
the list there should be one line that reads as
# LoadModule rewrite_module modules/mod_rewrite.soRemove the leading '#' char to make the line active
- Goto the end of LoadModule section
- Then at the end of AddType section add line
AddType application/x-httpd-php .php
- Save and close httpd.conf
- Now goto directory
c:\php\and open filec:\php\php.ini
- Find these key-words in it and change them if required
error_reporting = E_ALL
display_errors = On
for PHP5, extension_dir should read as;
extension_dir = “c:\php\ext”
and in the 'Dynamic Extension' area should have;
'extension=php_mysql.dll',
'extension=php_xmlrpc.dll',
'extension=php_xsl.dll'
enabled by removing preceding ';' if any
- Save & close php.ini
Note
if you are using PHP5 the LoadModule lines should be altered as
LoadModule php5_module "c:/php/php5apache.dll"ORLoadModule php5_module "c:/php/php5apache2.dll"ORLoadModule php5_module "c:/php/php5apache2_2.dll"
for Apache 1.3 / Apache 2 / Apache 2.2 Web servers respectively. Also add line;PHPIniDir "C:/php"Note
if the php.ini file does not exist then rename exisiting file php.ini-dist as php.ini and open it
- unzip the PHP package you downloaded into directory.
- Restart Apache Server(on windows; through the Apache Server Monitor on task bar)
- Start installing MySQL server
- Double-click the setup.exe file to start the installation. The Setup Wizard panel is displayed.
- Click Next.
- Select Custom Install and click Next.
- Expand the Developer Components and select “Scripts.Examples” to run from your hard drive
- Change installation directory to
C:\MySQL
- Click next
- When promted to signup for MySql.com account select skip sign-up, press next.
- The installation setup wizard is complete, leave the
checkmark next to the field,
Configure the MySQL Server now.
Click Finish. - Click Next to begin the configuration process,
- accept the default value of Detailed Configuration for the
configuration type
click Next. - Select Sever Machine for the server type and click Next.
- Select Transactional Database Only for the database usage and click Next.
- For the InnoDB Tablespace Settings, select MySQL Datafiles
from the dropdown list
Click Next. - Select Manual Setting for the number of concurrent
connections.Set this value to 5 (depending on number clients using the
application)
Click Next. - Accept the default value of Enable TCP/IP Networking for the networking options and click Next.
- Accept the default value of Standard Character Set for the default character set and click Next.
- Accept the default value of Install as Windows Service for
the Windows. You may explicitly identify which version of MySQL is
running (you need not worry if you are having only single MySQL
server) Check the box to Include Bin Directory in Windows.
Click Next. - Always select a new root password when you install MySQL for
the first time. That is because MySQL normally has no password in
Windows which allows anyone to access the database. Make sure you
remember what the password is.
Remove the check mark next to the Anonymous Account.
Click Next. - All of the information required by the configuration wizard
is complete.
Click the Execute button to begin the actual configuration. - After all the status messages are issued, click the Finish button.