Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2002 16:27:19 +0100
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "MET" <met@uberstats.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: PHP and Apache
Message-ID:  <NCBBIAMNAKDKFJIIGNPKOEBPJAAA.barry.byrne@wbtsystems.com>
In-Reply-To: <000601c23326$11a49dd0$6801a8c0@SURVIVAL>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew:

The difference between 2 & 3 is that in 2, the module is compiled as a
module separate from the apache server, and is loaded dynamically at startup
of the httpd process if specified in the config file. With 3, the module is
compiled directly into the httpd binary.

There may be a slight speed advantage (mostly at startup) of compiling the
module into httpd, but IMHO, the dynamic module is the way to go. It's
certainly a lot easier whenever it comes to upgrading either the module or
apache, especially as you start using additional modules. Upgrading apache
when you have a whole bunch of extra modules to be compiled in is a pain. If
all your modules are dynamically loaded, it's simple.

Cheers,

Barry

--
Barry Byrne, IT Manager,
WBT Systems, Block 2, Harcourt Centre
Harcourt Street, Dublin 2, Ireland

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of MET
Sent: 24 July 2002 16:23
To: freebsd-questions@FreeBSD.ORG
Subject: PHP and Apache


First off thanks to all those who helped me out, I've finally gotten
everything up and running.  In doing so however I've come across 3 different
options for making PHP work w/ apache.

    1) PHP as a CGI through Apache

    2) PHP as a shared Apache Module ( --with-apxs=[FILE] )

    3) PHP as an Apache Module ( --with-apache=[FILE] )


Basically, I'm wondering what's the big difference between the second two,
and which is better.


/**************************************************************

      Matthew Metnetsky

      met@uberstats.com

**************************************************************/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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