{"id":11413,"date":"2022-06-16T18:03:10","date_gmt":"2022-06-16T15:03:10","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11413"},"modified":"2024-03-09T15:11:06","modified_gmt":"2024-03-09T12:11:06","slug":"install-otrs-ticketting-system-on-debian","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-otrs-ticketting-system-on-debian\/","title":{"rendered":"Install OTRS Ticketting System on Debian 11"},"content":{"rendered":"\n
Welcome to our tutorial on how to install OTRS ticketting system on Debian 11. OTRS<\/a>, an acronym for Open Source Ticket Request System, is a flexible ticket request and process management system for customer services, Helpdesk, and IT services.<\/p>\n\n\n\n OTRS ships with a comprehensive list of features that you can check them on the OTRS feature list page<\/a>.<\/p>\n\n\n\n OTRS is available as a commercial product as well as a community edition. In this tutorial, however, we will learn how to install OTRS community edition on Debain 11 system from the source code.<\/p>\n\n\n\n To begin with;<\/p>\n\n\n\n Sample command output;<\/p>\n\n\n\n If any Perl module is missing, install using the package manager or CPAN.<\/p>\n\n\n\n Once you activate the configuration file, check if other required modules are okay;<\/p>\n\n\n\n Sample Output;<\/p>\n\n\n\n Ensure everything is Okay before you can proceed.<\/p>\n\n\n\n Update the database configuration with the settings below;<\/p>\n\n\n\n Please these lines within the Restart the database service;<\/p>\n\n\n\n By default, OTRS ships with default Apache configuration, Thus, instead of re-inventing the wheel, just link this configuration file to Apache sites-enabled directory to use it to serve OTRS.<\/p>\n\n\n\n Disable the default Apache site configuration;<\/p>\n\n\n\n Next, enable the required Apache modules;<\/p>\n\n\n\n Set the ownership of the \/opt\/otrs;<\/p>\n\n\n\n Update OTRS Files Permissions<\/p>\n\n\n\n Check Apache configuration for any error and restart Apache Web Server;<\/p>\n\n\n\n Allow external access to Apache service;<\/p>\n\n\n\n Next, access the OTRS installer via the Thus select “Use an existing database for OTRS<\/strong>” and proceed to define the database connection details.<\/p>\n\n\n\n Once you enter the database connection settings, verify the connection before you can proceed.<\/p>\n\n\n\n The database setup will proceed when you click Next.<\/p>\n\n\n\n Once it is done, click Next.<\/p>\n\n\n\n Click Next to configure your email settings.<\/p>\n\n\n\n At the finish, you will see the OTRS login details.<\/p>\n\n\n\n If you see that the OTRS Daemon is not running, start the OTRS Daemon;<\/p>\n\n\n\n Next, ensure that the OTRS cron jobs under And that is all!<\/p>\n\n\n\n Read more on the administration page<\/a>.<\/p>\n\n\n\n Install Zammad Ticketing System on Debian 11<\/a><\/p>\n\n\n\nInstall OTRS Ticketting System on Debian 11<\/h2>\n\n\n\n
\n
sudo useradd -r -m -d \/opt\/otrs -c \"OTRS User\" -s \/usr\/sbin\/nologin otrs<\/code><\/pre>\n\n\n\n
\n
sudo apt install perl libapache2-mod-perl2 libdbd-mysql-perl libtimedate-perl \\\nlibnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl \\\nlibdbd-mysql-perl libsoap-lite-perl libtext-csv-xs-perl libjson-xs-perl \\\nlibapache-dbi-perl libxml-libxml-perl libxml-libxslt-perl libyaml-perl \\\nlibarchive-zip-perl libcrypt-eksblowfish-perl libencode-hanextra-perl \\\nlibmail-imapclient-perl libtemplate-perl libmoo-perl libauthen-ntlm-perl \\\nlibjavascript-minifier-xs-perl libdbd-odbc-perl libcss-minifier-xs-perl \\\nlibdbd-pg-perl libdatetime-perl apache2 mariadb-server mariadb-client -y<\/code><\/pre>\n\n\n\n
\n
wget -qO- \\\nhttps:\/\/otrscommunityedition.com\/download\/otrs-community-edition-6.0.35.tar.gz \\\n| tar xz -C \/opt\/otrs --strip-components=1<\/code><\/pre>\n\n\n\n
\n
perl \/opt\/otrs\/bin\/otrs.CheckModules.pl<\/code><\/pre>\n\n\n\n
o Apache::DBI......................ok (v1.12)\n o Apache2::Reload..................ok (v0.13)\n o Archive::Tar.....................ok (v2.36)\n o Archive::Zip.....................ok (v1.68)\n o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)\n o CSS::Minifier::XS................ok (v0.11)\n o Date::Format.....................ok (v2.24)\n o DateTime.........................ok (v1.54)\n o DateTime::TimeZone.............ok (v2.47)\n o DBI..............................ok (v1.643)\n o DBD::mysql.......................ok (v4.050)\n o DBD::ODBC........................ok (v1.61)\n o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)\n o DBD::Pg..........................ok (v3.14.2)\n o Digest::SHA......................ok (v6.02)\n o Encode::HanExtra.................ok (v0.23)\n o IO::Socket::SSL..................ok (v2.069)\n o JSON::XS.........................ok (v4.03)\n o JavaScript::Minifier::XS.........ok (v0.13)\n o List::Util::XS...................ok (v1.55)\n o LWP::UserAgent...................ok (v6.64)\n o Mail::IMAPClient.................ok (v3.42)\n o IO::Socket::SSL................ok (v2.069)\n o Authen::SASL...................ok (v2.16)\n o Authen::NTLM...................ok (v1.09)\n o ModPerl::Util....................ok (v2.000011)\n o Moo..............................ok (v2.004004)\n o Net::DNS.........................ok (v1.29)\n o Net::LDAP........................ok (v0.68)\n o Net::SMTP........................ok (v3.11)\n o Template.........................ok (v2.27)\n o Template::Stash::XS..............ok (undef)\n o Text::CSV_XS.....................ok (v1.45)\n o Time::HiRes......................ok (v1.9764)\n o XML::LibXML......................ok (v2.0134)\n o XML::LibXSLT.....................ok (v1.99)\n o XML::Parser......................ok (v2.46)\n o YAML::XS.........................ok (v0.82)\n<\/code><\/pre>\n\n\n\n
\n
\/opt\/otrs\/Kernel\/Config.pm.dist<\/code>, by renaming it to remove the
.dist<\/code><\/strong> extension;<\/li>\n<\/ul>\n\n\n\n
cp \/opt\/otrs\/Kernel\/Config.pm{.dist,}<\/code><\/pre>\n\n\n\n
for i in cgi-bin\/index.pl cgi-bin\/customer.pl otrs.Console.pl; do \\\nperl -cw \/opt\/otrs\/bin\/$i; done<\/code><\/pre>\n\n\n\n
\/opt\/otrs\/bin\/cgi-bin\/index.pl syntax OK\n\/opt\/otrs\/bin\/cgi-bin\/customer.pl syntax OK\n\/opt\/otrs\/bin\/otrs.Console.pl syntax OK<\/code><\/pre>\n\n\n\n
\n
mysql_secure_installation<\/code><\/pre>\n\n\n\n
\n
mysql -u root -p -e \"create database otrsdb character set utf8 collate utf8_general_ci;\"<\/code><\/pre>\n\n\n\n
mysql -u root -p -e \"grant all on otrsdb.* to otrsadmin@localhost identified by 'ChangeME<\/strong>';\"<\/code><\/pre>\n\n\n\n
mysql -u root -p -e \"flush privileges;\"<\/code><\/pre>\n\n\n\n
max_allowed_packet = 64M\nquery_cache_size = 32M\ninnodb_log_file_size = 256M<\/code><\/pre>\n\n\n\n
[mysqld]<\/code> section. Use the command below;<\/p>\n\n\n\n
sed -i.bak -e \\\n'\/\\[mysqld\\]\/amax_allowed_packet = 64M\\nquery_cache_size = 32M\\ninnodb_log_file_size = 256M' \\\n\/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/code><\/pre>\n\n\n\n
systemctl restart mariadb<\/code><\/pre>\n\n\n\n
\n
\/opt\/otrs\/scripts\/apache2-httpd.include.conf<\/code>.<\/p>\n\n\n\n
ln -s \/opt\/otrs\/scripts\/apache2-httpd.include.conf \/etc\/apache2\/sites-enabled\/<\/code><\/pre>\n\n\n\n
a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n
a2enmod perl version deflate filter headers<\/code><\/pre>\n\n\n\n
chown -R otrs: \/opt\/otrs\/<\/code><\/pre>\n\n\n\n
usermod -aG www-data otrs<\/code><\/pre>\n\n\n\n
\/opt\/otrs\/bin\/otrs.SetPermissions.pl --web-group=www-data<\/code><\/pre>\n\n\n\n
apachectl -t<\/code><\/pre>\n\n\n\n
systemctl restart apache2<\/code><\/pre>\n\n\n\n
Finalize Setup of OTRS on Browser<\/h3>\n\n\n\n
ufw allow 80\/tcp<\/code><\/pre>\n\n\n\n
http:\/\/HOST_IP_OR_DOMAIN\/otrs\/installer.pl<\/strong><\/code>.<\/p>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/div><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n
sudo -Hiu otrs \/opt\/otrs\/bin\/otrs.Daemon.pl start<\/code><\/pre>\n\n\n\n
\/opt\/otrs\/var\/cron\/<\/code> exists without the .dist<\/strong> extension and start them;<\/p>\n\n\n\n
sudo -Hiu otrs cp \/opt\/otrs\/var\/cron\/aaa_base{.dist,}<\/code><\/pre>\n\n\n\n
sudo -Hiu otrs cp \/opt\/otrs\/var\/cron\/otrs_daemon{.dist,}<\/code><\/pre>\n\n\n\n
sudo -Hiu otrs \/opt\/otrs\/bin\/Cron.sh start<\/code><\/pre>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n