From owner-freebsd-questions@FreeBSD.ORG Tue Oct 20 07:45:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECB1106566B for ; Tue, 20 Oct 2009 07:45:52 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.freebsd.org (Postfix) with ESMTP id 10DFE8FC08 for ; Tue, 20 Oct 2009 07:45:51 +0000 (UTC) Received: from w2003s01.double-l.local (double-l.xs4all.nl [80.126.205.144]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id n9K7jndi047951; Tue, 20 Oct 2009 09:45:50 +0200 (CEST) (envelope-from Johan@double-l.nl) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 20 Oct 2009 09:45:47 +0200 Message-ID: <57200BF94E69E54880C9BB1AF714BBCBA5708B@w2003s01.double-l.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PHP5 + fastcgi + apache2.2 ... how to for FreeBSD? Thread-Index: AcpRDaJoTcyHeJyKT4+wZzygemJMyQASiptQ References: From: "Johan Hendriks" To: "Marc G. Fournier" X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: RE: PHP5 + fastcgi + apache2.2 ... how to for FreeBSD? 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, 20 Oct 2009 07:45:52 -0000 Install from ports lang/php5 do NOT build the apache module (checkbox number 3) =81[ ] APACHE Build Apache module Then install from ports www/mod_fcgid Create a file in /usr/local/etc/apache22/Includes (if you have = apache22) else use the dir from your apache version. Name it something like fcgi.conf Put the following in there. LoadModule fcgid_module libexec/apache22/mod_fcgid.so AddHandler fcgid-script .fcgi Action application/x-httpd-php /cgi-bin/php5.fcgi AddHandler application/x-httpd-php .php DirectoryIndex index.html index.php Now create a file in /usr/local/www/apache22/cgi-bin Call this one php5.fcgi make it executable: chmod ug+x /usr/local/www/apache22/cgi-bin/php5.fcgi give it the right user and group: chmod www:www = /usr/local/www/apache22/cgi-bin/php5.fcgi In this file put the following #!/bin/sh PHPRC=3D"/usr/local/etc" export PHPRC #PHP_FCGI_CHILDREN=3D4 #export PHP_FCGI_CHILDREN #PHP_FCGI_MAX_REQUESTS=3D5000 #export PHP_FCGI_MAX_REQUESTS exec /usr/local/bin/php-cgi I comment some things out, try for yourself if these works. This should be it in great line. Succes. regards, Johan Hendriks -----Oorspronkelijk bericht----- Van: owner-freebsd-questions@freebsd.org = [mailto:owner-freebsd-questions@freebsd.org] Namens Marc G. Fournier Verzonden: dinsdag 20 oktober 2009 0:22 Aan: freebsd-questions@freebsd.org Onderwerp: PHP5 + fastcgi + apache2.2 ... how to for FreeBSD? Is there one somewhere? I'm finding *alot* of Debian ones dealing with=20 their whole apget stuff, but would like to find something that "speaks=20 normally" :) Thx ... ---- Marc G. Fournier Hub.Org Hosting Solutions S.A. scrappy@hub.org http://www.hub.org Yahoo:yscrappy Skype: hub.org ICQ:7615664 MSN:scrappy@hub.org _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 8.5.422 / Virus Database: 270.14.20/2444 - Release Date: = 10/18/09 09:04:00 No virus found in this outgoing message. Checked by AVG - www.avg.com=20 Version: 8.5.422 / Virus Database: 270.14.20/2444 - Release Date: = 10/18/09 09:04:00