Microsoft Releases IIS FastCGI Module 269
Marcy writes "Microsoft has just announced the final release of the IIS FastCGI module for IIS 5.1 (XP), 6 (2003), and 7 (2008). This FastCGI module was built with collaboration from Zend, the creators of PHP, and is intended to solve the CGI on Windows problem." It's free as in beer.
Re:Problem? (Score:5, Informative)
Re:Stop the insanity. (Score:5, Informative)
Rather than running another box or supporting a VM image to run apache, it's easier just to make do with IIS. The point of this article is that MS is making IIS play better for people from the PHP/fcgi side of things.
We did however run the outside web server on apache on an ancient almost broken P166 and it ran well.
Re:Why bother? (Score:2, Informative)
Still, for my fellow readers:
Re:free as in beer? (Score:2, Informative)
is this what you are looking for?
freebeer.org [freebeer.org]
Re:Problem? (Score:4, Informative)
So, we needed ways to make things go faster - mod_php for example, that ran php scripts inside an apache process, but you still had to fork the apache process for each web request because of many thread-safety issues in php modules. This was also a security problem because every php script ran as the apache user. So the next idea was to start an apache process for each client and re-use it until that client disconnected (and stayed disconnected). This is the fastCGI approach.
With windows, you had 2 ways of running PHP scipts: as a CGI application (slow due to new processes all the time), and as an ISAPI (think of this as the equivalent of mod_php) module. The ISAPI one worked but you had the thread-safety issues of PHP to contend with (just like on Apache 2 that doesn't spawn worker processes).
In summary: nothing much to see, someone's just released fastCGI for IIS now so you have the same configuration options for IIS as you have for Apache.
Re:Why bother? (Score:2, Informative)
Re:Why bother? (Score:3, Informative)
How do you search a gui interface?
Most have a series of tabs/menus that allow a drill-down type search. Sometimes things aren't in the most obvious places, but it's not that bad, and if you don't know the exact text of what you are looking for it's a lot easier than text files. If you know the exact text, then it is harder. It's nicer to have both (such as provided in IIS)
How can you minimalise a gui config to the bare essentials?
Turn off the options you don't want - same way you would in a command line.
How do you upload/download a config and email it to someone?
Depends, if the gui attaches to an file (a-la IIS), email the text file. If the GUI attaches to the registry, export the hive and attach it.
How do you edit the config without having to run remote desktop client?
Assuming there is a command line interface to the machine, you can edit the file the GUI controls with a text editor, if it is a text file. If it is registry, you can call tools in windows that allow you to query/write the registry, and if it is a proprietary binary, you are SOL unless they wrote a tool for it.
And of course, with clicky configs, if they haven't provided an option for something, then you can't do it. Sorry, "computer says no".
Yep, text-y configs you can't change things they don't give you options for either! That's a matter of programmer incompetance, and not specific to the interface.
Re:Rasmus Lerdorf must be pissed today (Score:5, Informative)
Businesses utilizing PHP know Zend as the place to go for PHP expertise and sound technology solutions. Andi Gutmans and Zeev Suraski, two of Zend's founders, are key contributors to PHP and creators of the open source Zend Engine. Because of their internationally recognized authority, the company and its founders continue to play leadership roles in the PHP and open source communities, and are accountable for a central role in the explosive growth of PHP.
Slighty different, I think you'll agree.
Happy PHP'ing
Re:Problem? (Score:5, Informative)
It's a lot more expensive. Some numbers MSR came up with while working on their research OS Singularity put process creation on Linux at ~700,000 cycles, just over 1 million on FreeBSD, and just under 5.4 million cycles on XP. Here's [microsoft.com] one source; slide 23.
I'm not arguing against your main point; I'm just pointing out that there is actually a huge difference between process creation time on the different systems.
FastCGI vs Proxy (Score:3, Informative)
One nice thing about mod_proxy_balancer is that it's easy to distribute the Mongrels across a couple of machines... and Apache will take them out of the loop if the machine goes down or they become unresponsive or whatever. Works for us [blogs.com], anyhow....
Re:Rasmus Lerdorf must be pissed today (Score:2, Informative)
http://en.wikipedia.org/wiki/Php [wikipedia.org]
Re:Stop the insanity. (Score:4, Informative)
Re:Security (Score:4, Informative)
The bit about PHP admin scripts is application specific - nobody's forcing the authors to do it that way, and you can do the same with any other language. PHP has had it's flaws (register_globals and magic_quotes still give me the shivers), but if you're going to bitch about it, at least educate yourself first.
Re:Problem? (Score:3, Informative)
Sorry, but that's bollocks.
Cygwin fork() does create a new process. It calls CreateProcess() and then copies the current process into the new one. See the relevant Cygwin API FAQ [cygwin.com] for a full explanation.
Re:Why bother? (Score:3, Informative)
Anyway there are editing tools:
http://kochizz.sourceforge.net/ [sourceforge.net]
Looks promising.
But I have never used it (the only one I've tried: YaST HTTP server module was incomplete for taste, I couldn't configure properly webdav through it).
Re:Stop the insanity. (Score:2, Informative)
Re:Problem? (Score:3, Informative)
Probably higher, considering the layers of security checks and "reducing the threat surface" whatnot which MSFT applied to IIS for Windows 2003 Server.
Re:Problem? (Score:3, Informative)
Re:Problem? (Score:3, Informative)
Re:Problem? (Score:1, Informative)
Re:Stop the insanity. (Score:4, Informative)
Config the machine to have two IPs.
On apache, set a Listen directive in the config file, to have it listen on IP1:80.
For IIS, run this:
c:\>httpcfg set iplisten -i IP2
By default, both apache and IIS will bind to every IP on the box. These methods let you have each listening on port 80 on their respective IPs.
The only 'hard' part on the IIS side is knowing that httpcfg exists and controls this. If you've ever setup wildcard ssl certs in windows you've been here.
The reason this is controlled through this command prompt on windows is due to the architecture of IIS.
There is a very small kernel-mode component that handles listening on the port and handing off to IIS. This is what you're configuring with httpcfg.
I believe Vista (and therefore Win 2008 Server) doesnt have httpcfg and uses something else (dont know what off the top of my head).