How to install LAMP and run osTicket on a CentOS 6 VPS

In the following tutorial we are going to show you how you can install and configure LAMP (Linux Apache MySQL and PHP) on your CentOS 6 VPS and run your own, support ticketing system powered by osTicket.

What is osTicket?

It is an open source support ticketing system. It seamlessly routes inquiries created via email, web-forms and phone calls into a simple, easy-to-use, multi-user, web-based customer support platform.

For this tutorial we are using one of our SSD VPS Hosting Plans, installed with a minimal CentOS 6 base installation.

INITIATE A SCREEN SESSION

Before proceeding any further, SSH to your server and initiate a screen session using the following command:

## screen -U -S osticket

UPDATE THE CENTOS SYSTEM

Next thing to do, is to always make sure your CentOS VPS is fully up-to-date using:

## yum update

INSTALL AND SET-UP LAMP

Since osTicket requires a webserver, a database server and a php server, you will have to set-up these on your ssd virtual server. Let’s start with the webserver, then the php server and the extensions required by osTicket and finally the database server.

INSTALL APACHE

Install the Apache webserver, add it to your server’s start-up and start it up using the commands below:

osTicket INSTALLATION

At the time of writing this article, osTicket is at version 1.9.2. That being said, always make sure you get the latest version available and also be sure to change the relevant sections in the commands below:

ok, next create a symbolic link in /var/www/html/support to osTicket upload directory in /opt/osticket/upload using the following command:

## ln -s /opt/osticket/upload /var/www/html/support

At this point you are somewhat ready to start the installation of osTicket, but let’s configure Apache Vhost Directive and use support.mydomain.com to access the osTicket installation on your ssd virtual server.

CREATE APACHE VHOST

First, make sure name-based virtual hosting is enabled in your Apache webserver. This is usually done by uncommenting NameVirtualHost *:80 in your main Apache configuration file in /etc/httpd/conf/httpd.conf. You can use your favorite editor to edit the configuration file or use the command below to enable this option if it’s not already enabled:

after you have completed the installation, for security reasons it is best to remove the setup/install.php script using:

## rm -f /var/www/html/support/setup/install.php

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install osTicket for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Related Articles

Comments

i have tried the above steps its has worked very well and appreciate for documentation
all i have done same as per steps but when i load pages from browser they are loading in text mode
could you please help me on this . any changes req ?