Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 20:31:27 -0500
From:      alexus <alexus@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   apache22 + mod_fastcgi
Message-ID:  <CAJxePNJ=SK5_gsU7YX0YMS+54d+rDR0dNN6cDH2f8nCoFndaXw@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
---
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/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAJxePNJ=SK5_gsU7YX0YMS+54d+rDR0dNN6cDH2f8nCoFndaXw>