wget http://ftp.otrs.org/pub/otrs/otrs-2.4.5.tar.bz2
tar xvjf otrs-2.4.5.tar.bz2
mv otrs-2.4.5 /services/otrs
/services/otrs/bin/otrs.checkModules
# Perl dependencies.
# to update CGI to v3.38
apt-get install libcgi-pm-perl
# LWP::UserAgent | Date::Format
apt-get install libwww-perl
# Net::DNS
apt-get install libnet-dns-perl
# IO::Socket::SSL | Net::IMAP::Simple::SSL
apt-get install libio-socket-ssl-perl
# Net::LDAP
apt-get install libnet-ldap-perl
# GD stuff
apt-get install libgd-gd2-perl libgd-text-perl libgd-graph-perl
# PDF::API2
apt-get install libpdf-api2-perl
# SOAP::Lite | XML::Parser
apt-get install libsoap-lite-perl
# Add OTRS user
useradd -d /services/otrs -c \'OTRS user\' otrs
# Add OTRS user to www-data group
adduser otrs www-data
cp Kernel/Config.pm.dist Kernel/Config.pm
cd Kernel/Config
for foo in *.dist; do cp $foo `basename $foo .dist`; done
# webserver stuff
/services/otrs/bin/SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /services/otrs/
cp apache2-httpd-new.include.conf /etc/apache2/sites-available/otrs
apt-get install libapache2-mod-perl2
a2enmod perl