Slashdot Log In
PHP Optimized for Windows Server 2008
Posted by
Zonk
on Tue Mar 04, 2008 11:22 AM
from the dogs-and-cats-living-together dept.
from the dogs-and-cats-living-together dept.
Stony Stevenson writes "It used to be that popular PHP applications would run more poorly on Windows Server than on a Linux or Unix servers, for which PHP had been optimized. Specialist in the PHP language Zend Technologies now says that's no longer the case. The Zend Core commercially supported form of PHP has been certified by Microsoft as ready to run 'with performance and stability' on Windows Server 2008, said Andi Gutmans, co-founder and CTO of Zend. Previously, PHP 'didn't run as well as it should on Windows,' said Gutmans, despite the fact that 75% to 80% of PHP users were developing on Windows workstations."
Related Stories
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
In Short (Score:5, Insightful)
FastCGI != Apache Module (Score:5, Informative)
I applaud the effort to embrace open source languages though and hope they continue along this path of self improvement.
Re: (Score:3, Interesting)
http://wordpress.org/support/topic/150672 [wordpress.org]
-theGreater's $0.02.
Re:FastCGI != Apache Module (Score:5, Informative)
Of course, in the case of PHP, there's an extra incentive. I don't trust PHP's security or sanity for shit. So I'd much rather have it running in its own process with its own permissions than have it dynamically linked directly into my webserver
Parent
Re: (Score:3, Insightful)
Re: (Score:3, Funny)
Re: (Score:3, Informative)
If you're running stuff like $query="INSERT INTO `users` (`name`) VALUES '${_GET['name']}';";, it really doesn't matter what language you're using.
But a language which uses this kind of thing, rather than a printf analogue with encoded type information is much more likely to encourage this kind of code. The PostgreSQL C interface contains a printf-like function which doesn't include the arguments in the SQL string at all, it puts pointers to arguments and the arguments themselves in the packet sent to the server so there is no escaping ever required because string arguments never go through the SQL parser. The same is true of most databases, and ye
Re: (Score:2)
Re: (Score:3, Interesting)
It would be interesting to compare the performance to that of Python [insert
Re: (Score:3, Informative)
FastCGI's benefit is that every FastCGI handler is still a separate process, so you don't run into threading issues, while at the same time not
Light on details (Score:2, Insightful)
Other incapatiblities (Score:3, Insightful)
Re: (Score:2, Funny)
Because the Mac is an irksome piece of shit with a bad UI and uninteresting hardware.
Misleading (Score:5, Insightful)
Re:Misleading (Score:5, Insightful)
Parent
Re:Misleading (Score:5, Funny)
Parent
Re: (Score:3, Funny)
I suppose you could make a very complex analogy about tailgate parties or something, but it really seems like too much trouble.
Re: (Score:2)
Re: (Score:2, Insightful)
Not for PHP applications, no. Good enough for light testing, but not production.
Re:Misleading (Score:5, Informative)
Only if you have problems reading English. That sentence clearly speaks about development, not deployment.
Parent
Re: (Score:3, Insightful)
well, unless those developers run windows 2008 server on their workstations.
Re: (Score:3, Insightful)
Only if you have problems reading English. That sentence clearly speaks about development, not deployment.
No, he was right on the mark. You are correct that the sentence clearly says development. But the point is that mentioning development in this context is misleading. It doesn't matter where code is written, it matters where the code is run, if you are talking about the performance of the code. TFA is misleading in that respect. It seems their point has an underlying assumption that development and production should be on the same OS or something like that; under that assumption the quote makes sense. It's
Re: (Score:2, Informative)
Re: (Score:2)
Frankly, I was pleasantly surprised they even had PHP configured on their boxes at all (I thought it was only ASP at first). And a pretty up-to-date version as well.
Re:Misleading (Score:5, Insightful)
My company's PHP based software runs over 95 percent on IIS servers. We have a single customer that uses linux for their web server platform (a university). We're talking about big customers here, like Siemens and ISS (one of the world's largest cleaning firms), with dozens of servers each running our platform, all of them Windows servers.
We've been deploying PHP on fastcgi the whole time. ISAPI has never been stable, and CGI has always been too slow.
Tthe situation changes for non-intranet web apps. Those tend to be linux-hosted because people tend to outsource their hosting. But for in-house hosted software, most of the time you have to fall back on the existing network team, who is usually specialized in windows, so they tend to prefer windows-based web servers, even if it's just for the sake of uniformity.
Parent
Nothing to do with optimization (Score:5, Interesting)
Re: (Score:2)
It's like CGI in that you can write FastCGI apps in all sorts of different languages, and they are more portable across different webservers (if they support fastcgi and you can figure out how to turn it on).
Years ago I tested my FastCGI perl apps which were on Apache on a Zeus webserver and they worked fine (can't recall if they worked faster, they might have
Marketing (Score:3, Interesting)
Surely it should also run better on all windows servers so why just 2008? Unless they're trying to find reasons for you to upgrade..
Re:Marketing (Score:4, Insightful)
Parent
Re: (Score:2)
Changes to IIS, with related changes by Zend. Sounds like the two coordinated changes improve performance.
PHP on Windows (Score:5, Insightful)
Just kidding. Seriously, though, it said "commercially supported form of PHP". Be sure to take a big mental note of that.
Commercial == fee's. Based on Zends track record of charging for things, it's not going to be cheap for single developers... I have a feeling it'll be in the area of $800-$1500 per CPU or something silly like that [zend.com]... in which case, why not just use a UNIX/derivative?
If you have to contact sales to find out the price (Score:5, Informative)
Then the answer is: "More than it's worth."
Parent
Why not Apache? (Score:5, Insightful)
Re: (Score:2)
Re: (Score:2)
So my question is: Why use 2 web servers when you can use only one, especially one thats already installed and locked down?
Re:Why not Apache? (Score:5, Funny)
Parent
Re: (Score:3, Interesting)
In 2004-05, I wrote a PHP application for a client. We had agreed ahead of time that the app would be written in PHP. Upon delivery, everything worked great on the test (WIMP) server that I set up myself. When the technician was called in to put the application in production, he said no problem. I should point out that the fellow is a hard-core and experienced MCSE.
A month later, the application was not installed. I called the technician to find out what was happening, and I was given the story of be
Re:Why not Apache? (Score:4, Funny)
Parent
Re: (Score:3, Informative)
Re: (Score:2)
Re: (Score:2)
closed source = security through obscurity.
Let's not start this flameware / debate again.
Hmm (Score:2, Flamebait)
another prese (Score:2)
On the other hand, if there's a market segment used to paying somebody for their software, and paying every year to keep it running, wouldn't that be a great market
Re:another prese (Score:4, Informative)
You're probably perfectly aware that there are a large section of Linux using shops who are perfectly happy to pay, hence the success of RHEL and to a lesser extent SuSE and now Ubuntu all of which offer support around free stuff.
The fact that Zend has worked with IBM on PHP for i5 (AS400) and with Microsoft for decent PHP on Windows only increases the choice of platforms PHP developers have to deploy on, makes PHP projects more popular across other user bases and means that PHP developers have a wider range of employment opportunities available to them. I don't think anyone is under the illusion that the future of PHP development is at 6 person consultancies who specialize in tweaking free CMSs, surviving on that free good stuff and creating pure karma (with no disrespect to small web consultancies intended, but it's a limited niche to attract new active members to the community).
If you'd like to spend your time pitching PHP as a strategic application development option to Fortune 500 companies, government departments and other enterprises, I'm sure we'd all be delighted, but there's not much chance of you spending your time doing that, nor quite frankly of those entities listening to you. They do however talk to Zend.
Zend isn't imposing a cost/tax on anybody or demanding that people pay homage/tribute, especially as PHP is a community project and not owned by Zend. During the past 2 years Zend has increased the amount of free and open source work they've done (Zend Framework and the Eclipse-based PDT) so it's not like they take and don't give.
If there is value companies can get from Zend's solution set, then they will pay for it. And they do. It's simple cost-benefit equations. WRT your "siphoning off revenue" if you look at all the companies in the Open Source space (including MySQL, EZ Publish, Acquia and other) they all provide value adds.
And yeah, I work for Zend. And no, you don't have to buy our stuff (but at least come check it out). And no the decision to monetize PHP wasn't made by executives on the fringe of the FOSS world, but rather technology people in the middle of it. (I have no idea whether they have hair up their asses like you claim - but can gladly inform you that that's not a sound basis for a business strategy unless you're a barber looking for a niche....)
Parent
Optimized double misery (Score:4, Funny)
Re:Optimise your spell check (Score:5, Informative)
Parent
Re:Optimise your spell check (Score:5, Funny)
Parent
Re: (Score:2, Interesting)
Maybe I should become one of the 75% to 80% of PHP developers who use this 'Windows' thing and see the difference myself.
Re: (Score:2)
Re: (Score:3, Informative)
Singular with an s-ending takes word+'s
Plural without an s-ending takes word+'s
Plural with an s-ending takes word+es'
The United Nations (and other singular entities with plural names) takes word+'s
Between this and contraction forms, it's pretty obvious why apostrophes are dyin