Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2012 15:12:55 -0500
From:      alexus <alexus@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: apache22 + mod_fastcgi
Message-ID:  <CAJxePNJnvYKT_5N-FasQux1h3=UoUroZH_KiQZp2qFSRUjaQAg@mail.gmail.com>
In-Reply-To: <CAJxePNJ=SK5_gsU7YX0YMS+54d+rDR0dNN6cDH2f8nCoFndaXw@mail.gmail.com>
References:  <CAJxePNJ=SK5_gsU7YX0YMS+54d+rDR0dNN6cDH2f8nCoFndaXw@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
i'd like to follow up with this question if possible

On Wed, Mar 7, 2012 at 8:31 PM, alexus <alexus@gmail.com> wrote:
> ---
> LoadModule fastcgi_module =C2=A0 =C2=A0 libexec/apache22/mod_fastcgi.so
>
> <IfModule mod_fastcgi.c>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0AddHandler php5-fastcgi .php
> =C2=A0 =C2=A0 =C2=A0 =C2=A0FastCgiExternalServer /usr/local/www/apache22/=
data/php -socket
> /var/run/spawn_fcgi.sock
> </IfModule>
> ---
>
> this works for my apache for default virtualhost, yet if i use same
> thing under a virtualhost it won't work
>
> <VirtualHost *:*>
> =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<IfModule mod_fastcgi.c>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AddHandler php5-fa=
stcgi .php
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0FastCgiExternalSer=
ver /home/xxx/xxx/htdocs/php -socket
> /var/run/spawn_fcgi.sock
> =C2=A0 =C2=A0 =C2=A0 =C2=A0</IfModule>
> </VirtualHost>
>
> 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/



--=20
http://alexus.org/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAJxePNJnvYKT_5N-FasQux1h3=UoUroZH_KiQZp2qFSRUjaQAg>