From owner-freebsd-questions@FreeBSD.ORG Wed Nov 5 09:53:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09BB216A4CE for ; Wed, 5 Nov 2003 09:53:03 -0800 (PST) Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04B7F43FF2 for ; Wed, 5 Nov 2003 09:53:02 -0800 (PST) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (localhost [127.0.0.1]) by pemaquid.safeport.com (8.12.9/8.12.3) with ESMTP id hA5Hr0AT004177 for ; Wed, 5 Nov 2003 12:53:00 -0500 (EST) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost)hA5Hr0qh004174 for ; Wed, 5 Nov 2003 12:53:00 -0500 (EST) Date: Wed, 5 Nov 2003 12:53:00 -0500 (EST) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG In-Reply-To: <003501c3a3b8$c11ba430$f4f0a8c0@pcmedx.com> Message-ID: <20031105114500.Y19563@pemaquid.safeport.com> References: <20031105015317.B19563@pemaquid.safeport.com> <003501c3a3b8$c11ba430$f4f0a8c0@pcmedx.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: How to run php4 as CGI pgm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 17:53:03 -0000 Thanks I understand. The INSTALL script in my port seems to be written to mod-php. But I think I know or can find what to do. As a PHP noivce I have a more general question. I want to offer PHP to virtual hosting customers. Is there a place to find a discussion of the pros and cons of the CGI binary and mod-php. I had concluded from reading that the CGI binary and suExec was the best for that environment. On Wed, 5 Nov 2003, Mike Maltese wrote: > > I install in the following order: > > > > apache+mod_ssl-1.3.28+2.8.15_1 (with suExec) > > mysql-client-4.0.16 > > php4-cgi-4.3.4.r1 > > > > and followed the steps in INSTALL. This did not make libphp4.so. So I am not > > sure of the step to follow. Do I need to build php in apache also? > > www/php4-cgi doesn't make an Apache module, it makes a CGI binary installed > as /usr/local/bin/php. If you want the Apache module, you should use the > www/mod_php4 port. Otherwise, you will need to add the appropriate > directives to httpd.conf to use PHP in CGI fashion. Re-read INSTALLING and > take a look at the Apache documentation. > _____ Douglas Denault doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601