{"id":11432,"date":"2022-02-03T10:08:06","date_gmt":"2022-02-03T07:08:06","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11432"},"modified":"2024-03-09T10:17:04","modified_gmt":"2024-03-09T07:17:04","slug":"install-osticket-ticketing-system-on-debian-11-debian-10","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-osticket-ticketing-system-on-debian-11-debian-10\/","title":{"rendered":"Install osTicket Ticketing system on Debian 11\/Debian 10"},"content":{"rendered":"\n
In this tutorial, you will learn how to install osTicket Ticketing system on Debian 11\/Debian 10. osTicket<\/a> is an opensource ticketing system.<\/p>\n\n\n\n Read more about osTicket and its capabilities on the osTicket Features page<\/a>.<\/p>\n\n\n\n osTicket is available in different editions<\/a>;<\/p>\n\n\n\n In this tutorial, we will be install the free version of osTicket on Debian 11\/Debian 10 systems.<\/p>\n\n\n\n To begin with, run system package update;<\/p>\n\n\n\n To begin with, install an HTTP server. In this setup, we use Apache HTTP server. Thus run the command below to install Apache HTTP server on Debian 11\/Debian 10.<\/p>\n\n\n\n Start and enable Apache HTTP server to run on system boot;<\/p>\n\n\n\n Next, execute the command below to install PHP and PHP modules required by osTicket system. Note that osTicket requires PHP 7.2+. Hence, we will use PHP 7.4 on Debian 11 and PHP 7.3 on Debian 10, which is the default PHP versions available on the respective repositories;<\/p>\n\n\n\n MySQL 5.5+ is supported. We will however use MariaDB 10.3 (which is available version on the default Debian 10 repositories) and MariaDB 10.5, (which is available version on the default Debian 11 repositories).<\/p>\n\n\n\n Start and enable MariaDB service to run on boot after the installation;<\/p>\n\n\n\n Once the database is installed, run the initial security script to remove the anonymous accounts, disable remote root login, remove rest databases and reload privileges tables;<\/p>\n\n\n\n Next, login and create the database and a user with all privileges granted on that specific database;<\/p>\n\n\n\n Be sure to replace the names of the database and database user, as well the user password.<\/strong><\/p>\n\n\n\n osTicket v1.15.4 is the current stable release. You can grab the archive from the GitHub releases page<\/a>.<\/p>\n\n\n\n You can as well get the download link and pull using wget or curl tools;<\/p>\n\n\n\n Next, create osTicket web root directory. In this setup, we use the Extract osTicket archive contents to the web root directory created above;<\/p>\n\n\n\n You will now see two folders extracted;<\/p>\n\n\n\n Next, rename the osTicket config file from To server osTicket, you need to create a VirtualHost configuration file that tells the HTTP server to access and server osTicket.<\/p>\n\n\n\n Next, paste the content below to the configuration file above. Be sure to make any appropriate changes<\/strong>.<\/p>\n\n\n\n Save and exit the config.<\/p>\n\n\n\n Check for any Apache syntax errors;<\/p>\n\n\n\n If you get the output, Disable the default Apache site;<\/p>\n\n\n\n Enable osTicket site;<\/p>\n\n\n\n Enable Apache Rewrite module;<\/p>\n\n\n\n Change the ownership of the osTicket web root directory to web user;<\/p>\n\n\n\n Restart Apache Service;<\/p>\n\n\n\n You can now access osTicket web UI using If firewall is running, be sure to open ports 80\/443 for external access.<\/p>\n\n\n\n This will load osTicket setup and prerequisites page.<\/p>\n\n\n\n If all is well, click Continue<\/strong> to proceed with the setup:<\/p>\n\n\n\n And thus, update the permissions of the osTicket configuration file;<\/p>\n\n\n\n Also, remove the setup directory;<\/p>\n\n\n\n You can then access your osTicket web dashboard using the url, shown on the under useful links.<\/p>\n\n\n\n Login to check ticket status or create a new ticket. For example, login as admin user (sign in as an agent<\/em><\/strong>) created during the setup.<\/p>\n\n\n\n And there you go!<\/p>\n\n\n\n That concludes our guide on how to install osTicket ticketing system on Debian 11\/Debian 10.<\/p>\n\n\n\n Read more on the documentation page<\/a>.<\/p>\n\n\n\n Install osTicket Ticketing System on Ubuntu 22.04\/Ubuntu 20.04<\/a><\/p>\n\n\n\n Install Zammad Ticketing System on Debian 10<\/a><\/p>\n\n\n\nInstall osTicket Ticketing System on Debian 11\/Debian 10<\/h2>\n\n\n\n
Run System Update<\/h3>\n\n\n\n
apt update<\/code><\/pre>\n\n\n\n
Install HTTP Server<\/h3>\n\n\n\n
apt install apache2 -y<\/code><\/pre>\n\n\n\n
systemctl enable --now apache2<\/code><\/pre>\n\n\n\n
Install PHP and Required PHP Modules<\/h3>\n\n\n\n
apt install php php-{gd,imap,xml,json,mbstring,mysql,intl,apcu} libapache2-mod-php -y<\/code><\/pre>\n\n\n\n
Install MySQL\/MariaDB Database on Debian 11\/Debian 10<\/h3>\n\n\n\n
apt install mariadb-{server,client} -y<\/code><\/pre>\n\n\n\n
systemctl enable --now mariadb<\/code><\/pre>\n\n\n\n
Create Database for osTicket Ticketing tool<\/h3>\n\n\n\n
mysql_secure_installation<\/code><\/pre>\n\n\n\n
mysql<\/code><\/pre>\n\n\n\n
create database osticket;<\/code><\/pre>\n\n\n\n
grant all on osticket.* to osticketadmin@localhost identified by 'changeme';<\/code><\/pre>\n\n\n\n
flush privileges;\nquit<\/code><\/pre>\n\n\n\n
Download osTicket Installation Archive<\/h3>\n\n\n\n
wget https:\/\/github.com\/osTicket\/osTicket\/releases\/download\/v1.15.4\/osTicket-v1.15.4.zip -P \/tmp<\/code><\/pre>\n\n\n\n
Create osTicket Web Root Directory<\/h3>\n\n\n\n
\/var\/www\/html\/osticket<\/code><\/strong>.<\/p>\n\n\n\n
mkdir \/var\/www\/html\/osticket<\/code><\/pre>\n\n\n\n
Extract osTicket Archive Contents<\/h3>\n\n\n\n
apt install unzip -y<\/code><\/pre>\n\n\n\n
unzip -qd \/var\/www\/html\/osticket \/tmp\/osTicket-v1.15.4.zip<\/code><\/pre>\n\n\n\n
ls -1 \/var\/www\/html\/osticket\/<\/code><\/pre>\n\n\n\n
scripts\nupload<\/code><\/pre>\n\n\n\n
upload\/include\/ost-sampleconfig.php<\/strong><\/code> to
upload\/include\/ost-config.php<\/code><\/strong> as follows;<\/p>\n\n\n\n
mv \/var\/www\/html\/osticket\/upload\/include\/ost-{sample,}config.php<\/code><\/pre>\n\n\n\n
Create osTicket Site Apache configuration file<\/h3>\n\n\n\n
vim \/etc\/apache2\/sites-available\/osticket.conf<\/code><\/pre>\n\n\n\n
<VirtualHost *:80>\n ServerName helpdesk.kifarunix-demo.com\n ServerAdmin webmaster@localhost\n DocumentRoot \/var\/www\/html\/osticket\/upload\n \n <Directory \/var\/www\/osticket\/upload>\n Require all granted\n Options FollowSymlinks\n AllowOverride All\n <\/Directory>\n\n ErrorLog ${APACHE_LOG_DIR}\/osticket.error.log\n CustomLog ${APACHE_LOG_DIR}\/osticket.access.log combined\n<\/VirtualHost>\n<\/code><\/pre>\n\n\n\n
apachectl -t<\/code><\/pre>\n\n\n\n
Syntax OK<\/code><\/strong>, then proceed. otherwise fix those errors.<\/p>\n\n\n\n
a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n
a2ensite osticket.conf<\/code><\/pre>\n\n\n\n
a2enmod rewrite<\/code><\/pre>\n\n\n\n
chown -R www-data: \/var\/www\/html\/osticket<\/code><\/pre>\n\n\n\n
systemctl restart apache2<\/code><\/pre>\n\n\n\n
Accessing osTicket Web Interface<\/h3>\n\n\n\n
http:\/\/<hostname or ip><\/code><\/strong>.<\/p>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
chmod 0644 \/var\/www\/html\/osticket\/upload\/include\/ost-config.php<\/code><\/pre>\n\n\n\n
rm -rf \/var\/www\/html\/osticket\/upload\/setup<\/code><\/pre>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n