Re: PHP on one box, Apache on another?
| From: | Joel Rees | Date: | Wed, 02 Jul 2003 06:47:59 +0000 |
| Subject: | Re: PHP on one box, Apache on another? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153677@lists.php.net to get a copy of this message | ||
> I don't know the details of this request (like why., but as soon as I
> know I'll tell you) but can Apache live on one box with all PHP requests
> being handled on another box?
Yeah, but what you're likely to end up with is apache on one machine
just passing requests to and from apache-mod_php-your_app on another
machine.
Or, you could use some other web server on the second machine, might
even be something dead-simple, like a shell process running command-line
PHP (don't do that unless you know how and why already) or a perl (php?)
script that passes things on to the PHP cgi.
Are you familiar with Tomcat?
The typical production arrangement with Tomcat, except for sites that
use very little static html, is to have Apache handle the static html,
and Tomcat handle the jsp/java. Apache and Tomcat can definitely be on
separate machines.
I think I have read somewhere reports of some project working to set up
a similar special-purpose php-template server for php, but that may be
just my imagination.
--
Joel Rees, programmer, Kansai Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp