[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] cgiwrap problem running cgi script



----- Original Message -----
From: "Tom Cameron"
> Saturday, 23 November 2002 5:29 AM  Ryan Howe:
> => I have had the same problem on a Raq 3 and have been completely
> => unable to
> => figure it out.  I know the script (perl) is fine because it
> => servers up with
> => no problem on my Redhat workstation that I use for development
> => before moving
> => it to a Raq.  If you find a solution I will be just as happy as
> => you.  I have
> => given up trying out of frustration.
> =>
> => Ryan
>
> Ive just found out you can call cgiwarpd like this:
> http://domain.com/cgiwrapDir/cgiwrapd/test.cgi
> on the raq machines.
>
> But it tells me nothing at all, this is what I get:
> """
> Initializing Logging
> Redirecting STDERR to STDOUT
>
> Cobalt RaQ virtual site CGI wrapper
>
> Setting SIGXCPU to default behaviour
>
> Environment Variables:
>      QUERY_STRING: ''
>       SCRIPT_NAME: '/cgiwrapDir/cgiwrapd'
>   SCRIPT_FILENAME: '/usr/cgiwrap/cgiwrapd'
> """
>
> Is is as if cgiwrap is not getting the script at all. I am wondering if it
> is something to do with the apache configuration the the AddHandler setup.
>
> Tom
>

Hi,

I believe you said that you have other scripts already working on this
server ( if not, bin this now ;-) )
I would make sure that there are no 'hidden" returns or new lines in the
script, or if possible, re-write the script in a new document.

I found that some text editors, especially in windows, can mess scripts up,
and you cannot see a problem, but when the identical script is copied,line
by line into a new document, and then run, it suddenly works fine.

Obviously, don't just copy the whole thing across, or you will take the cr*p
with you to the new version.

This may be easier to try than dissecting cgiwrap, especially if you know
the script works, and other scripts function correctly on the raq.

This may not be possible if the script is huge of course !

Regards

Alan