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

Re: [cobalt-users] cgiwrap problems on the Qube2



At 14/04/2000 17:46:29 BST, as I was going about my lawful occasions, I
observed Laurel Palmer <laurel@xxxxxxxxxxx> writing on a Bristol monitor:

> 
> I have been researching and trying to figure out why I cannot get cgi
> scripts to work properly on the Qube2. 
> 
> The error_log tells me:
> 
> [Fri Apr 14 11:13:14 2000] [warn] [client 192.168.192.12] handler "cgi-wrapper"
> not found for: /home/users/username/cgi-bin/test.cgi
> [Fri Apr 14 11:13:14 2000] [error] [client 192.168.192.12] Premature end
> of script headers: /usr/cgiwrap/cgiwrap

After several days of pulling out my hair, I finally found out a couple
of days ago that the ownership of the script is very important.  Don't
ask me why, but the script _must_ belong to the same group as the site
that is calling it.  Other than that, it sounds as though you've got
everything right.

So, if the the site www.xyz.com is site7, then www.xyz.com/cgi-bin/test.cgi
may have uid anyuser but must have gid site7.  If you uploaded the file
as admin then this may well not be the case.

I found this out because I was trying to set up a central cgi-bin under
/home/sites in order to both share scripts and keep them under my
control.  The first requirement is rather defeated by having to create
one copy of formmail, uniquely named and owned, for each virtual site.
The second is defeated by the fact that the server is set up to allow
scripts to be run from anywhere.  Ah well, you win some, you lose some.


Trust me, I'm a doctor
Catweasel <webthing@xxxxxxxxxxxxx>
http://www.catweasel.org/
http://www.enchantedspirit.net/

Bad Command! Bad, Bad Command! Sit! Staaaaay...