Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 11:41:37 +0100
From:      Damien Fleuriot <ml@my.gd>
To:        alexus <alexus@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: apache22 + mod_fastcgi
Message-ID:  <34088E52-51DA-4D77-9E3B-A19E8CBDFEEC@my.gd>
In-Reply-To: <CAJxePNLkceyRVnNw6eurOXuhuGy5TKd5zzeB_2paQ7cRuuGjyQ@mail.gmail.com>
References:  <CAJxePNJ=SK5_gsU7YX0YMS+54d+rDR0dNN6cDH2f8nCoFndaXw@mail.gmail.com> <CAJxePNJnvYKT_5N-FasQux1h3=UoUroZH_KiQZp2qFSRUjaQAg@mail.gmail.com> <6C1B4420-3535-40A1-83CE-15CEBEF60A66@my.gd> <CAJxePNLkceyRVnNw6eurOXuhuGy5TKd5zzeB_2paQ7cRuuGjyQ@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <alexus@gmail.com> 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 <ml@my.gd> 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 <alexus@gmail.com> wrote:
>>=20
>>> i'd like to follow up with this question if possible
>>>=20
>>> On Wed, Mar 7, 2012 at 8:31 PM, alexus <alexus@gmail.com> wrote:
>>>> ---
>>>> LoadModule fastcgi_module     libexec/apache22/mod_fastcgi.so
>>>>=20
>>>> <IfModule mod_fastcgi.c>
>>>>        AddHandler php5-fastcgi .php
>>>>        FastCgiExternalServer /usr/local/www/apache22/data/php -socket
>>>> /var/run/spawn_fcgi.sock
>>>> </IfModule>
>>>> ---
>>>>=20
>>>> this works for my apache for default virtualhost, yet if i use same
>>>> thing under a virtualhost it won't work
>>>>=20
>>>> <VirtualHost *:*>
>>>>        ServerName xxxx
>>>>        DocumentRoot /home/xxx/xxx/htdocs/
>>>>        <IfModule mod_fastcgi.c>
>>>>                AddHandler php5-fastcgi .php
>>>>                FastCgiExternalServer /home/xxx/xxx/htdocs/php -socket
>>>> /var/run/spawn_fcgi.sock
>>>>        </IfModule>
>>>> </VirtualHost>
>>>>=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/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?34088E52-51DA-4D77-9E3B-A19E8CBDFEEC>