
Hey folks, I'm running CentOS 5.3, and with "yum install otrs" I pick up : otrs-2.1.7-2.el5 I restart my Apache web server and try to go to /otrs/ on this machine, and it tells me Permission Denied. No big deal, I go into /etc/httpd/conf.d/otrs.conf and set "Allow from all" for the moment. Restart my Apache server and I'm in business. OK, great, now I can actually run /otrs/installer.pl. It goes through the installer just fine and then takes me up to the part where I'm finished and I'm at the initial login screen. Here I enter a UN/PW and when I hit the button to log in, it tries to download index.pl instead of run it! I don't get it because the installer ran just fine. My apache is pretty vanilla from Yum for this release of CentOS. I have mod_perl installed and it creates a file /etc/httpd/conf.d/perl.conf which I renamed to /etc/httpd/conf.d/a-perl.conf to make sure it gets read first (alphabetical). So all pretty vanilla stuff here. I also uncommented all of these lines from that perl.conf and restarted apache, but same problem. The first one was already uncommented from the RPM LoadModule perl_module modules/mod_perl.so AddHandler mod_perl .pl AddType text/html .pl DirectoryIndex index.pl Why does the installer run fine when it is .pl files, but the the system itself does not run? It tries to download the files. thanks, -Alan -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

Anyone out there?
On Tue, Jun 16, 2009 at 1:08 PM, Alan McKay
Hey folks,
I'm running CentOS 5.3, and with "yum install otrs" I pick up :
otrs-2.1.7-2.el5
I restart my Apache web server and try to go to /otrs/ on this machine, and it tells me Permission Denied. No big deal, I go into /etc/httpd/conf.d/otrs.conf and set "Allow from all" for the moment. Restart my Apache server and I'm in business.
OK, great, now I can actually run /otrs/installer.pl. It goes through the installer just fine and then takes me up to the part where I'm finished and I'm at the initial login screen. Here I enter a UN/PW and when I hit the button to log in, it tries to download index.pl instead of run it!
I don't get it because the installer ran just fine. My apache is pretty vanilla from Yum for this release of CentOS. I have mod_perl installed and it creates a file /etc/httpd/conf.d/perl.conf which I renamed to /etc/httpd/conf.d/a-perl.conf to make sure it gets read first (alphabetical). So all pretty vanilla stuff here.
I also uncommented all of these lines from that perl.conf and restarted apache, but same problem. The first one was already uncommented from the RPM
LoadModule perl_module modules/mod_perl.so AddHandler mod_perl .pl AddType text/html .pl DirectoryIndex index.pl
Why does the installer run fine when it is .pl files, but the the system itself does not run? It tries to download the files.
thanks, -Alan
--
“Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"
-- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

File permissions / ownership all ok?
If yes, create a Perl "Hello world" and put that in same directory,
try to access that and see if it runs or offers download ...
On 16/06/2009, Alan McKay
Hey folks,
I'm running CentOS 5.3, and with "yum install otrs" I pick up :
otrs-2.1.7-2.el5
I restart my Apache web server and try to go to /otrs/ on this machine, and it tells me Permission Denied. No big deal, I go into /etc/httpd/conf.d/otrs.conf and set "Allow from all" for the moment. Restart my Apache server and I'm in business.
OK, great, now I can actually run /otrs/installer.pl. It goes through the installer just fine and then takes me up to the part where I'm finished and I'm at the initial login screen. Here I enter a UN/PW and when I hit the button to log in, it tries to download index.pl instead of run it!
I don't get it because the installer ran just fine. My apache is pretty vanilla from Yum for this release of CentOS. I have mod_perl installed and it creates a file /etc/httpd/conf.d/perl.conf which I renamed to /etc/httpd/conf.d/a-perl.conf to make sure it gets read first (alphabetical). So all pretty vanilla stuff here.
I also uncommented all of these lines from that perl.conf and restarted apache, but same problem. The first one was already uncommented from the RPM
LoadModule perl_module modules/mod_perl.so AddHandler mod_perl .pl AddType text/html .pl DirectoryIndex index.pl
Why does the installer run fine when it is .pl files, but the the system itself does not run? It tries to download the files.
thanks, -Alan
--
“Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Maybe also check your logs to see if any errors are being reported. We have RHEL and are using the 2.3.4 rpm from the OTRS ftp site. I believe 2.1.7 is a couple of years old though I can't say if that's contributing to your issue. Andy Billington wrote:
File permissions / ownership all ok? If yes, create a Perl "Hello world" and put that in same directory, try to access that and see if it runs or offers download ...
On 16/06/2009, Alan McKay
wrote: Hey folks,
I'm running CentOS 5.3, and with "yum install otrs" I pick up :
otrs-2.1.7-2.el5
I restart my Apache web server and try to go to /otrs/ on this machine, and it tells me Permission Denied. No big deal, I go into /etc/httpd/conf.d/otrs.conf and set "Allow from all" for the moment. Restart my Apache server and I'm in business.
OK, great, now I can actually run /otrs/installer.pl. It goes through the installer just fine and then takes me up to the part where I'm finished and I'm at the initial login screen. Here I enter a UN/PW and when I hit the button to log in, it tries to download index.pl instead of run it!
I don't get it because the installer ran just fine. My apache is pretty vanilla from Yum for this release of CentOS. I have mod_perl installed and it creates a file /etc/httpd/conf.d/perl.conf which I renamed to /etc/httpd/conf.d/a-perl.conf to make sure it gets read first (alphabetical). So all pretty vanilla stuff here.
I also uncommented all of these lines from that perl.conf and restarted apache, but same problem. The first one was already uncommented from the RPM
LoadModule perl_module modules/mod_perl.so AddHandler mod_perl .pl AddType text/html .pl DirectoryIndex index.pl
Why does the installer run fine when it is .pl files, but the the system itself does not run? It tries to download the files.
thanks, -Alan
--
“Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

