Re: apache_1.2b10/mod_fastcgi_2.0b1 problems
freeform (freeform@wired.com)
Tue, 20 May 1997 16:19:49 -0700 (PDT)
Date: Tue, 20 May 1997 16:19:49 -0700 (PDT)
From: freeform <freeform@wired.com>
To: Jonathan Roy <roy@atlantic.net>
Subject: Re: apache_1.2b10/mod_fastcgi_2.0b1 problems
In-Reply-To: <3.0.1.32.19970520162324.0068fd78@mail.atlantic.net>
Message-Id: <Pine.BSI.3.95.970520160702.23384C-100000@get.wired.com>
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}