From owner-freebsd-questions@FreeBSD.ORG Fri Aug 12 05:23:16 2005 Return-Path: X-Original-To: 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 63B4D16A41F for ; Fri, 12 Aug 2005 05:23:16 +0000 (GMT) (envelope-from david+dated+1124256192.715575@skytracker.ca) Received: from 3s1.com (3s1.com [209.161.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB01343D46 for ; Fri, 12 Aug 2005 05:23:15 +0000 (GMT) (envelope-from david+dated+1124256192.715575@skytracker.ca) Received: from 3s1.com (localhost [127.0.0.1]) by 3s1.com (8.12.8p1/8.12.8) with ESMTP id j7C5NCSw023176 for ; Fri, 12 Aug 2005 01:23:12 -0400 (EDT) (envelope-from david+dated+1124256192.715575@skytracker.ca) Received: (from david@localhost) by 3s1.com (8.12.8p1/8.12.8/Submit) id j7C5NCLo023175 for questions@freebsd.org; Fri, 12 Aug 2005 01:23:12 -0400 (EDT) (envelope-from david+dated+1124256192.715575@skytracker.ca) X-Authentication-Warning: 3s1.com: david set sender to david+dated+1124256192.715575@skytracker.ca using -f Received: by 3s1.com (tmda-sendmail, from uid 1000); Fri, 12 Aug 2005 01:23:12 -0400 (EDT) Date: Fri, 12 Aug 2005 01:23:11 -0400 To: questions@freebsd.org Message-ID: <20050812052311.GA15943@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i From: David Banning X-Delivery-Agent: TMDA/1.0.2 (Bold Forbes) Cc: Subject: attempting fastcgi with php 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: Fri, 12 Aug 2005 05:23:16 -0000 I am interested in lowering my memory consumption while using php with apache. I am told by others and by the fastcgi website that fastcgi carries "a smaller memory footprint". I would like to use it to run my php scripts. I seem to have fastcgi installed and operational. At least I have run the script; --------------------- #!/usr/bin/perl use FCGI; while( FCGI::accept() >= 0 ) { print( "Content-Type: text/plain", "\n\n" ); print( "Hello World in Perl", "\n" ); } --------------------- which seems to work. I have no idea how to tell whether fastcgi is executing php scripts, or if they are executed the plain old way, without fastcgi help. The configuration of fastcgi in apache shows; AddHandler fastcgi-script .fcgi .fpl which seems to indicate that -only- .fcgi and .fpl scripts are executed by fastcgi. That doesn't seem very useful. Doesn't fastcgi execute plain .cgi and .pl and .php scripts also? I have looked on the fastcgi website and on the apache website, and at the fastcgi and php documentation and not found my answer. How can I test that php scripts are being executed/assisted by fastcgi A phpinfo() of my php and apache configuration is available at; http://skytracker.ca/test.php Any pointers would be helpful - --