Commit 33af9474 authored by Geetha Vandana's avatar Geetha Vandana

installation of osticket

parent dfda3915
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
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
Now unzip and move into web directory download file then see two folder one upload and other scripts
root@OsTicket:~# unzip
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
Step by step setup support mail, admin account and database info.
Troubleshooting scp
When login
Error : Valid CSRF Token Required
Open session file from below
root@OsTicket:~# vi /var/www/html/upload/include/class.ostsession.php
Find below text
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment