From owner-freebsd-questions@FreeBSD.ORG Tue Jun 28 17:54:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8099216A41C for ; Tue, 28 Jun 2005 17:54:54 +0000 (GMT) (envelope-from freebsdlists@thingysrealm.myftp.org) Received: from thingysrealm.myftp.org (81-86-82-155.dsl.pipex.com [81.86.82.155]) by mx1.FreeBSD.org (Postfix) with SMTP id BCE3743D1F for ; Tue, 28 Jun 2005 17:54:53 +0000 (GMT) (envelope-from freebsdlists@thingysrealm.myftp.org) Received: (qmail 96415 invoked by uid 1011); 28 Jun 2005 17:54:51 -0000 Received: from 10.0.0.2 by rackmount.orbsrealm.com (envelope-from , uid 1010) with qmail-scanner-1.25-st-qms (clamdscan: 0.83/781. perlscan: 1.25-st-qms. Clear:RC:0(10.0.0.2):. Processed in 0.253316 secs); 28 Jun 2005 17:54:51 -0000 X-Antivirus-Thingysrealm.myftp.org-Mail-From: freebsdlists@thingysrealm.myftp.org via rackmount.orbsrealm.com X-Antivirus-Thingysrealm.myftp.org: 1.25-st-qms (Clear:RC:0(10.0.0.2):. Processed in 0.253316 secs Process 96410) Received: from unknown (HELO anubis) (freebsdlists@thingysrealm.myftp.org@10.0.0.2) by thingysrealm.myftp.org with SMTP; 28 Jun 2005 17:54:49 -0000 Date: Tue, 28 Jun 2005 18:54:50 +0100 From: Grant To: Chuck Swiger Message-ID: <20050628185450.50cfcf38@anubis> In-Reply-To: <42C181B9.602@mac.com> References: <20050628021524.7ba2df56@anubis> <42C0ADC8.1060204@mac.com> <20050628103028.6c87d666@anubis> <42C181B9.602@mac.com> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Small HTTPD + PHP4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 17:54:54 -0000 On Tue, 28 Jun 2005 12:58:33 -0400 Chuck Swiger wrote: > Grant wrote: > > On Mon, 27 Jun 2005 21:54:16 -0400 > > Chuck Swiger 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 seeing. > > > 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. > Hey, Thanks again for the reply, Ok by removing php i guess that would sort out the problem. But I dont know of any forums that use a database that doesn't use php in someway, so what could i do to make my apache and php as small as possible, any small tweaks or something ? Or do you know of a non php based forum that is quite fast and has the same type of things on a php based one. the way the forum is stored isnt a worry, be it a simple text file or some fancy database run one. Thanks again Grant.