[cgiwrap-users] RE: CGIWrap (bug?) user group unsure
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2001-12-20 21:52:14
|
I read the cgiwrap list, there's no need to send to me personally. They work find with cgiwrap, it's something to do with your system or how you configured cgiwrap/etc. I routinely use backticks in cgiwrap run scripts without any problems. I don't have any good suggestions on what to try as I have never had this problem on any machine that I've tried it on. Running under cgiwrapd should give useful diagnostics if any error is happening. You can try outputting the contents of %ENV in each script as well. You might also try stracing the apache process and watching cgiwrap execute the script to see if some system call is failing when it tries to execute the date command. I'd bet you have some sort of memory limit or similar set that is preventing the fork, but without digging into it on your machine, I can't be sure. -- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Kyle [mailto:ky...@cc...] > Sent: Thursday, December 20, 2001 3:43 PM > To: Neulinger, Nathan > Subject: CGIWrap (bug?) user group unsure > Importance: High > > > Mr. Neulinger, > > I had to e-mail you personally, because I and the CGIWrap group were > unable to resolve this issue. I have tried to make this as brief as > possible. Here is my original posting plus some extra info: > > In my PERL scripts, I use commands like these commonly: > $hostname = `hostname`; > $dir = `pwd`; > $date = `date +%c`; > > All of these functions return null when run under cgiwrap, > but work fine > when cgiwrap is bypassed. > > 1) Why don't they work under CGIWrap? > 2) What can I do to get around this problem? > > I need these functions (and others). If it is okay for user "Kyle" to > do these functions, then why can't my script run them under CGIWrap as > user "Kyle"? > > Here's how I know CGIWrap causing the problem. If I run the > script from the command line it works. If I run it from http > via apache > via cgiwrap, the back ticks do not work (return null). If I > change the > virtual host in apache to be a regular old script (i.e. no cgiwrap), I > can run it just fine from http via apache. I'm running > cgiwrap 3.7.1 on > redhat 7.1 with apache 1.3.22. Does ANYONE have any ideas on > this? I'm > getting desperate here. > > Also, the log files look like this (first line returned null, > the second > returned the data correctly): > wfp86007 cgi-bin/path.cgi <NULL> 10.1.1.202 > <NULL> > ok > Thu Dec 20 13:55:10 2001 > > wfp86007 cgi-bin/path.cgi <NULL> 10.1.1.202 > <NULL> > ok > Thu Dec 20 14:11:23 2001 > > I put this *exact* script (below) in two of my virtual hosts. > I turned > CGIwrap > off for one and left it enabled on the other. Here are the two URLs: > http://www.glorianceramics.com/cgi-bin/ralph.cgi (cgiwrap off) > http://www.otbnetworks.com/cgi-bin/ralph.cgi (cgiwrap on) > > Both are unpublished sites being set up at the moment. Here is the > script: > #!/usr/bin/perl > # > > $date = `date`; chomp($date); > > print "Content-type:text/html\n\n"; > print <<EOP; > <html><head><title>$date</title></head> > <body bgcolor=ffffcc><br><font face=arial> > $date > <br></font></body></html> > EOP > > Here are the switches I used when building CGIWrap in case you think I > forgot one, or did one incorrectly: > > --with-local-contact-email=su...@ot... > --with-local-contact-phone=1- > 770-476-7322 --with-local-site-url=www.otbnetworks.com > --with-install-group=apac > he --with-cgi-dir=. --with-httpd-user=apache > --with-logging-file=/var/log/cgi.lo > g --with-setenv-path=/sbin:/usr/sbin:/usr/bin --with-rlimit-cpu=3600 > --with-inst > all-dir=/utils/cgi-bin > > Any help you can provide would be greatly appreciated!!!! :) > > -Kyle > |