ISPConfig 3 and OTRS 3 (Perl)

Discussion in 'General' started by tini, Aug 19, 2010.

  1. tini

    tini New Member

    Hi there

    I'm trying to install a beta of the forthcoming new version of OTRS 3 which is written in perl.

    I already searched for other users having issues with ISPConfig 3 and OTRS or other perl applications, i.e. this thread: http://www.howtoforge.de/forum/showthread.php?t=1988

    So I went ahead and created a new site in the ISPConfig Admin Panel.
    I tried both, enalbed cgi and disabled cgi, the error is the same (see below).

    I upload the OTRS application into /web/otrs3/.

    I added the following Apache directives through the ISPConfig Admin Panel:

    Code:
    ScriptAlias /otrs/ "/var/www/clients/client4/web17/web/otrs3/bin/cgi-bin/"
    Alias /otrs-web/ "/var/www/clients/client4/web17/web/otrs3/var/httpd/htdocs/"
    
    <Directory "/var/www/clients/client4/web17/web/otrs3/">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>
    
    Then I added the handlers:

    Code:
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    Now my problem is that when I browse to http://mydomain/otrs/index.pl, i get a 505:

    [Thu Aug 19 13:10:17 2010] [error] [client 192.168.0.186] (13)Permission denied: exec of '/var/www/clients/client4/web17/web/otrs3/bin/cgi-bin/index.pl' failed
    [Thu Aug 19 13:10:17 2010] [error] [client 192.168.0.186] Premature end of script headers: index.pl

    Can anyone help me or do you need more information?

    Thx

    Tini
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are the permissions ok? What's the output of
    Code:
    ls -la /var/www/clients/client4/web17/web/otrs3/bin/cgi-bin/
    ?
     
  3. tini

    tini New Member

    Dear falko

    I think there a some missing permissions to execute the perl-skripts.
    If so, does the owner need executable permissions?

    Code:
    ls -la /var/www/clients/client4/web17/web/otrs3/bin/cgi-bin/
    total 32
    drwxr-xr-x 3 web17 client4 4096 2010-08-17 13:51 .
    drwxr-xr-x 4 web17 client4 4096 2010-08-17 13:51 ..
    drwxr-xr-x 2 web17 client4 4096 2010-08-17 13:51 cpanel
    -rw-r--r-- 1 web17 client4 1537 2010-08-17 13:51 customer.pl
    -rw-r--r-- 1 web17 client4 1525 2010-08-17 13:51 index.pl
    -rw-r--r-- 1 web17 client4 1532 2010-08-17 13:51 installer.pl
    -rw-r--r-- 1 web17 client4 1514 2010-08-17 13:51 public.pl
    -rw-r--r-- 1 web17 client4 3964 2010-08-17 13:51 rpc.pl
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Your cgi scripts are not executable. Please run:

    chmod +x /var/www/clients/client4/web17/web/otrs3/bin/cgi-bin/

    to make the scripts executable.
     

Share This Page