We have RHEL and are using the 2.3.4 rpm from the OTRS ftp site. I believe 2.1.7 is a couple of years old though I can't say if that's contributing to your issue.
Hmmm, I guess I should have checked that first but if it is that old I would guess it is time to stop wasting my time and just go search out the newest thanks, if I have any issues with the new version I will check in -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

On Wed, Jun 17, 2009 at 1:50 PM, Andy
Billington
File permissions / ownership all ok?
Looks good to me : [root@alan otrs]# ls -al `find . -name \*.pl` -rwxr-xr-x 1 apache root 1515 Aug 26 2006 ./bin/cgi-bin/customer.pl -rwxr-xr-x 1 apache root 1503 Aug 26 2006 ./bin/cgi-bin/index.pl -rwxr-xr-x 1 apache root 4323 Nov 2 2006 ./bin/cgi-bin/installer.pl -rwxr-xr-x 1 apache root 1487 Nov 2 2006 ./bin/cgi-bin/public.pl -rwxr-xr-x 1 apache root 3497 Apr 9 2008 ./bin/cgi-bin/rpc.pl -rwxr-xr-x 1 apache root 2265 Sep 25 2006 ./bin/CheckDB.pl -rwxr-xr-x 1 apache root 3782 Nov 2 2006 ./bin/CheckSum.pl -rwxr-xr-x 1 apache root 2429 Sep 25 2006 ./bin/CleanUp.pl -rwxr-xr-x 1 apache root 1662 Nov 2 2006 ./bin/CryptPassword.pl -rwxr-xr-x 1 apache root 4226 Nov 2 2006 ./bin/DeleteSessionIDs.pl -rwxr-xr-x 1 apache root 6446 Nov 2 2006 ./bin/GenericAgent.pl -rwxr-xr-x 1 apache root 12449 Nov 10 2006 ./bin/mkStats.pl -rwxr-xr-x 1 apache root 15908 Feb 6 2007 ./bin/opm.pl -rwxr-xr-x 1 apache root 7427 Nov 17 2006 ./bin/PendingJobs.pl -rwxr-xr-x 1 apache root 1574 Aug 26 2006 ./bin/PostMasterClient.pl -rwxr-xr-x 1 apache root 4320 Nov 2 2006 ./bin/PostMasterDaemon.pl -rwxr-xr-x 1 apache root 3952 Nov 2 2006 ./bin/PostMaster.pl -rwxr-xr-x 1 apache root 7743 Nov 2 2006 ./bin/PostMasterPOP3.pl -rwxr-xr-x 1 apache root 1990 Nov 2 2006 ./bin/RebuildTicketIndex.pl -rw-r--r-- 1 apache root 8366 Dec 7 2006 ./bin/StatsExportToOPM.pl -rwxr-xr-x 1 apache root 2361 Mar 12 2007 ./bin/UnitTest.pl -rwxr-xr-x 1 apache root 5024 Nov 2 2006 ./bin/UnlockTickets.pl -rwxr-xr-x 1 apache root 3976 Nov 26 2006 ./bin/xml2sql.pl -rwxr-xr-x 1 apache root 3663 Nov 2 2006 ./bin/XMLMaster.pl -rwxr-xr-x 1 apache root 6183 Apr 9 2008 ./scripts/apache2-perl-startup.pl -rwxr-xr-x 1 apache root 6772 Oct 5 2006 ./scripts/auto_build/xml2docbook.pl -rwxr-xr-x 1 apache root 7211 Dec 7 2006 ./scripts/backup.pl -rwxr-xr-x 1 apache root 2283 Nov 2 2006 ./scripts/login.pl -rwxr-xr-x 1 apache root 5922 Mar 11 2007 ./scripts/restore.pl -rwxr-xr-x 1 apache root 1619 Aug 29 2006 ./scripts/rpc-examlple.pl -rwxr-xr-x 1 apache root 3479 Oct 3 2006 ./scripts/syncuser_csv2otrs.pl -rwxr-xr-x 1 apache root 2805 Oct 3 2006 ./scripts/test/CustomerBackend.pl -rwxr-xr-x 1 apache root 2065 Oct 3 2006 ./scripts/test/CustomerUserAuth.pl -rwxr-xr-x 1 apache root 2549 Feb 12 2007 ./scripts/test/TicketHistoryState.pl -rwxr-xr-x 1 apache root 1999 Nov 2 2006 ./scripts/test/UserAuth.pl -rwxr-xr-x 1 apache root 1360 Oct 3 2006 ./scripts/tools/base64.pl -rwxr-xr-x 1 apache root 2288 Oct 3 2006 ./scripts/tools/charset-convert.pl -rwxr-xr-x 1 apache root 5237 Oct 31 2006 ./scripts/tools/compress-mail.pl -rwxr-xr-x 1 apache root 5323 Nov 2 2006 ./scripts/tools/sync-ldap2db.pl -rwxr-xr-x 1 apache root 3475 Oct 3 2006 ./scripts/tools/xml2html.pl -rwxr-xr-x 1 apache root 6483 Nov 2 2006 ./scripts/webform.pl You have new mail in /var/spool/mail/root [root@alan otrs]# ls -al total 44 drwxr-xr-x 6 apache root 4096 Jun 16 09:35 . drwxr-xr-x 10 root root 4096 Jun 9 07:09 .. drwxr-xr-x 4 apache root 4096 Jun 16 09:35 bin -rw-rw---- 1 otrs apache 994 Apr 9 2008 .fetchmailrc drwxr-xr-x 8 apache root 4096 Jun 16 09:35 Kernel -rw-rw---- 1 otrs apache 1754 Apr 9 2008 .mailfilter -rw-rw---- 1 otrs apache 2008 Apr 9 2008 .procmailrc -rw-r--r-- 1 apache root 105 Apr 9 2008 RELEASE drwxr-xr-x 6 apache root 4096 Jun 16 09:35 scripts drwxr-xr-x 10 otrs apache 4096 Jun 16 09:35 var [root@alan otrs]# pwd /var/www/otrs
If yes, create a Perl "Hello world" and put that in same directory, try to access that and see if it runs or offers download ...
It appears to run but produces no output. Though I'm not sure really how to do this in Perl. I do view, pagesource and there is nothing I put it in the same directory as index.pl and installer.pl ---snip--- #!/usr/bin/perl print "<HTML><BODY>hello world</BODY></HTML>"; ---snip--- -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

