apache22 + mod_fastcgi

Damien Fleuriot ml at my.gd
Sat Mar 10 00:24:49 UTC 2012


I think you're naming your module incorrectly.

First, try just setting the handler in your vhost w/o the ifmodule stuff.
If that works, you know where you've gone wrong.


On 9 Mar 2012, at 21:12, alexus <alexus at gmail.com> wrote:

> i'd like to follow up with this question if possible
> 
> On Wed, Mar 7, 2012 at 8:31 PM, alexus <alexus at gmail.com> wrote:
>> ---
>> LoadModule fastcgi_module     libexec/apache22/mod_fastcgi.so
>> 
>> <IfModule mod_fastcgi.c>
>>        AddHandler php5-fastcgi .php
>>        FastCgiExternalServer /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 *:*>
>>        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>
>> 
>> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list