Click to See Complete Forum and Search --> : Accessing PHP from a remote server
roliver
10-22-2002, 05:48 PM
Hi,
I'd like to create a scaleable production environment with Apache, PHP and MySQL. I have 3 dedicated servers. 1 for apache 1 for MySQL and 1 for PHP. I was wondering if Apache or PHP could be configured so that when it sees a request coming in for a php program it will connect to the PHP server and hand the request off.
Has anyone heard or created such and environment?
Thanks for your input
Rodney
daynah
10-22-2002, 08:35 PM
I think it would be more logical to have apache and php on one server, and mysql on another. The reason is that php should be compiled with apache. Mysql can run as a standalone.
roliver
10-22-2002, 09:00 PM
thanks for your input. I realize that PHP, in most cases, should be complied in the Apache. But were I work my boss wants to have one box dedicated to each piece of software.
so has anyone ever set up PHP and Apache like this? Is it possible?
Which OS are you going to be installing this onto? Linux? Windows 2000/XP/NT?
In order for PHP to work, it should be on the same server as the web server. Otherwise, your network connection between the two machines will be a bottleneck. (the transfer rate between applications in memory is MUCH faster than sending data between two machines)
I agree that mySQL should be placed on a separate server since it will be handling most of the heavy processing tasks (for running queries) As for scalability, you'll be surprised how much a machine running Apache/PHP can handle.
roliver
10-22-2002, 09:28 PM
Linux 2.4.8 kernel. I agree with you PHP and Apache should be on the same box. But I need to prove a point. :) Can Apache be configured to connect to PHP remotely?
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.