[otrs] Installation Questions
Nils Breunese (Lemonbit Internet)
nils at lemonbit.nl
Wed Jun 7 17:42:19 CEST 2006
Hershel Robinson wrote:
> Could this be a problem with step 6? Webserver configuration? I
> don't think so but I don't know. All I actually did was add these 2
> lines:
>
> Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
> Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
>
> to the very bottom of httpd.conf
>
> What now?
I have this instead:
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
So, a ScriptAlias instead of a normal Alias. That should tell apache
to execute the files as scripts, instead of serving them up as text
documents.
Here's my full vhost configuration for OTRS using mod_perl instead of
CGI (much faster):
----
# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
AllowOverride None
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
Order allow,deny
Allow from all
</Location>
# directory settings
<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>
----
You might have to replace Apache::Reload with Apache2::Reload on your
system (two occurences), I'm not sure.
Nils.
More information about the otrs
mailing list