Re: apache_1.2b10/mod_fastcgi_2.0b1 problems

Jonathan Roy (roy@atlantic.net)
Tue, 20 May 1997 22:00:29 -0400

Message-Id: <3.0.1.32.19970520220029.00cc44e8@mail.atlantic.net>
Date: Tue, 20 May 1997 22:00:29 -0400
To: freeform <freeform@wired.com>
From: Jonathan Roy <roy@atlantic.net>
Subject: Re: apache_1.2b10/mod_fastcgi_2.0b1 problems
In-Reply-To: <Pine.BSI.3.95.970520160702.23384C-100000@get.wired.com>


 The README for 2.0 lists a number of bug fixes. Has anyone applied these
fixes to 1.4.3? Does 1.4.3 include them all? Is anyone still working on
2.0? It does startup of fastcgi processes on demand, that's cool. Too bad
it sounds very beta still. :)

  Thanks,

-Jonathan

At 04:19 PM 5/20/97 -0700, freeform wrote:
>
>
>On Tue, 20 May 1997, Jonathan Roy wrote:
>
>> 
>>   We are using 1.4.3 (I think) with Apache 1.2b10. It had one compile error
>> from Sigfunc (or similar) being redeclared (it is now in Apache's conf.h),
>> but removing the second declartion let it compile fine.
>> 
>>   Where did you find mod_fastcgi_2.0b1? 1.4.3 is still the latest version
>> according to website, on http://www.fastcgi.com/servers/apache/
>> 
>the website is months out of date i think.
>check
>http://www.fastcgi.com/servers/apache/2.0/apache-fastcgi.tar.Z
>
>but i warn you,
>i had all sorts of problems with it.
>mostly random problems with any POST requests.
>
>
>but if you do go ahead and give it a try,
>you will need to make a few changes in mod_fastcgi.c
>to fix the permission problems on the /tmp directory.
>
>
>the problem is in the CreateDynamicDirAndMbox() function.
>
>you will want to make two additions.
>one after line 2144 and one after line 2190.
>
>2144 reads:
>if(mkdir(ipcDynamicDir, S_IRWXU | S_IRGRP | S_IROTH)<0) {
>
>add:
>chown(ipcDynamicDir, uid, gid);
>
>giving you:
>if(mkdir(ipcDynamicDir, S_IRWXU | S_IRGRP | S_IROTH)<0) {
>	chown(ipcDynamicDir, uid, gid);
>	if(errno==EEXIST) {
>		/* directory exists, check permissions and stat */
>		if(WS_Access(ipcDynamicDir, NULL, R_OK | W_OK | X_OK, uid, gid)) {
>			return
>			"Need read/write/exec permission for the \"dynamic\" dir";
>		}
>
>
>2190 reads:
>close(fd);
>
>add:
>chown(mbox, uid, gid);
>
>giving you:
>	/* create mbox */
>	if((fd=creat(mbox, S_IRUSR | S_IWUSR))<0) {
>		return
>		"Unable to create mbox file in dynamic subdirectory";
>	}
>	close(fd);
>	chown(mbox, uid, gid);
>	return NULL;
>
>
>the above changes worked for me
>and allowed httpd to atleast start up.
>but again,
>i warn you,
>this may cause all sorts of problems for you site,
>especially with scripts that process the POST request.
>
>
>good luck,
>{freeform - bianca.com}
>
>

--
Jonathan Roy - roy@idle.com -- Idle Communications, Inc.
Mail rhoefer@cdmag.com to advertise with the Games Domain! 
http://www.gamesdomain.com/ or http://www.gamesdomain.co.uk/