1
by Torsten Werner
Import upstream version 2.0.4p01 |
1 |
# -- |
2 |
# README.webserver - webserver description of OTRS |
|
1.1.6
by Torsten Werner
Import upstream version 2.3.2 |
3 |
# Copyright (C) 2001-2008 OTRS AG, http://otrs.org/ |
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
4 |
# -- |
1.1.6
by Torsten Werner
Import upstream version 2.3.2 |
5 |
# $Id: README.webserver,v 1.17 2008/04/29 11:40:58 tr Exp $ |
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
6 |
# -- |
7 |
# This software comes with ABSOLUTELY NO WARRANTY. For details, see |
|
8 |
# the enclosed file COPYING for license information (GPL). If you |
|
1.1.6
by Torsten Werner
Import upstream version 2.3.2 |
9 |
# did not receive this file, see http://www.gnu.org/licenses/gpl-2.0.txt. |
1
by Torsten Werner
Import upstream version 2.0.4p01 |
10 |
# -- |
11 |
||
12 |
Which webserver is needed? |
|
13 |
==========================
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
14 |
I prefer the apache webserver (http://httpd.apache.org). |
1
by Torsten Werner
Import upstream version 2.0.4p01 |
15 |
|
16 |
Configuration: |
|
17 |
==============
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
18 |
"After" this steps, you will get the login page at |
1
by Torsten Werner
Import upstream version 2.0.4p01 |
19 |
http://your-host/otrs/index.pl or http://your-host/otrs/installer.pl. |
20 |
||
21 |
SuSE Linux: |
|
22 |
===========
|
|
23 |
a) Install the RPM-Package (http://otrs.org/ - "rpm -i otrs-xxx.rpm"). |
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
24 |
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
25 |
b) The manual way: |
26 |
Use the "$OTRS_HOME/scripts/suse-httpd.include.conf" include config file. |
|
27 |
||
28 |
Add it to /etc/sysconfig/apache with HTTPD_CONF_INCLUDE_FILES |
|
29 |
[...]
|
|
30 |
HTTPD_CONF_INCLUDE_FILES=/opt/otrs/scripts/suse-httpd.include.conf |
|
31 |
[...]
|
|
32 |
||
33 |
Start SuSEconfig and restart the webserver (rcapache restart). |
|
34 |
||
35 |
||
36 |
Or edit the httpd.conf directly: |
|
37 |
================================
|
|
38 |
a) |
|
39 |
*) Change the webserver user (normaly wwwrun) to the OTRS user (otrs). |
|
40 |
||
41 |
[...]
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
42 |
User wwwrun |
1
by Torsten Werner
Import upstream version 2.0.4p01 |
43 |
[...]
|
44 |
User otrs |
|
45 |
[...]
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
46 |
|
47 |
*) If you can't change the user and group of your webserver (system-wide), |
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
48 |
because you have other applications running on this server, you can
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
49 |
also work with group permissions (more tricky).
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
50 |
|
51 |
Use "$HOME/bin/SetPermissions.sh <OTRS_HOME> <OTRS_USER> <WEBSERVER_USER> [OTRS_GROUP] [WEB_GROUP]"
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
52 |
e. g.
|
53 |
Webserver with otrs user: "SetPermissions.sh /opt/otrs otrs otrs"
|
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
54 |
Webserver with wwwrun user (e. g. SuSE): "SetPermissions.sh /opt/otrs otrs wwwrun"
|
55 |
Webserver with apache user (e. g. Redhat): "SetPermissions.sh /opt/otrs otrs apache"
|
|
56 |
||
57 |
b)
|
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
58 |
*)
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
59 |
Without mod_perl (just CGI):
|
60 |
============================
|
|
61 |
Add this to the cgi-bin stuff section in httpd.conf
|
|
62 |
[...]
|
|
63 |
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
|
|
64 |
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
|
|
65 |
[...]
|
|
66 |
||
67 |
*)
|
|
1.1.2
by Torsten Werner
Import upstream version 2.2.3 |
68 |
With mod_perl 1 (speed!):
|
69 |
=======================
|
|
70 |
Add this to the mod_perl stuff section in httpd.conf
|
|
71 |
[...]
|
|
72 |
# agent, admin and customer frontend (mod_alias required!)
|
|
73 |
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
|
|
74 |
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
|
|
75 |
||
76 |
# load all otrs modules (speed improvement!)
|
|
77 |
# Perlrequire /opt/otrs/scripts/apache-perl-startup.pl
|
|
78 |
||
79 |
# Apache::StatINC - Reload %INC files when updated on disk
|
|
80 |
# (just use it for testing, setup, ... not for high productiv systems)
|
|
81 |
# PerlInitHandler Apache::StatINC
|
|
82 |
||
83 |
<Location /otrs>
|
|
84 |
ErrorDocument 403 /otrs/index.pl
|
|
85 |
SetHandler perl-script
|
|
86 |
PerlHandler Apache::Registry
|
|
87 |
Options ExecCGI
|
|
88 |
PerlSendHeader On
|
|
89 |
PerlSetupEnv On
|
|
90 |
</Location>
|
|
91 |
[...]
|
|
92 |
||
93 |
*)
|
|
94 |
With mod_perl 2 (speed!):
|
|
95 |
=======================
|
|
96 |
Add this to the mod_perl stuff section in httpd.conf
|
|
97 |
[...]
|
|
98 |
# agent, admin and customer frontend
|
|
99 |
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
|
|
100 |
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
|
|
101 |
||
1
by Torsten Werner
Import upstream version 2.0.4p01 |
102 |
# load all otrs modules
|
1.1.2
by Torsten Werner
Import upstream version 2.2.3 |
103 |
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
|
104 |
||
105 |
# Apache::Reload - Reload Perl Modules when Changed on Disk
|
|
106 |
PerlModule Apache2::Reload
|
|
107 |
PerlInitHandler Apache2::Reload
|
|
108 |
PerlModule Apache2::RequestRec
|
|
109 |
||
110 |
# set mod_perl2 options
|
|
111 |
<Location /otrs>
|
|
112 |
# ErrorDocument 403 /otrs/customer.pl
|
|
113 |
ErrorDocument 403 /otrs/index.pl
|
|
114 |
SetHandler perl-script
|
|
115 |
PerlResponseHandler ModPerl::Registry
|
|
116 |
Options +ExecCGI
|
|
117 |
PerlOptions +ParseHeaders
|
|
118 |
PerlOptions +SetupEnv
|
|
119 |
Order allow,deny
|
|
120 |
Allow from all
|
|
121 |
</Location>
|
|
122 |
[...]
|
|
123 |
||
124 |
Edit the scripts/apache-perl-startup.pl / scripts/apache2-perl-startup.pl script:
|
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
125 |
|
126 |
- Establish datababase connections on process startup (httpd).
|
|
127 |
||
128 |
[...]
|
|
129 |
use Apache::DBI ();
|
|
130 |
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'some-pass'); |
|
131 |
# Apache::DBI->connect_on_init($data_source, $username, $auth, \%attr) |
|
132 |
[...]
|
|
133 |
||
134 |
- Change the otrs lib dir (if needed)! |
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
135 |
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
136 |
[...]
|
137 |
# -- |
|
138 |
# set otrs lib path! |
|
139 |
# -- |
|
140 |
use lib "/path/to/otrs/"; |
|
141 |
use lib "/path/to/otrs/Kernel/cpan-lib"; |
|
142 |
[...]
|
|
143 |
||
144 |
Nice! You will love mod_perl! ,-) |
|
145 |
||
146 |
c) |
|
147 |
Restart the webserver |
|
148 |
=====================
|
|
149 |
||
150 |
d) |
|
151 |
Web-Installer |
|
152 |
=============
|
|
153 |
http://yourhost/otrs/installer.pl |
|
1.1.1
by Torsten Werner
Import upstream version 2.1.7 |
154 |
|
1
by Torsten Werner
Import upstream version 2.0.4p01 |
155 |
First login |
156 |
===========
|
|
157 |
http://yourhost/otrs/index.pl |
|
158 |
User: root@localhost |
|
159 |
PW: root |
|
160 |
||
161 |
EOF
|