From owner-freebsd-questions@FreeBSD.ORG Fri May 7 20:07:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52CE61065676 for ; Fri, 7 May 2010 20:07:17 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from mail.netmusician.org (dorian.netmusician.org [66.244.95.101]) by mx1.freebsd.org (Postfix) with ESMTP id 135208FC18 for ; Fri, 7 May 2010 20:07:16 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by mail.netmusician.org (Postfix) with ESMTP id E4AB2B8FF for ; Fri, 7 May 2010 16:07:15 -0400 (EDT) X-Virus-Scanned: amavisd-new at netmusician.org Received: from mail.netmusician.org ([127.0.0.1]) by localhost (dorian.netmusician.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BekAXUDopBEq for ; Fri, 7 May 2010 16:07:15 -0400 (EDT) Received: from Shakti.local (c-67-176-145-181.hsd1.in.comcast.net [67.176.145.181]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.netmusician.org (Postfix) with ESMTPSA id EE7F5B8F7 for ; Fri, 7 May 2010 16:07:14 -0400 (EDT) Message-ID: <4BE472EC.5060808@netmusician.org> Date: Fri, 07 May 2010 16:07:08 -0400 From: Joe Auty User-Agent: Postbox 1.1.4 (Macintosh/20100408) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: php-cgi 5.3.x and APC 3.1.3 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, 07 May 2010 20:07:17 -0000 Hello, I'm trying to get the APC user cache to work for me... It works with PHP installed as an Apache module, but not as a CGI. I understand that in order to get this to work one has to add a: > FastCgiConfig -maxClassProcesses 1 to their Apache config (for those that use Apache). I've done this, but I'm still not seeing any evidence that the user cache is working. The reason why I'm writing to this list rather than a PHP list is because I'm a little confused by some of the PHP install options. It looks like in 5.2 there was a FastCGI compile option. I'm assuming this is enabled by default in 5.3? > # php-cgi -v > PHP 5.3.2 with Suhosin-Patch (cgi-fcgi) (built: May 7 2010 12:53:07) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies What's confusing is the existence of both mod_fastcgi and mod_fcgi. Is PHP compiled against fastcgi or fcgi? It looks like the former is required for my setup. Since the key ingredient to this is the FastCgiConfig directive above, I'm not sure if there is a way to test that this directive has been recognized? I'm not seeing it in my phpinfo() screens... Could I have mod_fcgi built into php-cgi and this FastCGI Apache directive is being ignored? In case this is relevant, I'm not doing any suexec stuff just yet. -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org joe@netmusician.org