Friday, August 24, 2012

Installation of OTRS from source code on Ubuntu and Fedora


Installation of OTRS from source code on Ubuntu and Fedora

1)      Download the latest OTRS package from the site given below:
Go to the Source Archive section in the page a download the latest package in tar.gz format.
Eg:- otrs-3.1.8.tar.gz

2)      Extract the file and copy it to the required folder.
I have downloaded the file to “/home/ubuntu”
#cd /home/ubu                ntu
Command for extracting:
#tar -zxvf otrs-3.1.8.tar.gz

Command for moving to the required folder:
# mv /home/ubuntu/otrs-3.1.8  otrs
# mv /home/ubuntu/otrs  /opt


3)      Install all other dependency packages:

For Ubuntu:
#aptitude install libapache2-mod-perl2 libdbd-mysql-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libgd-graph-perl libapache-dbi-perl mysql-server


For Fedora:
#yum install libapache2-mod-perl2 libdbd-mysql-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libgd-graph-perl libapache-dbi-perl mysql-server

4)      Create a User “otrs” and give sufficient privileges
#useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
#usermod -g www-data otrs
 
 
5)  Copy the sample configuration files to make the OTRS configuration.
 
        #cd /opt/otrs/Kernel
        #cp Config.pm.dist Config.pm
        #cp Config/GenericAgent.pm.dist Config/GenericAgent.pm
 
 
6)  Set the permissions for Webserver and “otrs” user to have directory access.
 
#cd /opt/otrs/bin
  #./otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs
bin/otrs.SetPermissions.pl <1 .4=".4"> - set OTRS file permissions
Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on /opt/otrs/scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/
 
** single line command
 
7)  Web server Configuration:
#cp /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/conf.d/otrs.conf 
 
** single line command
 
# service apache2 restart
Or
# service httpd restart
 
8)  http://127.0.0.1/otrs/installer.pl
 
 
 
Replace with the IP address of your system.
 






 
 
       
 
 








1 comment:

  1. I couldnt success installing otrs 5 on Fedora, would you show me how?

    ReplyDelete