X

How To Install OsTicket (1.10.4) On Ubuntu 18.04

In this tutorial how to install OsTicket (1.10.4) On Ubuntu 18.04. The OsTicket is an open source ticketing system on the linux platform written by php and mysql. On the other hand web using apache server. So don’t delay now I start this tutorial.

How To Install Laravel On Ubuntu 16.04 With Phpmyadmin and Mysql
How To Install WordPress (CMS) on Ubuntu 16.04
How To Create First Post On Your WordPress Blog
How to fix wordpress permalinks not working 404

Step #01: Must be your server updated

root@OsTicket:~# apt-get update && apt-get upgrade -y

Step #02: Install php, mysql and nginx server this is LAMP server.

root@OsTicket:~# apt install mysql-server unzip libapache2-mod-php7.2 php7.2-mbstring php7.2-cli php7.2-mysql php7.2-cgi php7.2-fpm php7.2-gd php7.2-imap php7.2-xml php7.2-intl php-dev libmcrypt-dev php-pear -y

Now web server restart command

root@OsTicket:~# service apache2 restart

Create mysql password

root@OsTicket:~# mysql_secure_installation
Securing the MySQL server deployment.

Connecting to MySQL using a blank password.
The 'validate_password' plugin is installed on the server.
The subsequent steps will run with the existing configuration
of the plugin.
Please set the password for root here.

New password: << Type password

Re-enter new password: << Re-type password

Estimated strength of the password: 50
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y 
Success.

Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.

By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
 - Dropping test database...
Success.

 - Removing privileges on test database...
Success.

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!

Step #03: Create database for store data at first login using root and password

root@OsTicket:~# mysql -u root -p

Then run below command into mysql terminal

Mysql> create database osticketdb;
Mysql> create user osticket@localhost identified by 'Passw0rd@123';
Mysql> grant all privileges on osticketdb.* to osticket@localhost identified by 'Passw0rd@123';
Mysql> flush privileges;
Mysql> exit;

Service mysql restart command below

root@OsTicket:~# service mysql restart

Step #04: Download OsTicket software from below link

root@OsTicket:~# cd /tmp/
root@OsTicket:/tmp# wget https://github.com/osTicket/osTicket/releases/download/v1.10.4/osTicket-v1.10.4.zip

Now unzip and move into web directory download file then see two folder one upload and other scripts

root@OsTicket:~# unzip osTicket-v1.10.4.zip
root@OsTicket:~# mv upload/* /var/www/html/
root@OsTicket:~# mv scripts/ /var/www/html/

Remove default index file using command below

root@OsTicket:~# rm -rf /var/www/html/index.html

Step #05: Edit database file and insert DB config

root@OsTicket:~# cd /var/www/html/include/
root@OsTicket:/var/www/html/include/# cp ost-sampleconfig.php ost-config.php

Setup web directory permission for execute all command

root@OsTicket:/var/www/html/include/# cd
root@OsTicket:~# chown -R www-data:www-data /var/www/html/
root@OsTicket:~# chmod 755 -R /var/www/html/
root@OsTicket:~# chmod 0644 /var/www/html/include/ost-config.php

Step #06: Create virtual host for OsTicket config

root@OsTicket:~# vi /etc/apache2/sites-available/000-default.conf

Make sure DocumentRoot /var/www/html

Step #07: Restart web server command below

root@OsTicket:~# service apache2 restart

Step #08: Goto http://10.66.25.20/

Step by step setup support mail, admin account and database info.

Troubleshooting scp

When login http://10.66.25.20/scp/

Error : Valid CSRF Token Required

Open session file from below

root@OsTicket:~# vi /var/www/html/upload/include/class.ostsession.php

Find below text
DoesNotExist

Insert this line  $this->data->session_data = “”;

After $this->data = new SessionData([‘session_id’ => $id]);

Example :

$this->data = new SessionData(['session_id' => $id]);
$this->data->session_data = "";
root@OsTicket:~# service apache2 restart

When done installation then changed some permission.

root@OsTicket:~# chmod 0644 /var/www/html/include/ost-config.php

Now enjoy your opensource ticketing system. If installation any problem then see my YouTube channel.

Remember it. My video is OsTicket using nginx. New update my post I see nginx many error like as popup blank page. So I change web server and update this post using apache2. 

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.

View Comments (19)

  • Hi Admin, thanks for the video and the walktrought. I just have a question, you say: "On the other hand web using apache server....and ....Install php, mysql and nginx server this is LAMP server."
    I see the code and that's a LEMP installation, I don't know if it's just a common error or you meant to install and use Apache all the time.
    Thanks!

  • Hello!

    I've reading your post about how install Osticket (1.10.4) on ubuntu 18.04 and I've follow all steps one by one until step #08; but I have a trouble when I try to open http://10.66.25.20, the page not load.

  • hi . I did everythink you did and i installed osticket. But i have a black pop up problem. I dont know how i fix it

  • Thank you! this works, but there's an issue, when trying to click on any of the question marks or anything that has a bubble pop up is not working and it gets stuck. Was reading about some ajax issue but cannot figure it out

  • 15 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of CachedResultSet::count() must be compatible with BaseList::coun

    getting this error... after a clean installation

  • Hello again!!!
    I have a problem with OsTicket, when a I tried to add a user, the textbox doesn´t appear and only remains loading.
    Do you know what is wrong?

    Thank for you help.

Leave a Comment