Download index.pl at login

Moderator: crythias

Locked
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

Download index.pl at login

Post by bradykdavidson »

I have used OTRS for years but just recently gained a position where I am administrating it. I am having an issue that I don't quite know how to resolve. When I try to login to OTRS I get a download pop-up for the index.pl file. It doesn't matter if I download this file or if I cancel the download either way I am unable to login. Any help on this would be appreciated.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Download index.pl at login

Post by Wolfgangf »

look at the webservers logfile
eg /var/log/apache2/error_log (depending on Linux distribution)
for any error messages; I asume there ist something wrong with apache2_perl_startup.pl

BR
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

Re: Download index.pl at login

Post by bradykdavidson »

When I try to login and I tail the /var/log/apache2/error_log I get "[Fri Oct 29 08:27:17 2010] [error] slurp_filename('/srv/www/htdocs/otrs') / opening: (2) No such file or directory at /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi/ModPerl/RegistryCooker.pm line 541". I am not sure if a file is missing or what would cause the error. Does this give you any ideas as to how I can get it fixed?
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

Re: Download index.pl at login

Post by bradykdavidson »

Trying to troubleshoot this I added LoadModule perl_module modules/mod_perl.so to httpd.conf and tried "apache2ct restart" and I got this error "httpd2: Syntax error on line 104 of /etc/apache2/httpd.conf: Cannot load /srv/www/modules/mod_perl.so into server: /srv/www/modules/mod_perl.so: cannot open shared object file: No such file or directory".
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Download index.pl at login

Post by Wolfgangf »

please try to (re)install mod_perl and then check the documentation about how to activate mod_perl if you have this in mind
http://doc.otrs.org/2.4/en/html/x2797.html
hope this helps
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

Re: Download index.pl at login

Post by bradykdavidson »

I am very apprehensive to try and re-install perl. OTRS is running on SLES and when I access the yast2 via the command line to try and remove to re-install apache2-mod_perl apache2-mod_perl-dev I get an error saying that OTRS depends on it. The only option it gives me is to uninstall OTRS along with apache2-mod_perl. I spoke with the person that originally implemented this and they said it is most likely Apache not handling the perl extension correctly. Thanks.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Download index.pl at login

Post by Wolfgangf »

I would not remove but force install of mod_perl in this case

the other thing is: check /etc/apache2/conf.d/otrs.conf
this should be the section for mod_perl

Code: Select all

<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>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml
        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>
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

Re: Download index.pl at login

Post by bradykdavidson »

It has been some time since there was a reply to this. I attempted the last recommendation by using YAST to "Update unconditionally" for mod_perl. When attempting to login I am still getting a download pop-up for index.pl. I have included the otrs.conf from /etc/apache2/conf.d below.

Code: Select all

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd-new.include.conf,v 1.5 2008/11/10 11:08:55 ub 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>
	AddOutputFilterByType DEFLATE text/html text/plain text/xml
        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>

# Added by Brady to try and fix otrs:
#
#    <Location /otrs>
#        AddOutputFilterByType DEFLATE text/html text/plain text/xml
#        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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Download index.pl at login

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
bradykdavidson
Znuny newbie
Posts: 11
Joined: 29 Oct 2010, 15:20
Znuny Version: 3.0.22
Real Name: Brady Davidson
Location: Texas

[SOLVED] Download index.pl at login

Post by bradykdavidson »

This issue isn't resolved but I attempted to make one last effort before closing this. I have since installed a new instance of OTRS that we have been using for a few years now.
Locked