How to run php4 as CGI pgm

doug at doug at
Wed Nov 5 09:53:03 PST 2003

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 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 at
Voice: 301-469-8766
  Fax: 301-469-0601

More information about the freebsd-questions mailing list