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.
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
Leave a Comment