


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.
Why bother? (Score:2, Insightful)
Re: (Score:2)
Re: (Score:2)
For one thing, Apache's FastCGI module is notoriously flaky and poorly documented. In the past, Apache users typically employed mod_php, mod_python, etc., and as a result mod_fastcgi has historically received second-class treatment by developers. There's a reason so many people are turning to lighttpd for their FastCGI applications even though Apache 2 offers its own multithreaded MPM, and performance is only part of the equation...
Re: (Score:2)
I think it was Open Market Inc's licensing that kept it out of Apache mainstream. Even though the company doesn't even exist any longer, the code still has the license problems. mod_fcgid is supposedly a reimplementation, but might have been based off the old code, and the developers haven't wanted to bother with putting it
Re:Why bother? (Score:4, Insightful)
Re: (Score:2)
Re: (Score:2, Informative)
Re: (Score:2)
Re: (Score:3, Insightful)
Microsoft probably things "Huh, the world didn't end? Ahh, then it probably isn't critical."
Re:Why bother? (Score:5, Insightful)
Just because you don't know how to do it doesn't mean it's not a huge advantage for those of us who do.
Re: (Score:2)
Sendmail wants it's text file back. Just because it's a text configuration doesn't automatically mean you have all those advantages. Furthermore, IIS 5,6,and 7 all use an XML config file called the metabase which is quite easy to read and allows you to do all of the same tasks.
You're right though, it can be great, scripting has been easy for quite some time on Windows and naturally was always easy on Linux. Scripting is the only thing that keeps the sysadmin in me sane as I manage both Windows, Linux, and
Re:Why bother? (Score:4, Insightful)
I am starting to believe that you XML turkeys operate in some alternative Universe where diarrhea like this:
... is considered "easy to read" and "easy to maintain". Note the lovely formatting (as it appears in the actual file - less a few newlines as Slashcode wraps the crap) due to some inane Microsoft MMC GUI tool used to generate the thing. Also note the profuse commentary (that is assuming that you actually could ever properly comment this spew as comments are not allowed within tags, even ignoring the fact that the imbecilic MMC tool would simply remove them on the next use).
I will leave it as an excercise to the reader to conclude which one of us is operating based on delusional, emotional attachment to insanely misused formats and which one has an actual experience with configuration files in real life.
As to Semdmail, may I remind you that the so-called "config" file is an actual machine code of a state driven processor around which Sendmail itself was constructed. Apples and oranges. And no, it was no more easy or harder to read then any stream of machine instructions for any other machine to be directly executed by it. It was never meant to be easily human-readable and its syntax is driven by the extremely demanding resource limitations at the time when original Sendmail was developed. The fact that it proved a maintenance nightmare (despite of its extreme power and flexibility as compared to regular config files) was a leading impetus behind Sendmail losing to other MTAs as years went on and extreme frugality with resources became secondary to ease of maintenance.
Oh and your sanctimonious whining about "hopping into this century to drool at shiny but valueless stuff" does not help your cause either, as the basics of computer science remain unchanged since its very inception and they will remain firmly so even if our computers end up grown in vats out of quantum-mechanical nanomachines. And one of those fundamental, time-tested constants is the requirement for brevity, clarity and ability to comment extensively any configuration files, although untold numbers of misguided "innovators" have attempted to "improve" this in a countless number of ways, of which the XML insanity is but one of the later flops, standing atop of a heap of rotting carcasses of previous failures, which went by names such as "binary configuration databases" and "registry hives" and what not.
And so, long after your pet fad is gone, I am sure I will be having this same very conversation with some condescending accolyte of "Object Oriented Four Dimentional Cube, Buzzword Overloaded" config files or what not, who will snicker about how quaintly old-fashioned these fundamentals are, and that I should "get on with the times" to his new favourite, one-and-only, super-correct fad.
In short, your kind never learns.
Quite a comedian you are. How about any other time-proven config file format used by just about any sane application? Bind, DHCP, SSH ... and on and on and on.
Re: (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: (Score:2)
Re: (Score:2)
You can also add human readable comments with things like who changed something, when, and why.
These things add no value to the computer program, but to us stupid humans, we actually value these things.
AFAIK, there is no way for 99.999% of the human race to tell much about HKEY_LOCAL_MACHINE\SOFTWARE\foo\bar\MGROPW with type of REG_SZ and a value of 0c0a000a2c means without some other information. The only part I made up in this example is foo and bar, everything else is stolen from a screen capture I foun
Re: (Score:2)
Re: (Score:2)
Re:Why bother? (Score:4, Insightful)
Oh, not you as well. There's absolutely nothing wrong with text file configuration. There's a whole world of things wrong with a pointy-clicky GUI interface to a config in the registry when there's no other way to edit it.
How do you search a gui interface? How do you generate a gui config? How can you minimalise a gui config to the bare essentials? How do you upload/download a config and email it to someone? How do you edit the config without having to run remote desktop client? 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".
I'll admit that IIS hasn't had many vulnerabilities recently, but this is partly because it's got bugger all functionality. Most new vulnerabilities in apache are usually found in one if its thousands of modular extensions.
Lets not talk about using domain credentials for HTTP authentication (in fact, having your web server assume that's what you want to do), lets not talk about your configuration appearing all over active directory. Lets not talk about how server 2003 starts up every bloody service on the system on boot, giving you about 30 seconds to download the service packs before you get pwned by a virus. Lets not talk about how it took microsoft months to fix a serious user-affecting exploit in word, but yet, when they give a shit (like when DRM got cracked), they have a fix out in a matter of hours.
Personally, I use thttpd, because, er, I don't like the config format for apache. That's not because I don't like having my configs in readable text files, I just don't like the cludgy way that apache does it.
Re: (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
Re:Why bother? (Score:5, Interesting)
That's not useful. I don't want to have to "drill down", I want to search for a keyword. Say I've got several hosts, and I want to see everything specifically relating to an IP address. I search for the text of the IP address. For beginners looking to change one option, complex GUIs are a mass of buttons and tabs, rather than something they can search for.
Turn off the options you don't want - same way you would in a command line.
I don't want to turn them off, I want to remove all reference to them.
If the GUI attaches to the registry, export the hive and attach it.
That's not useful. I want to mail the config so someone can read it, eg. paste my config to a newsgroup to ask a question when I'm stuck. The usual equivalent in windows-land is you spend days searching for stuff and getting dumb meaningless error messages ("please check that the domain controller is both locatable and contactable" - hey I know, Mr Paperclip, why don't YOU tell ME whether it was either unlocatable or uncontactable or both..), then eventually you find the answer on someone smug bloke's blog with a mugshot of him in the corner and 1000s of thankyou messages, rather than anywhere on MSDN. (incidentally, that error was nothing to do with the server being unlocatable or contactable, but being windows, I couldn't do a trace on it to find out where it was breaking, I just had to click "OK" and try something else).
Yep, text-y configs you can't change things they don't give you options for either!
Text-y configs usually have some level of scriptability, eg. "IfDefined" in apache. Syntax that might apply to one feature will usually apply to all features, making things a lot more versatile.
Another advantage of text configuration is that you can arrange the order of the file according to what's important. You can also add comments.
Re: (Score:3, Interesting)
And if the keyword(s) you think up aren't in there? If the author of the document hasn't provided enough notes. I've found cases like that in text files.
Re: (Score:2)
There used to be a program called "Comanche" that did this. Last reference I can find of it is back in 2001. I tried it once, and instead of reading down a file bit by bit, I was overwhelmed with tab after tab of options I'd never used or even heard of.
Re: (Score:2)
Let's face it, not man
Re: (Score:2)
For beginners exiting simple text editor (vi comes to mind) is sometimes impossible task. But servers aren't for beginners. They are pretty advanced stuff.
Re: (Score:2)
Oh, not you as well. There's absolutely nothing wrong with text file configuration. There's a whole world of things wrong with a pointy-clicky GUI interface to a config in the registry when there's no other way to edit it.
There are lots of measurable, demonstrable things wrong with "text file configuration". Most of the complaints about "a pointy-clicky GUI interface to a config in the registry", however, boil down to taste and inertia.
How do you search a gui interface?
Ideally, you don't because it's
Re: (Score:2)
Eclipse does a nice job at it. It has a search box at the top of the preferences gui, and it narrows down the items in the tree to those that contain your search item.
I'm all for text configs with good gui tools to back them. These days, that usually means XML, which ain't perfect, but it's good enough when I have decent editor support like emacs's nxml-mode. Microsoft seems to have gotten the message as well, and actually has moved a lot of configuration to text, e
Re: (Score:3, Interesting)
Re:Why bother? (Score:5, Interesting)
That's one thing I like about it - I can edit the text file OR use the GUI.
The caveat is the text-file is XML, the pro is that it's structure in such a way that it's not as painful to edit by hand as normal XML. Also, there's a log file in the same directory that produces really helpful error messages if you screw up editing it by hand.
Having used both, I find neither significantly better/easier to administrate. They are just different
Re: (Score:2, Informative)
Still, for my fellow readers:
Re: (Score:2, Insightful)
A comparison of critical vulnerabilities is an apples-to-oranges comparison between IIS and Apache. First off, IIS is more vulnerable because it only runs on one platform, Windows Server. This makes exploiting security bugs a known quantity. Security bugs in the OS aren't counted against IIS in many bugs counts, despite the fact that these secur
Re: (Score:2)
Bet I can whip up vi, edit httpd.conf, and type "service apache graceful" at a bash prompt a whole lot faster than you can click-wait-click-wait-click-click-wait-click-wait-wait your way to a config then reboot the box to apply any critical IIS settings ;)
Re: (Score:2)
I do have one question - does it cover the whole wad, or just whatever MSFT felt like exposing to it?
Re: (Score:2)
Re: (Score:2)
II6 has something called metabase.xml. It's actually a fairly easy to edit XML file, compared to most XML config files I've seen too.
Re: (Score:3, Funny)
I don't understand your point. They don't mention Exchange once in this article.
Re: (Score:2)
I think you need a therapist. You should not be so upset with a simple question. Life's too short.
BTW, the company I work for uses IIS and apache. We have products that require them.
On a similar note, Python + PHP via FastCGI (Score:5, Interesting)
One thing I've been keeping an eye on is WPHP [pythonpaste.org]. It's only alpha-quality at the moment, but it's basically a WSGI application (WSGI is the standard Python web application interface) with a FastCGI backend that runs PHP. With something like this, you can mix and match PHP and Python — for example, you could write an authentication handler in Python and link it to a legacy PHP application.
Zend + MS (Score:5, Insightful)
Re: (Score:2)
Besides, IMHO the CGI on windows problem is: windows
free as in beer? (Score:3, Insightful)
And IMO, it may be free as in beer but it's poisoned beer by virtue of where it plays.
LoB
Re:free as in beer? (Score:5, Funny)
Now, if there IS free beer being offered somewhere, just point me in the right direction.
Re: (Score:2)
The "free as in beer" thing really annoys me. I've NEVER seen free beer, anywhere! I propose we all stop using this ridiculous phrase and start using "free as in air" instead.
Now, if there IS free beer being offered somewhere, just point me in the right direction.
Try this direction:
http://en.wikipedia.org/wiki/Gratis_versus_Libre#Free_as_in_free_beer_versus_free_as_in_free_speech [wikipedia.org]
Re: (Score:2, Informative)
is this what you are looking for?
freebeer.org [freebeer.org]
Re: (Score:2)
Man, you are working for the wrong company and/or going to the wrong school.
Oh, and us travelling s/w folks can also write off the odd drink too. Consider a job in support, consulting, sales, product management or the executive team. :-)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2, Insightful)
Re: (Score:2)
http://endandit.nl/regionaal/2007/07/20/gratis-bier-zuipen-op-larensche-hockeyclub [endandit.nl]
Free beer at Heineken Light events to promote the new beverage:
http://www.heinekenlight.com/index.html [heinekenlight.com]
TRavel agency TUI offereing "beer included" trips to Mallorca
http://mips.tui.de/MIPS/mips;MIPSSession=DJQMyD6xjL9ytLQlXXLmTY7Cdjk7B4vy0xRMyGcrWnG7VWfjnWy9!1378868524?cmd=init&mipsId=10039 [mips.tui.de]
Re:free as in beer? (Score:4, Interesting)
They already have IIS, and it takes 5 minutes to set it up. The cost of time alone on setting up a new box to run something else almost immediately negates the benefit in most IT manager's eyes when all they are seeing is consulting time to setup, manage, and maintain a linux box they know almost nothing about.
Re: (Score:2)
In my experience most IT manager's have little to no knowledge of either Windows or Linux. The extent of their knowledge seems to revolve around PPT slides on the cost/benefit of outsourcing. If they spent a little time educating themselves on the basics o
Re: (Score:2)
Re: (Score:3, Interesting)
As a PHP developer I care. I can convince someone to install a free official plugin by MS on his host, than convince him to buy something.
If it was paid, I'm sure, as any pointy haired management guy, he'd decide it's not important and run as CGI.
Then it's my fault it performs like crap.
Hence, it's a good thing it's there, and free.
--
So, that's about step 1 in the "Make PHP devs become Windows devs".
Now step 2: d
Re: (Score:2)
Rasmus Lerdorf must be pissed today (Score:4, Interesting)
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: (Score:2, Informative)
http://en.wikipedia.org/wiki/Php [wikipedia.org]
ah, php (Score:5, Funny)
Re: (Score:2)
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: (Score:2)
Re: (Score:2)
Actually, scratch that. What I want to see in the dim and distant future is a PHP HTTP SAPI module, so it can run its own webserver and I can proxy or not as needed.
and in other news ... (Score:3, Funny)
Methinks it's all over but the funeral for FOSS.
Re: (Score:2)
Re: (Score:2)
Better late than never.... (Score:2, Insightful)
I can understand Microsoft very well. What ill never understand is its fanbois.
Re:Better late than never.... (Score:4, Insightful)
I really want OSS to succeed, really. I love the philosophy, and hate the idea of MS being the 'Rome' of my lifetime (the empire that collapses, but only a long time after I die). However, I can't see it happening. This is because it feels like OSS has a natural tendency to stagnate when most developers think things are 'good enough'.
Where's a reliable FastCGI module for Apache? Where's a good config file format, and a GUI to edit it, for Apache? Where's a Linux distro with a GUI as intuative as Windows Explorer? Yes, I recently tried Ubuntu and was very disappointed that its GNOME GUI is *still*, in my opinion, leagues behind what MS and Apple have to offer.
OSS devs develop stuff they care about, to the level that they find acceptable. They generally don't take no shit from nobody, and if you want something done, you can do it yourself. Patch it. I love the theory, but the practice is this: people DON'T HAVE FUCKING TIME to patch it. Businesses often DON'T HAVE THE MONEY. OSS needs to adapt to a philosophy of developing stuff to be better even when they personally don't get much benefit from it, because otherwise businesses WILL just pay MS to get what they want. It sucks, but there you go.
"Hey, boss, we need to push out group policies over all machines on domains foo and bar. Windows has Group Policy Editor and Active Directory. We can do the same thing with Linux, but it will mean spending 5000 man hours developing, testing, and deploying scripts, because nobody has bothered to come up with a solution yet."
What would you choose for your business??
The trouble with FastCGI (Score:2)
FastCGI is a good idea that's underutilized, underdocumented, and undermaintained. It's straightforward enough; the web server launches a subprocess, as with CGI, to handle the transaction. But instead of running it only once, the transaction process can be reused to process additional transactions. The web server and transaction process communicate via interprocess communication over local sockets. If the transaction process crashes, the server starts another one. Multiple transactions processes can be
Re:Problem? (Score:5, Informative)
Re: (Score:3, Informative)
"Forking" (launching) a process is much more expensive on Windows than it is on Linux. Windows NT is architected after VMS (in part because of Dave Cutler). Processes are expensive on windows.
This is true because Windows and the Win32 require threads and assume they exist; if you want to spin-off a lightweight operation you kick up a new thread. Although most Unix systems have OS threads these days that wasn't always the case - processes were the word of the day for a long time and still are in some ways.
Re:Problem? (Score:5, Funny)
A. You're wrong. English is a living language. Any word that people understand as a verb is a verb. You understood what was written, therefore you are lying.
B. Your conclusion ("architected" is not a word) does not automatically follow from your premise (since "architect" is not a verb). Your logic is not logical.
C. Any grammer nazi who does not capitalize the first word in a sentence is a hypocrite.
D. Any grammar nazi who does not end sentences with a period is a hypocrite.
E. Any grammar nazi who complains that the "nazi" in "grammar nazi" should be capitalized does not understand how words can be used in a generic sense and thus no longer be proper names.
F. Grammar nazis suck.
Re: (Score:2)
B. - F. The rest of your points have no real bearing to the point at hand.
Re: (Score:2)
Re: (Score:3, Funny)
A. You're wrong. English is a living language. Any word that people understand as a verb is a verb. You understood what was written, therefore you are lying.
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: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.
Re: (Score:2)
Still, if only PHP could fix their threading issues in their modules, it'd make sense to run scripts in worker threads (using Apache 2, of course) and Linux webservers would appear to run faster.
Re: (Score:3, Informative)
Re: (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: (Score:3, Interesting)
Didn't hurt my feelings; even probably implies that you have good reason to believe something. Good reason, not "well this is how I view things." I'm just sick of
If such follies as UAC in Vista is any indication (and that's just the tip of one very bloate
Re: (Score:3, Insightful)
Re: (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: (Score:2)
Re: (Score:3, Insightful)
Cygwin doesn't use the kernel's fork support because Cygwin is built upon on Win32. SFU can beca
WAMP + .NET - How? (Score:2, Interesting)
So how can I run all my lovely
I use LAMP/WAMP plenty and often, but
If Apache under Windows could offer
Before anyone tells me to write my web services using some lame Java technology - JUST DON'T!!!!
Re: (Score:3, Funny)
Re: (Score:2)
Even as a often-self-brewer, there is something to be said for "it exists and works well, or at least well enough". It is often nice to not have to go through the effort of making it yourself (or improving it to your needs).
Re: (Score:2)
You do realize that you're going to be awfully thirsty, considering that rather contradictory statement? ;)
Turn about (Score:2)
Re: (Score:2)
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: (Score:2, Informative)
Re: (Score:2)
Re: (Score:2)
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).
Re:Stop the insanity. (Score:4, Informative)
Re: (Score:2)
Re: (Score:2)
Then why not go Microsoft all the way and swap PHP for ASP.NET?
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: (Score:2)
Re: (Score:2)
Why don't you try Mandriva 2008? It has wizards for everything - ideal for the pointy-clicky masses.