By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,965 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,965 IT Pros & Developers. It's quick & easy.

Is fast-cgi a drop-in replacement for mod_php?

P: n/a
Hello group,

If I switched from mod_php to fast-cgi, would I need to make any
changes to my php source?

Also, will something like APC still be useful?

Will my database connections suddenly become persistent?

If I had static data in my script, will it persist when that same
script is called again?

Essentially, my question is: is fast-cgi a drop-in replacement for
mod_php?

Thank you for your time.

E Wilson
Feb 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Evil Son wrote:
Hello group,

If I switched from mod_php to fast-cgi, would I need to make any
changes to my php source?
Not much.
Also, will something like APC still be useful?
If you find it useful now, yes.
Will my database connections suddenly become persistent?
Nope.
If I had static data in my script, will it persist when that same
script is called again?
Nope.
Essentially, my question is: is fast-cgi a drop-in replacement for
mod_php?
Pretty much. But nothing will give you the behavior you're looking for.
The web is by nature transactional, and all languages act the same way
- scripts are initialized when you call them and do not carry over
values or connections from previous executions.
Thank you for your time.

E Wilson

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 27 '08 #2

P: n/a
..oO(Evil Son)
>Here is what caused me to ask how things worked for PHP:
http://www.fastcgi.com/devkit/doc/fa...intro.htm#8485
If you think of the PHP interpreter itself being the FastCGI application
and not your own script, then things might become more clear. It's just
the interpreter that is kept in memory and running as described on the
page, but your own scripts are still re-evaluated on every request.

Micha
Feb 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.