Questa è una vecchia versione del documento!
If you have to install OTRS from source, first download the .tar.gz or .tar.bz2 file with the sources from http://www.otrs.org please.
Unpack the archive for example with tar into the directory /opt and rename the directory from otrs-2.2.x to otrs:
linux:/opt# tar xf /tmp/otrs-2.2.x.tar.gz linux:/opt# mv otrs-2.2.-x otrs linux:/opt# ls otrs linux:/opt#
Because the modules of OTRS should not be executed with root rights, a new user for OTRS will be added in the next step. The home directory of this new user should be /opt/otrs. If your webserver is not running with the same user rights like the new otrs users (this is the case on most systems), you have to add the new otrs user to the group of the web server user:
linux:/opt# useradd -d /opt/otrs/ -c 'OTRS user' otrs linux:/opt# usermod -G nogroup otrs linux:/opt#
Now some demo config files of OTRS have to be copied. The system will later use the copied files. The files are located in /opt/otrs/Kernel and /opt/otrs/Kernel/Config and have the ending .dist.
linux:/opt# cd otrs/Kernel/ linux:/opt/otrs/Kernel# cp Config.pm.dist Config.pm linux:/opt/otrs/Kernel# cd Config linux:/opt/otrs/Kernel/Config# cp GenericAgent.pm.dist GenericAgent.pm
Aggiunte le seguenti righe a Config.pm
# SystemID # (The identify of the system. Each ticket number and # each http session id starts with this number) $Self->{SystemID} = 11;
# HttpType # In case you use https instead of plain http specify it here $Self->{HttpType} = 'http';
# ScriptAlias # Prefix to index.pl used as ScriptAlias in web config # (Used when emailing links to agents). $Self->{ScriptAlias} = 'otrs/';
# AdminEmail # (Email of the system admin.) $Self->{AdminEmail} = 'admin@example.com';
# Organization # (If this is anything other than '', then the email will have an # Organization X-Header) # $Self->{Organization} = 'Example Company'; $Self->{Organization} = '';
# ProductName # (Shown application name in frontend.) $Self->{ProductName} = 'OTRS';
The last step to prepare the installation of OTRS is to set the proper access rights for the files of the ticket system. You can use the script SetPermissions.sh, which is located in the bin directory in the home directory of the OTRS user. The script can be executed with the following parameters:
SetPermissions.sh { Home directory of the OTRS user } { OTRS user } { Web server user } [ Group of the OTRS user ] [ Group of the web server user ]
Modificato /etc/httpd/conf.d/otrs.conf
<Directory "/opt/otrs/bin/cgi-bin/"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Directory "/opt/otrs/var/httpd/htdocs/"> AllowOverride None Order allow,deny Allow from all </Directory>