From owner-freebsd-questions Wed Apr 1 10:27:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21636 for freebsd-questions-outgoing; Wed, 1 Apr 1998 10:27:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from forest.fscinternet.com ([199.0.24.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21617 for ; Wed, 1 Apr 1998 10:27:25 -0800 (PST) (envelope-from rreiner@forest.fscinternet.com) Received: from eclipse.fscinternet.com (eclipse.fscinternet.com [10.1.1.100]) by forest.fscinternet.com (8.8.5/8.8.5) with SMTP id NAA25678; Wed, 1 Apr 1998 13:17:44 -0500 (EST) Message-Id: <199804011817.NAA25678@forest.fscinternet.com> Comments: Authenticated sender is From: "Richard Reiner" Organization: FSC Internet To: php-list@php.iquest.net, freebsd-questions@FreeBSD.ORG, fastcgi-developers@openmarket.com Date: Wed, 1 Apr 1998 13:27:11 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Problems with Apache 1.26 / mod_fastcgi 1.43 / fastcgi devkit 1. Reply-to: rreiner@fscinternet.com In-reply-to: X-mailer: Pegasus Mail for Win32 (v2.54) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Using Apache 1.26 / mod_fastcgi 1.43 / fastcgi devkit 1.51 on FreeBSD 2.2.6. That's the current (non-Beta) verson of everything, I believe. Can't get FastCGI apps to work right (fully detailed description of the problem is below). I *do* have FastCGI working perfectly on an older box, using older versions of everything, and I'm not configuring the enw ones differently. Any ideas wll be much appreciated. This is a priority, so please email direct as well as to the list. Many thanks, and apologies to anyone who receives this through more than one list. Richard Problem details are as follows: 1. I try to use the old-style "static" fastcgi apps. I insert the following in httpd.conf: SetHandler fastcgi-script AppClass /var/www/fcgi-bin/tiny-fcgi.fcgi -processes 2 The result is that Apache fails to start, with the error AppClass: could not create IPC socket 2. So I try the new "dynamic" style. Instead of the above, I insert just the following in httpd.conf: SetHandler fastcgi-script Apache now starts, but the tiny-fcgi.fcgi fails to run: URLs calling it return no response. 3. OK, so I discover that in the FastCGI IPC directory the file dynamic/mbox is being created as follows: -rw------- 1 root www 0 Apr 1 13:21 /var/www/ipc/dynamic/mbox No good, since Apache changes its uid to run as the user "www". So I chown it to be as follows: -rw------- 1 www www 0 Apr 1 13:21 /var/www/ipc/dynamic/mbox Now tiny-fcgi.fcgi works fine; but if it dies (which I simulate by killing it) it doesn't restart, and we're back to returning no response to URLs that call it. Help?! -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Richard Reiner, Ph.D. . rreiner@fscinternet.com ~~~~~~~~~~~~~~~~~~~~~ . http://www.fscinternet.com FSC Internet . +1 416 921-4280 . . . . . . . . . . . . . . . . . . . . . . . . . . . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message