From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 21:00:54 2012 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 72B46106566B for ; Mon, 12 Mar 2012 21:00:54 +0000 (UTC) (envelope-from alexus@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EF2B48FC12 for ; Mon, 12 Mar 2012 21:00:53 +0000 (UTC) Received: by wern13 with SMTP id n13so2424127wer.13 for ; Mon, 12 Mar 2012 14:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kEBnWeKGid+HB6fx5M0rgjWxWY6H9jFo9faWONd+2TA=; b=Gbl5SuYbXOVP3O1/ESYnw0yyoPboi8VDhvwBBG6pvSvjoUERDFHN+c61mySDHMAE9F Eg29+/7y18dqUcQDYK3MkVYdHwdvRR0cVeP7zOS8gN8jLi7Orun7sXIZVRXLCcfW8M4s v03T9Imbeblb9QaoSezAehv8BmLZYEkoyhGVE59U9wfGO5xNckhxuUU9Y0XGxtfcPyVq hJUBI4m7Xid9kTXM+LJDxlkU/C4k0bpzdHp+EA54Fq4L7NndpY5sgM5n0JZeIu7iltrV GZsM4fI7p+4WT7SwTLDsoFfq5QjwnQfOyDH+aQrZhgPc1DRMNnYzQPH9f6NSulwDttY0 7dcw== MIME-Version: 1.0 Received: by 10.180.86.230 with SMTP id s6mr1194364wiz.16.1331586052902; Mon, 12 Mar 2012 14:00:52 -0700 (PDT) Received: by 10.216.11.7 with HTTP; Mon, 12 Mar 2012 14:00:52 -0700 (PDT) In-Reply-To: <34088E52-51DA-4D77-9E3B-A19E8CBDFEEC@my.gd> References: <6C1B4420-3535-40A1-83CE-15CEBEF60A66@my.gd> <34088E52-51DA-4D77-9E3B-A19E8CBDFEEC@my.gd> Date: Mon, 12 Mar 2012 17:00:52 -0400 Message-ID: From: alexus To: Damien Fleuriot Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" Subject: Re: apache22 + mod_fastcgi 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: Mon, 12 Mar 2012 21:00:54 -0000 socket file: -socket /var/run/spawn_fcgi.sock are same for both default and virtual host the only difference is a directory with phpscript On Sat, Mar 10, 2012 at 5:41 AM, Damien Fleuriot wrote: > Have you tried pointing your vhost's fcgi handler to the same unix socket= path you use for your default vhost ? > > > > On 10 Mar 2012, at 02:35, alexus wrote: > >> if it would be incorrectly it wouldn't work the first time (default host= ) >> virtualhost has a copy from a default host, the only difference is >> local path to directory, that's all >> ifmodule is there just in case if for whatever reason module is >> missing, site can operate in degraded state vs not operate at all and >> other virtual hosts can work as well otherwise i have to go and >> comment out alot of lines manually so it's not ifmodule as that proven >> to work, but in any case i added ifmodule after, line was there before >> without ifmodule so it didn't work before either.. >> >> >> mbp:~ alexus$ curl -I http://XX.XXX.XX.XXX/php/phpinfo.php >> HTTP/1.1 200 OK >> Date: Sat, 10 Mar 2012 01:34:29 GMT >> Server: Apache/2.2.21 (FreeBSD) mod_ssl/2.2.21 OpenSSL/0.9.8q DAV/2 >> mod_python/3.3.1 Python/2.7.2 mod_fastcgi/2.4.6 >> X-Powered-By: PHP/5.3.8 >> Content-Type: text/html >> >> mbp:~ alexus$ curl -I http://virtualhost.com/php/phpinfo.php >> HTTP/1.1 200 OK >> Date: Sat, 10 Mar 2012 01:34:42 GMT >> Server: Apache/2.2.21 (FreeBSD) mod_ssl/2.2.21 OpenSSL/0.9.8q DAV/2 >> mod_python/3.3.1 Python/2.7.2 mod_fastcgi/2.4.6 >> Last-Modified: Thu, 23 Feb 2012 02:10:09 GMT >> ETag: "97c8ef-11-4b99824b74240" >> Accept-Ranges: bytes >> Content-Length: 17 >> Content-Type: application/x-httpd-php >> >> mbp:~ alexus$ >> >> >> On Fri, Mar 9, 2012 at 7:24 PM, Damien Fleuriot wrote: >>> I think you're naming your module incorrectly. >>> >>> First, try just setting the handler in your vhost w/o the ifmodule stuf= f. >>> If that works, you know where you've gone wrong. >>> >>> >>> On 9 Mar 2012, at 21:12, alexus wrote: >>> >>>> i'd like to follow up with this question if possible >>>> >>>> On Wed, Mar 7, 2012 at 8:31 PM, alexus wrote: >>>>> --- >>>>> LoadModule fastcgi_module =C2=A0 =C2=A0 libexec/apache22/mod_fastcgi.= so >>>>> >>>>> >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0AddHandler php5-fastcgi .php >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0FastCgiExternalServer /usr/local/www/apach= e22/data/php -socket >>>>> /var/run/spawn_fcgi.sock >>>>> >>>>> --- >>>>> >>>>> this works for my apache for default virtualhost, yet if i use same >>>>> thing under a virtualhost it won't work >>>>> >>>>> >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0ServerName xxxx >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0DocumentRoot /home/xxx/xxx/htdocs/ >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AddHandler php= 5-fastcgi .php >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0FastCgiExterna= lServer /home/xxx/xxx/htdocs/php -socket >>>>> /var/run/spawn_fcgi.sock >>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>> >>>>> >>>>> in default virtual host i PHP scripts gets executed no problem, under >>>>> second it actually just starts downloading that php script.. >>>>> >>>>> any ideas? >>>>> >>>>> -- >>>>> http://alexus.org/ >>>> >>>> >>>> >>>> -- >>>> http://alexus.org/ >>>> _______________________________________________ >>>> freebsd-questions@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebs= d.org" >> >> >> >> -- >> http://alexus.org/ --=20 http://alexus.org/