Consciousness

Apache 2.0 + PHP + FastCGI on Windows

Posted in Programming by Personalife on the February 18th, 2009

Posting this here because there were NO guides on how to properly do this in Windows:

LoadModule fastcgi_module modules/mod_fastcgi.so

   <ifmodule mod_fastcgi.c>
        Alias /php "C:/PHP"
	FastCgiServer "c:/php/php-cgi.exe"
	AddHandler php-fastcgi .php
	FastCgiConfig -minProcesses 1

	<location /php>
	SetHandler fastcgi-script
	Options ExecCGI
	</location>

	Action php-fastcgi /php/php-cgi.exe
	AddType application/x-httpd-php .php

    </ifmodule>

See more mod_fastcgi configuration options here. I strongly recommend using fcgid instead if using Apache 2.2 for Windows.

1 Comment »

  1. Thanks a lot for the info. As you mentioned, I could not find any info on how to setup Apache 2 + PHP5 + mod_fastcgi

    Comment by Jatinder — July 17, 2009 @ 2:06 am

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Powered by WordPress .::. Designed by SiteGround Web Hosting