OrangeHRM 5

One-Click Installation

OrangeHRM Initialization:

Overview:

This guide will walk you through initializing OrangeHRM on your AWS instance in just one click. The setup process is streamlined using our custom script, designed for ease of use and efficiency. Before starting the script, ensure the minimum requirement is met.

Pro Tip: We recommend associating an AWS Elastic IP with your instance before running the setup. This prevents your IP address from changing when the instance is stopped and restarted.

Please note: there is no browser setup wizard in this build. OrangeHRM, its database and your administrator account are all created while the script runs. Guides written for earlier builds describe a browser wizard covering the licence, database details, system check and administrator form. None of those screens appear any more.

 

Step 1: Access Your AWS Instance

1. Launch Your AWS EC2 Instance:

  • Choose your desired AWS EC2 instance type. (Recommended: t3a.small / t3.small)
  • Open ports 22, 80 and 443 in the security group.
  • Once the instance is running, connect to it via SSH.

2. Connect to the Instance:

  • Open your terminal (Mac/Linux) or use an SSH client (e.g., PuTTY for Windows).
  • Run the following SSH command:
ssh ec2-user@<your-aws-public-ip>

3. Run the Initialization Script:

  • To initiate the installation, run the following command:
/usr/local/bin/egl_init.sh.x
  • Note: This script automates the entire installation process. While it runs, ensure your terminal remains active, and do not close the session. It typically takes under two minutes: the application is downloaded, then OrangeHRM creates its database, its schema and your administrator account before the site is served. The script generates new credentials for this instance. There is no need to run sudo or update the system first.

 

Step 2: Instance Set Up and Installation

1. Completion Confirmation:

  • Once the installation is finished, you will see a summary on the screen with your address and your administrator sign-in.
  • Write the password down. It is generated for this instance and is not stored anywhere you can read it back.

Your OrangeHRM is installed and ready to use.

Your OrangeHRM: http://<your-public-ip>/

++++++++++++ Administrator sign-in +++++++++++++++++
Username: admin
Password: <generated for your instance>

WRITE THIS PASSWORD DOWN. It is generated for this instance
and is not stored anywhere you can read it back.

Work email on the account: [email protected]
Change it to your own under My Info. Password resets go
to whatever address is on the account.

 

2. Sign in with the USERNAME, not an email address

Please note: OrangeHRM asks for a “Username”. The account is keyed on that name, not on an email address. The summary prints it for you. The work email shown alongside it is a separate field on the employee record, and it is not what you sign in with.

  • Open http://<your-public-ip>/ in your browser. You will be taken to the sign-in page.
  • Enter the username and password from the summary.
  • You will arrive at the dashboard, with Admin, PIM, Leave, Time, Recruitment, Performance and My Info reachable from the left.

3. Change the administrator email address

Do this before you go any further. The account is created with the placeholder address [email protected], which cannot receive mail. Password resets go to whatever address is on the account, so if you lose the password there is no way to reset it. Open My Info, then Contact Details, set your own work email address, and save.

Step 3: Before You Add Your Staff

  • Your organisation. Under Admin, then Organization, set your general information, then add your locations and your structure. Job titles and pay grades live under Admin, then Job.
  • Outgoing mail. Under Admin, then Configuration, then Email Configuration. This image does not include a mail server, so no leave notification, no password reset and no interview invitation is delivered until you set a provider. The address that password reset emails link to is already set for you.
  • Leave. Under Leave, then Configure, define your leave types and entitlements before your staff start requesting time off.
  • Then add employees under PIM. Adding people before the structure exists means going back to each record afterwards.

 

Step 4: Add Your Own Domain and SSL

  • Your system is served over plain HTTP until you associate a domain. To use your own domain name with a free SSL certificate, run:
sudo /usr/local/bin/egl-setup-domain.sh.x
  • Full instructions are in Associating Your Domain. From then on your system is served over HTTPS at your domain, and password reset emails link to it.
  • Do this before your staff start using it. They will be entering personal data, and it should not travel over plain HTTP.

 

Important Notes:

  • Mail Sending Blockage:
    AWS blocks outbound port 25 by default, so use port 587 or 465 with your mail provider. AWS may also have email-sending restrictions in place on new accounts; submit a request to AWS to lift them before relying on email.
  • The database is not reachable from the internet.
    MariaDB runs on a private network inside the instance with no published port. Port 3306 does not need to be open and must not be opened.
  • Nothing is registered with the vendor on your behalf.
    A standard OrangeHRM installation ends by sending your organisation name and administrator details upstream. This build declines that. You can register from inside the product if you want to.
  • Do not run the initialization script a second time
    on an instance where OrangeHRM is already installed. Each run generates new database passwords, and an existing database keeps the ones it was created with, so the two no longer match. If this happens, contact [email protected] rather than running it again.

 

CONTENTS