Here are the entries in my apache access_log Note the first one for index.pl would be when I just load the page. I then input my UN/PW and hit the login button, I assume that is what is causing the 2nd entry 192.168.0.22 - - [17/Jun/2009:14:22:01 -0400] "GET /otrs/hello.pl HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10" 192.168.0.22 - - [17/Jun/2009:14:24:20 -0400] "GET /otrs/index.pl HTTP/1.1" 200 10653 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10" 192.168.0.22 - - [17/Jun/2009:14:24:43 -0400] "POST /otrs/index.pl HTTP/1.1" 302 87 "http://192.168.0.22/otrs/index.pl" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10" Aha! But this appears to be my problem : [Wed Jun 17 14:24:44 2009] -e: Attempt to free unreferenced scalar: SV 0xafe2e04, Perl interpreter: 0x90e2d00 at /var/www/otrs//Kernel/System/Config.pm line 1308. Could it be that yum added my otrs RPM but did not add the list of perl dependencies? Perhaps I will have to go back and manually do that -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"

In the bin directory there's an otrs.checkModules script. Try running that to see if otrs has what it needs. Alan McKay wrote:
Here are the entries in my apache access_log
Note the first one for index.pl would be when I just load the page. I then input my UN/PW and hit the login button, I assume that is what is causing the 2nd entry
192.168.0.22 - - [17/Jun/2009:14:22:01 -0400] "GET /otrs/hello.pl HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10" 192.168.0.22 - - [17/Jun/2009:14:24:20 -0400] "GET /otrs/index.pl HTTP/1.1" 200 10653 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10" 192.168.0.22 - - [17/Jun/2009:14:24:43 -0400] "POST /otrs/index.pl HTTP/1.1" 302 87 "http://192.168.0.22/otrs/index.pl" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10"
Aha! But this appears to be my problem : [Wed Jun 17 14:24:44 2009] -e: Attempt to free unreferenced scalar: SV 0xafe2e04, Perl interpreter: 0x90e2d00 at /var/www/otrs//Kernel/System/Config.pm line 1308.
Could it be that yum added my otrs RPM but did not add the list of perl dependencies?
Perhaps I will have to go back and manually do that

On Wed, Jun 17, 2009 at 2:40 PM, Terrill Yuhas
In the bin directory there's an otrs.checkModules script. Try running that to see if otrs has what it needs.
Thanks - it has everything I'm thinking it has to be this error message in the apache log, that comes up whenever I try to load the index.pl [Wed Jun 17 15:01:51 2009] -e: Attempt to free unreferenced scalar: SV 0xb2a1264, Perl interpreter: 0x8fb5d00 at /var/www/otrs//Kernel/System/Config.pm line 1308. -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"
participants (3)
-
Alan McKay
-
Andy Billington
-
Terrill Yuhas