installing otrs with ispconfig on ubuntu (error 500)

Discussion in 'Installation/Configuration' started by blackflag, Jun 21, 2006.

  1. blackflag

    blackflag New Member

    Hello all,

    Im trying to install otrs on ubuntu dapper. Ispconfig is installed. But when I go to domain.tld/otrs/installer.pl I get the apache2 error 500.

    There is nothing in apache2 error.log

    Can someone help?

    stefan
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig does not configure websites to run .pl files with mod_perl. You might have to add some additional directives in the apache directives window of the website.
     
  3. blackflag

    blackflag New Member

    what kind of derectives should I use ?
    And Im wondering about this, cause I installed another Server with debian 3.1, there are not additional derectives necessary. What is the difference? Ubuntu is debian based.

    tia
    stefan
     
    Last edited: Jun 22, 2006
  4. brainz

    brainz Member

    Also till correct me if i am wrong here.... ispconfig does not use the apache server that comes native to the linux distribution either ????

    Which means that the .pl file maybe setup to configure the native apache server and not ispconfigs apache server and this is why you are suggesting they put the apache directives in the additional directive of the ispconfig web for that domain ???


    regards
    brainz ;):cool:
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses the native apache webserver of the linux distribution to server the webpages of the domains you created in ISPConfig. The apache webserver that comes with ISPConfig is only used to serve the controlpanel on port 81.

    If I understood blackflags post correct, he wants to install OTRS in a website and not on port 81, but i might got that wrong.

    By the way, thank you for answering so many posts :)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you installed mod_perl and enabled it in the vhost where you installed OTRS.
     
  7. blackflag

    blackflag New Member

    HTML:
    Have you installed mod_perl and enabled it in the vhost where you installed OTRS
    yes, mod_perl is enabled. I thought its only necessary to enable perl in apache2? Im wrong here?
    How should I enable it for the vhost?

    tia
    stefan
     
  8. erk

    erk New Member HowtoForge Supporter

    I have experienced the same problem with otrs on Debian 3.1. I have not had time to really look into the problem yet.
    The problem starts when trying to run installer.pl. When you save all settings in stage 2 of the install the config file in /etc/otrs/Kernel/Config.pm is not saved properly. There is a config file with default values but when you run installer.pl you end up with an empty config file (0 bytes) and a 500 error that says that the config file returned nu value (duh, it's empty...). :(
    I tested it with the Debian package for otrs 1.X and with a tarball install of the latest 2.04, same problem with both. I will keep you updated on the progress if noone else figure out what is causing it. I have not been messing with the apache config yet to see if that has anything to do with it. Mod_perl is enabled for the webserver (apache2) which is sort of obvious since I can run through two steps of the install process in installer.pl before it goes wrong.

    Blackflag, could you please check if your Config.pm is wiped when you get the 500 error too.

    //Erk
     
  9. blackflag

    blackflag New Member

    No, its not!
    okay, I tried it:

    disable cgi in web
    I do a soft link from cgi-bin of the vhost to /usr/share/otrs
    in the apache derectives I add:
    "ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ "
    restart apache2

    but its not working. error 500.
    What is wrong? Can someone help?

    tia stefan
     
  10. falko

    falko Super Moderator Howtoforge Staff

    What's in Apache's error log when you get a 500 error?
    Can you post the vhost configuration from that web site (it's in Vhosts_ispconfig.conf)?
     
  11. blackflag

    blackflag New Member

    Thats what Im wondering about. The error 500 is not logged in apache2 error.log!

    Here it is:

    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.0.4:80
    <VirtualHost 192.168.0.4:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.domain.tld:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.4:80>
    RewriteEngine on     
    RewriteCond %{SERVER_PORT} !443  
    RewriteRule (.*/egroupware) https://domain.tld/egroupware    
    SuexecUserGroup webmaster web1
    ServerName www.domain.tld:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias domain.tld
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    </VirtualHost>
    #
    <IfModule mod_ssl.c>
    <VirtualHost 192.168.0.4:443>
    RewriteEngine on     
    RewriteCond %{SERVER_PORT} !443  
    RewriteRule (.*/egroupware) https://domain.tld/egroupware    
    SuexecUserGroup webmaster web1
    ServerName www.domain.tld:443
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias domain.tld
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    SSLEngine on
    SSLCertificateFile /var/www/web1/ssl/www.domain.tld.crt
    SSLCertificateKeyFile /var/www/web1/ssl/www.domain.tld.key
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    </VirtualHost>
    </IfModule>
    #
    #
    
    thanks, for looking this!

    tia
    stefan
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Is it maybe logged in ssl_error.log or somewhere else?
     
  13. blackflag

    blackflag New Member

    I can not find a log entry anywhere!:confused:
    What shall I do?

    stefan
     
  14. tosser

    tosser New Member

    Code:
    <VirtualHost [COLOR="Red"]123.456.78.9[/COLOR]:80>
    [COLOR="Red"]#SuexecUserGroup otrs_user otrs_group
    ServerName www.your_domain:80
    ServerAdmin webmaster@your_domain[/COLOR]
    DocumentRoot /usr/share/otrs/bin/cgi-bin/
    <Directory "/usr/share/otrs/bin/cgi-bin/">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>
    [COLOR="#ff0000"]ServerAlias any_other_domain[/COLOR]
    DirectoryIndex index.html index.htm index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    
    you must chown the files in /usr/share/otrs/cgi-bin for suexec or disable suexec. and correct the url. i marked it red, what you musst edit.
    this is a vhost for otrs with debian sarge and apache2.

    then should it run without any errors.
     
  15. erk

    erk New Member HowtoForge Supporter

    Found the problem with my setup.
    The config file /usr/share/otrs/Kernel/Config.pm was set as a softlink to /etc/otrs/Kernel/Config.pm. Remove the link and copy the file from /etc.... to /usr/share/..... solved the problem.
    That was for Debian 3.1, Apache2 and OTRS 2.

    //Erk
     
  16. blackflag

    blackflag New Member

    this is not solving the problem!
    I get the error 500.
    but I found a log in:
    /var/www/web1/log/error.log

    Code:
    Thu Jun 29 15:28:37 2006] [error] [client 123.123.123.1xx] Premature end of script headers: index.pl
    Can not find a solution in google.
    Can someone help?

    tia
    stefan
     
  17. erk

    erk New Member HowtoForge Supporter

    Is this really the full error message in error.log?
    Did you successully install OTRS since you are accessing index.pl?

    //Erk
     
  18. blackflag

    blackflag New Member

    Its the same. browsing to index.pl or installer.pl -> error500
    someonme from otrs mailinglist has installed otrs on ubuntu without ispconfig.
    ans he said that is working. So it must me an ispconfig issue!

    what is to do?
    can someone help?

    tia
    stefan
     
  19. tosser

    tosser New Member

    work any other perl scipts like a "hello world" script?

    if this you vhost config of ispconfig?:
    Code:
    NameVirtualHost 192.168.0.4:80
    <VirtualHost 192.168.0.4:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.domain.tld:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.4:80>
    RewriteEngine on     
    RewriteCond %{SERVER_PORT} !443  
    RewriteRule (.*/egroupware) https://domain.tld/egroupware    
    SuexecUserGroup webmaster web1
    ServerName www.domain.tld:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias domain.tld
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    </VirtualHost>
    #
    <IfModule mod_ssl.c>
    <VirtualHost 192.168.0.4:443>
    RewriteEngine on     
    RewriteCond %{SERVER_PORT} !443  
    RewriteRule (.*/egroupware) https://domain.tld/egroupware    
    SuexecUserGroup webmaster web1
    ServerName www.domain.tld:443
    ServerAdmin [email protected]
    DocumentRoot /var/www/web1/web
    ServerAlias domain.tld
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
    AddType text/vnd.wap.wml .wml
    AddType text/vnd.wap.wmlscript .ws .wmlscript
    AddType image/vnd.wap.wbmp .wbmp
    SSLEngine on
    SSLCertificateFile /var/www/web1/ssl/www.domain.tld.crt
    SSLCertificateKeyFile /var/www/web1/ssl/www.domain.tld.key
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    </VirtualHost>
    </IfModule>
    #
    there aren't any cgi paramters...
     
    Last edited: Jun 29, 2006
  20. falko

    falko Super Moderator Howtoforge Staff

Share This Page