Quote:
Originally Posted by Starsurfer
Right let me explain for maximum server usage, you dont have everything on one server. You need one for the php , one for the apache , one for the scripts I guess sepeerate from the php one, one mysql database and one firewall.
|
Incorrect. PHP scripts have to be accessible to the HTTP server so they need to be on the same machine. In fact, with Apache, PHP is often implemented as a module (mod_php) which is loaded into the server at startup. When run as a CGI, PHP is still executed by the HTTP server and must be accessible to it.
It is quite common to run MySQL on the same machine as the HTTP server although I agree, for large usage installations, separation is a good thing.
As for firewalling, there's no need for a dedicated system although it's convenient to nominate one system as a router and implement it there.
Speaking from personal experience, I run Apache and MySQL on an Athlon XP 2000+ system under FreeBSD. This system also performs NAT and firewalling. It runs additional services such as sendmail and Mailman (mailing list manager) in 512MB of memory. The CPU idle figure for this configuration is > 99.5% on average.
Regards,
Neil Darlow