Small HTTPD + PHP4

Chuck Swiger cswiger at
Tue Jun 28 16:58:43 GMT 2005

Grant wrote:
> On Mon, 27 Jun 2005 21:54:16 -0400
> Chuck Swiger <cswiger at> wrote:
[ ... ]
> The only reason i'm moving from apache is that apache has started (well
> proberly did but i didnt notice) eating large amounts of ram, even when
> idle, as i type this there is 4 apache processes using 29mb each, now
> when there is a few people on my forum/site that goes up to around
> 12processes again all using 29mb which adds up to being quite a big
> chunck of my ram. (384mb just for apache).

Sounds about right.  If you run Apache without enabling PHP, you'll discover 
that each httpd takes around 5MB per process, less than 20% of the size you are 

> So i either want to get php working on a smaller httpd or maybe fix
> apache.

You don't seem to understand the problem: it has nothing to do with apache.

If you try to get PHP working on a smaller httpd, you will end up with an httpd 
(or the equivalent in external fast-cgi processes) that uses lots of resources, 
because PHP itself uses lots of resources.

PHP and small/lightweight doesn't happen.  PHP is bulky, slow, inefficient, and 
has a security record which resembles that of Windows or sendmail.


More information about the freebsd-questions mailing list