ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Problems with Perl/MQ and Apache on RedHat 9.

Post new topic  Reply to topic
 Problems with Perl/MQ and Apache on RedHat 9. « View previous topic :: View next topic » 
Author Message
mstrello
PostPosted: Mon Mar 15, 2004 7:39 am    Post subject: Problems with Perl/MQ and Apache on RedHat 9. Reply with quote

Newbie

Joined: 10 Apr 2002
Posts: 6
Location: Chile

Hi, I'm trying to continue with an old program, a monitoring tool written in Perl/MQ (the CPAN MQSeries module), but I'm having problems running this scripts as CGI programs. Formerly, I was using Redhat 8 and MQSeries 5.2. Now, I have Redhat 9 and MQSeries 5.3.

The problem is that the LD_ASSUME_KERNEL=2.4.1 env variable must be set in order that any MQseries Perl script run (at least in RedHat 9). But, CGI scripts run as apache/apache and I don't know how to do for setting this environment variable.

If I run the CGI script from the command line I must set LD_ASSUME_KERNEL=2.4.1 in order to run the script. If I don't set that variable I get the Reason Code 2012 (environment problem).

I'm thinking in a couple of solutions (in order of desperation):

1. Use suEXEC, for run the CGI's as other user (that have LD_ASSUME_KERNEL in their environment).

2. Replace the perl executable for a shell script (that set the variable and call to perl).

3. Change the User/Group Apache directives to mqm/mqm.

3. Change my distribution

Any ideas?

Regards and sorry for my horrible english,
--
Mauricio.
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Tue Mar 16, 2004 10:01 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

This will explain it all:
http://httpd.apache.org/docs/env.html
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Problems with Perl/MQ and Apache on RedHat 9.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.