OsTicket

One-Click Installation

osTicket Initialization:

Overview:

This guide will walk you through initializing osTicket 1.18 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.

 

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 a minute: the application is downloaded and started, and the database is created for you. 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 the database details the setup wizard asks for.
  • Keep this terminal open until the setup wizard is finished. The database password is generated for this instance and is not stored anywhere you can read it back.

osTicket is installed and running. One step is left, and you
do it in your browser.

1. Open http://<your-public-ip>/setup/
2. Follow the wizard and choose your own administrator login
3. When it asks for the database, enter the details below

++++++++ Database details for the setup wizard ++++++++
MySQL Hostname: db
MySQL Database: osticketdb
MySQL Username: osticket
MySQL Password: <generated for your instance>

2. Open the Setup Wizard:

  • Open your web browser and navigate to http://<your-public-ip>/setup/ (port 80):
http://<your-public-ip>/setup/
  • You will be greeted by the osTicket Installer. On the prerequisites page, click Continue once every check is ticked. If one is not, email [email protected].
(Click to enlarge)

3. System Settings, Admin User and Database Settings:

  • Under System Settings, enter your Helpdesk Name and the Default Email your customers will write to.
  • Under Admin User, choose your own administrator name, email, username and password.
  • Under Database Settings, enter the details from the installer summary exactly:

MySQL Table Prefix: ost_ (the default)

MySQL Hostname: db

MySQL Database: osticketdb

MySQL Username: osticket

MySQL Password: (the password printed by the installer)

Please note: the hostname is db, not localhost. The database runs in its own container on a private network inside the instance, and db is its name on that network. localhost will not connect.

  • Press Install Now.

4. Installation Complete:

  • Once the setup is complete, you will see the final “Congratulations” screen.

5. Login:

  • Navigate to the staff panel and log in with the administrator username and password you chose in Admin User:
http://<your-public-ip>/scp/

Please note: the setup folder is removed for you. osTicket asks for its setup directory to be deleted, and this image does it automatically about a minute after the wizard finishes, together with locking the configuration file. If the notice “Please take a minute to delete setup directory” still shows straight after the wizard, sign out and sign in again. There is nothing to delete over SSH.

Step 3: Add Your Own Domain and SSL

  • Your osTicket 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

 

Important Notes:

  • Outgoing Email:
    osTicket sends no email until you set up outgoing mail. This image does not include a local mail server. In the staff panel, open Admin Panel, Emails, Emails, select your support address and fill in the Outgoing (SMTP) tab, Save, then use Emails, Diagnostic to send a test. AWS blocks outbound port 25 by default, so use port 587 or 465 with your mail provider.
  • Incoming Email into Tickets:
    On the same address, fill in the Remote Mailbox tab, then tick Enable for Email Fetching under Emails, Settings. Both are needed: osTicket does not collect email until Email Fetching is enabled.
  • Mail Sending Blockage:
    AWS may have email-sending restrictions in place by default. Before using the instance for email sending, submit a request to AWS to lift the restriction on outbound email traffic.
  • Scheduled tasks run for you.
    Collecting email into tickets, flagging overdue tickets and housekeeping run automatically every five minutes. There is no cron to set up.

 

CONTENTS