PHP performance differences under Windows / IIS 7 and Linux / Apache?

Now there is a PHP application on a Linux server under Apache with MySQL. Since we are a Windows store, management wants to get rid of the Linux box and move everything to windows. Is there a performance difference between the two platforms? Or, is there a significant difference at all in terms of performance or management?

+6
performance php apache iis
source share
4 answers

Microsoft had a team to help optimize PHP for Windows, which is part of PHP 5.3. Some of the numbers I've seen show performance close to PHP + Apache on a unix system. Prior to 5.3 (which means that currently, since 5.3 is not yet complete), performance is poor on Windows. I think there are some fixes and tricks you can do to improve it, but it will cost you a bit of performance. This may or may not be a problem; People tend to overestimate productivity.

Note that there are other reasons to use unix than just performance. The code may be incompatible, and although the main php works pretty well, you may run into problems with php extensions and third-party libraries. Regardless of how you look at this, Windows is the second speed to run php.

+5
source share

If your application is not huge or hit a couple of thousand times per second, there is no difference between them. LAMP == WAMP in small php projects. Just install something like XAMPP if you want your environment to be as close as possible to the existing one, but on Windows.

Good luck with your project!

+2
source share

You should consider MS WebPI (download at www.microsoft.com/web), which would install the entire stack for running PHP in IIS7.

performance is comparable for most applications.

+1
source share

I just did it for the same reason. Mgt wanted to get rid of the Linux box. I was able to fully migrate the php application and MySQL database. It took me more time to configure PHP for IIS than for me to move existing content. I found that the IIS server is slower when it comes to loading pages and images. Where in Linux it appeared instantly, in IIS it takes half a second to load a page, and the other for images.

0
source share

All Articles