Install
on a clean Debian 4.0 Etch
Needed packages:
apt-get install mysql-server
apt-get install apache2
apt-get install libapache2-mod-perl2
apt-get install libapache-dbi-perl
apt-get install libemail-date-perl
apt-get install libnet-dns-perl
apt-get install libnet-ldap-perl
apt-get install libnet-imap-simple-ssl-perl
apt-get install libgd-perl
apt-get install libgd-text-perl
apt-get install libgd-graph-perl
apt-get install libpdf-api2-perl
apt-get install libxml-parser-perl
Get OTRS tarball with wget.
Create system account:
useradd -d /opt/otrs/ -c 'OTRS user' otrs
usermod -G www-data otrs
Installation:
cd /opt
tar xvzf /root/otrs-2.3.2.tar.gz
mv otrs-2.3.2 otrs
chmod -R 777 otrs
cd otrs/Kernel
cp Config.pm.dist Config.pm
cd Config
cp GenericAgent.pm.dist GenericAgent.pm
Check packages:
/opt/otrs/bin/otrs.checkModules
if some module is missing, go with apt-get and install the appropriate module.
MySQL config.
enter mysql prompt with:
mysql -u root -p
create database otrs;
grant all privileges on otrs.* to '
otrs'@'localhost' identified by "password" with grant option;drop database otrs;
quit
Web server config:
into
/opt/otrs/scripts/apache-perl-startup.pl
uncomment these lines (and modify user/password
accordingly on the second row):
use Apache::DBI
();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs',
'password');
use DBI ();
create Apache 2 startup script:
/etc/init.d/apache2 stop
cd /etc/apache2/conf.d
cp /opt/otrs/scripts/apache2-httpd-new.include.conf /etc/apache2/conf.d/otrs
/etc/init.d/apache2 start
Configurazione OTRS:
modify /opt/otrs/Kernel/Config.pm, inserting DB user and password selected on MySQL step and other parameters (SMTP, ecc)
Cron jobs:
cd /opt/otrs/var/cron
for foo in *.dist; do cp $foo `basename $foo .dist`; done
modify file without dist extension to suit your needs:
/opt/otrs/bin/Cron.sh start otrs
Set permissions:
/opt/otrs/bin/SetPermissions.sh /opt/otrs otrs www-data www-data www-data
End installation:
go to
http://indirizzoserver/otrs/installer.pl
then
first login User/Pw : root@localhost/root