From owner-freebsd-questions@FreeBSD.ORG Sat Mar 10 10:42:02 2012 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 7267C1065673 for ; Sat, 10 Mar 2012 10:42:02 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 00ABD8FC12 for ; Sat, 10 Mar 2012 10:42:01 +0000 (UTC) Received: by werl4 with SMTP id l4so2286090wer.13 for ; Sat, 10 Mar 2012 02:42:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=VTfoBK0iPIyBrxbaMlM9msiy8ROcodPGHCK/HmchZ2w=; b=eo2aj+YWOpCUpUoD50Su/4kXBBP13CCW1JqCk6OqyxH5pmX7xkj+mbv9SrFU96GWhN r4CcOqHh940ak7RRuaoils10SeaRHUC/xlERHPkevDEDQfD/lZgMo9jMlDG9qE9eoRre OCoe3IF/MBIKYeD1habA0SsduyRFPK6bL8N6870tPGF4yVYOVUMyWHVOQL5OzFI234Ay s5JPJbz/xjwQGQjPoSp8lJU6XfV4/rgqiux9hpkxcla85DF8uzsNvpk0URLqhZ4fJWPk HYwm6VI+FIAL2FJ5Zud3rmzWXcOE9GzkgQD9V291MBsBzfrMJMjlrDBIHhnC7pec14/q SMkA== Received: by 10.180.79.231 with SMTP id m7mr12157323wix.11.1331376121143; Sat, 10 Mar 2012 02:42:01 -0800 (PST) Received: from [10.41.122.107] ([92.90.16.94]) by mx.google.com with ESMTPS id fw5sm13206397wib.0.2012.03.10.02.41.52 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Mar 2012 02:42:00 -0800 (PST) References: <6C1B4420-3535-40A1-83CE-15CEBEF60A66@my.gd> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <34088E52-51DA-4D77-9E3B-A19E8CBDFEEC@my.gd> X-Mailer: iPhone Mail (9A405) From: Damien Fleuriot Date: Sat, 10 Mar 2012 11:41:37 +0100 To: alexus X-Gm-Message-State: ALoCoQm3xjXXYim6jm1TKPSZPgd6jTCw1dE6/KbojYi1lZPjmeltlhShFxk4UWrBclGmgoXgE+sz 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: Sat, 10 Mar 2012 10:42:02 -0000 Have you tried pointing your vhost's fcgi handler to the same unix socket pa= th 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.. >=20 >=20 > 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 >=20 > 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 >=20 > mbp:~ alexus$ >=20 >=20 > On Fri, Mar 9, 2012 at 7:24 PM, Damien Fleuriot wrote: >> I think you're naming your module incorrectly. >>=20 >> First, try just setting the handler in your vhost w/o the ifmodule stuff.= >> If that works, you know where you've gone wrong. >>=20 >>=20 >> On 9 Mar 2012, at 21:12, alexus wrote: >>=20 >>> i'd like to follow up with this question if possible >>>=20 >>> On Wed, Mar 7, 2012 at 8:31 PM, alexus wrote: >>>> --- >>>> LoadModule fastcgi_module libexec/apache22/mod_fastcgi.so >>>>=20 >>>> >>>> AddHandler php5-fastcgi .php >>>> FastCgiExternalServer /usr/local/www/apache22/data/php -socket >>>> /var/run/spawn_fcgi.sock >>>> >>>> --- >>>>=20 >>>> this works for my apache for default virtualhost, yet if i use same >>>> thing under a virtualhost it won't work >>>>=20 >>>> >>>> ServerName xxxx >>>> DocumentRoot /home/xxx/xxx/htdocs/ >>>> >>>> AddHandler php5-fastcgi .php >>>> FastCgiExternalServer /home/xxx/xxx/htdocs/php -socket >>>> /var/run/spawn_fcgi.sock >>>> >>>> >>>>=20 >>>> in default virtual host i PHP scripts gets executed no problem, under >>>> second it actually just starts downloading that php script.. >>>>=20 >>>> any ideas? >>>>=20 >>>> -- >>>> http://alexus.org/ >>>=20 >>>=20 >>>=20 >>> -- >>> 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@freebsd.= org" >=20 >=20 >=20 > --=20 > http://alexus.org/