Re: php running as module or cgi?
| From: | Richard Quadling | Date: | Thu, 11 Nov 2010 10:59:44 +0000 |
| Subject: | Re: php running as module or cgi? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309446@lists.php.net to get a copy of this message | ||
On 11 November 2010 00:46, Al <news@ridersite.org> wrote:
> Briefly, what are the trade offs on a typical shared host?
>
> I've done a little research and can't seem to find anything outstanding
> either way.
>
> Seems like as an Apache module is faster. This argument makes sense.
>
> CGI is more secure, this argument doesn't seem too persuasive to me. Maybe
> I'm missing something.
>
> Thanks....
I used to run PHP in ISAPI (on Windows with Sambar Server). Probably
the 1 big thing at the time was database connection persistence.
But that was a LONG time ago.
Everything is a LOT faster and now I use IIS+FastCGI+PHP and I no
longer use DB connection persistence as there were issues when
accessing multiple databases using the dbselect style functions.
I don't know if Apache supports fast cgi (I'd be surprised if it didn't).
But in a security vs speed contest, security should always win.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY