Plesk 8.3 and OTRS - English

Hilfe zu Znuny Problemen aller Art
Locked
wireaudio
Znuny newbie
Posts: 2
Joined: 23 Jan 2009, 11:17

Plesk 8.3 and OTRS - English

Post by wireaudio »

Hello.

Sorry, i do not speak German, i hope someone can help me here. I looked everywhere for a english forum and could not find one.
I have a VPS with Plesk 8.3 and i am trying to install this awesome support system.
The server is running fedora 4.
So far i installed the package. It installed in /opt/otrs.
I turned off SELINUX
I edited httpd.conf located in /var/www/vhosts/mydomain.com/conf/ to this:

Code: Select all

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd-new.include.conf,v 1.3 2007/04/16 12:11:53 martin Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

# if mod_perl is used
<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

    # Apache::Reload - Reload Perl Modules when Changed on Disk
    PerlModule Apache2::Reload
    PerlInitHandler Apache2::Reload
    PerlModule Apache2::RequestRec

    # set mod_perl2 options
    <Location /otrs>
#        ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
        Order allow,deny
        Allow from all
    </Location>

</IfModule>

# 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>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
However it seems that when i try to access http://www.mydomain.com/otrs/installer.pl it gives me a 500 error.

Looking at the log this is what i find: [Fri Jan 23 02:35:28 2009] [error] [client xx.xx.xx.xx] Premature end of script headers: installer.pl

Before i added this httpd.conf file, i was getting this before the error above: [Fri Jan 23 02:21:35 2009] [error] [client xx.xx.xx.xx] File does not exist: /var/www/vhosts/mydomain.com/httpdocs/otrs

Anyone have any ideas? Thanks in advance!
wireaudio
Znuny newbie
Posts: 2
Joined: 23 Jan 2009, 11:17

Plesk 8.3 and OTRS - English

Post by wireaudio »

I figured it out myself. The installation goes as planned. All its needed is 2 things:

1. Disable suexec. I found some info here:
http://forum.swsoft.com/pda/index.php/t-17209.html

So i went ahead and figured it out.
The file to edit is httpd.include located in /var/www/vhosts/website.com/conf/

you simply can comment out the suexec lines like so (add the # in front of the line):
# SuexecUserGroup username psacln

Make sure you get all of them, theres 3 spots i had to edit that out in the same file.

Now, plesk WILL change this file back to original UNLESS you do this to it:

chattr +i httpd.include

YOU MUST BE LOGGED IN AS ROOT TO DO THIS CHANGE.
Since you change this as root, plesk will be unable to edit this file.

2. You have to make sure your file points where it was supposed to:
Create the file httpd.conf if you dont already have it in /var/www/vhosts/website.com/conf/

Add these contents to it:

Code: Select all

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd-new.include.conf,v 1.3 2007/04/16 12:11:53 martin Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

# if mod_perl is used
<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

    # Apache::Reload - Reload Perl Modules when Changed on Disk
    PerlModule Apache2::Reload
    PerlInitHandler Apache2::Reload
    PerlModule Apache2::RequestRec

    # set mod_perl2 options
    <Location /otrs>
#        ErrorDocument 403 /otrs/customer.pl
        ErrorDocument 403 /otrs/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
        Order allow,deny
        Allow from all
    </Location>

</IfModule>

# 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>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400

You have to do this for every web site.

Another way to do it is give the appropriate permissions to suexec, and allow the WEB USER to execute the script. But if you know ur safe and u got nothing to worry about, simply disable it.
Locked