From Got Opinion Wiki
Jump to navigation Jump to search

Creator of OTRS

Martin Edenhofer

Install OTRS

Installation of OTRS 3.x on CentOS 5.5

Installation of OTRS 3.x on Red Hat Enterprise 6 (RHEL)

Post Install Steps

Support Assessment

OTRS comes with a built-in support assessment that uses colored boxes to indicate areas of interest. Go to Admin > Support Assessment to review your installed OTRS assessment.

These apply to OTRS 3.0.x

MySQL settings

CenOS 5.5 install had these areas of interest:

Check max allowed packet setting


Check query cache size setting

My Fix:

Adjust max_allowed_packet setting in MySQL. reference

Adjust query_cache_size setting in MySQL. reference

Steps to fix:

Edit MySQL /etc/my.cnf file:

# vi /etc/my.cnf

then add these parameters:


Restart mysqld:

# service mysqld restart
Stopping mysqld: [  OK  ]
Starting mysqld: [  OK  ]

After fix:

Refresh your browser page to update the color boxes.

Green check max allowed packet setting


Green check query cache size setting

Apache settings

CenOS 5.5 install had these areas of interest:

Apache:: DBI issue Check if the system uses apache::DBI

My Fix: Install Apache::DBI via MCPAN, edit PERL script, then restart httpd.

Steps to fix

Install Apache::DBI:

# perl -MCPAN -e shell
cpan> install Apache::DBI

Configure Apache::DBI in /opt/otrs/scripts directory edit apache2-perl-startup.pl script:

root@/opt/otrs/scripts# vi apache2-perl-startup.pl

Edit these lines (removed comment '#' marks and added OTRS user passcode):

use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'otrs_user_passcode_goes_here');

Restart httpd:

root@/opt/otrs/scripts# service httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]

After fix:

Refresh your browser page to update the color boxes. Green check if the system uses Apache::DBI

Setup cron jobs

OTRS needs some cron jobs to work properly. The cron jobs should be run with the same user rights that were specified for the OTRS modules. That means that the cron jobs must be inserted into the crontab file of the OTRS user. You do this by logging in as OTRS user and running a Cron.sh script.

By default my otrs user did not have shell access so I enable access by editing the /etc/passwd file line from /opt/otrs/:/bin/false to be /opt/otrs/:/bin/bash

$ su - root
# vi /etc/passwd

Now switch to OTRS user, verify in OTRS home, switch to bin directory and run Cron.sh script:

# su - otrs
$ pwd
$ cd bin
$ ./Cron.sh start
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.19 $> 
Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
(using /opt/otrs) done

Verify OTRS user crontab is populated:

$ crontab -l

Notification tags

Notification tags

a) All params of the latest customer article:


Also possibe but depends on used action:
<OTRS_CUSTOMER_Comment> (for note or owner update comments)

b) All possible OTRS config settings:
<OTRS_CONFIG_*> e. g.

c) Ticket owner options:
<OTRS_OWNER_*> e. g.

d) Ticket responsible options:

e) Options of the current user who requested this action:
<OTRS_CURRENT_*> e. g.

f) Options of the current customer user data of this ticket:

Note: For more tags have a look into your "CustomerUser" Kernel/Config.pm
options. All tags under "Map => [...]" are possible.

g) Options of the ticket data:
<OTRS_TICKET_*> e. g.
To Open Source Software