Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 2003 12:53:00 -0500 (EST)
From:      doug@safeport.com
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to run php4 as CGI pgm
Message-ID:  <20031105114500.Y19563@pemaquid.safeport.com>
In-Reply-To: <003501c3a3b8$c11ba430$f4f0a8c0@pcmedx.com>
References:  <20031105015317.B19563@pemaquid.safeport.com> <003501c3a3b8$c11ba430$f4f0a8c0@pcmedx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031105114500.Y19563>