Author |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Thu 30 Aug '12 18:09 Post subject: Apache on Windows servers for production usage? |
|
|
Do you also use Apache on Windows servers for production usage?
When reading on stackoverflow and some other places, it is not recommended to use Apache on Windows for production, but instead use IIS+PHP.
What is your opinion? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 30 Aug '12 18:20 Post subject: |
|
|
I run it and it runs solid like a rock with the right hardware.
Also this page, apachelounge, is running on windows with apache. Never had performance issues. |
|
Back to top |
|
Xing Moderator
Joined: 26 Oct 2005 Posts: 49
|
Posted: Thu 30 Aug '12 19:28 Post subject: Re: Apache on Windows servers for production usage? |
|
|
Materix wrote: | When reading on stackoverflow and some other places, it is not recommended to use Apache on Windows for production, but instead use IIS+PHP. | Can you be more specific ? What are the reasons ?
Should be interesting to know
I run both and must say that both are stable and performance is on par. Apache wins in flexibility and feature set, more and more IIS is implementing (stealing ?) Apache features, see the latest marketing compare at http://learn.iis.net/page.aspx/703/iis-for-apache-administrators/ . The list there is not complete, they try to be competitive with Apache.
When I compare the official IIS forum and Apache list, then my opinion is that IIS is harder to configure. |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Thu 30 Aug '12 19:50 Post subject: Re: Apache on Windows servers for production usage? |
|
|
Xing wrote: | Can you be more specific ? What are the reasons ?
Should be interesting to know
| Most arguments have been concerning stability and speed. |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Thu 30 Aug '12 23:53 Post subject: |
|
|
James Blond wrote: | I run it and it runs solid like a rock with the right hardware.
|
What do you mean by "right hardware"? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 31 Aug '12 11:06 Post subject: |
|
|
Fast harddrive, enough RAM, fast CU with 4 or more cores and one or two gigabit network connectors. |
|
Back to top |
|
hankman
Joined: 08 Jan 2008 Posts: 24 Location: Veghel, NL
|
Posted: Fri 31 Aug '12 13:51 Post subject: |
|
|
Hi, I've got 2 Windows 7 based servers running with the latest Apache, PHP and MySql software. I'm using very modest hardware (CPU with single core, 1GB memory) and both servers run like clockwork!! |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Fri 31 Aug '12 17:07 Post subject: |
|
|
hankman wrote: | Hi, I've got 2 Windows 7 based servers running with the latest Apache, PHP and MySql software. I'm using very modest hardware (CPU with single core, 1GB memory) and both servers run like clockwork!! |
Is there not a limit in number of current connection to a Windows 7 machine? |
|
Back to top |
|
hankman
Joined: 08 Jan 2008 Posts: 24 Location: Veghel, NL
|
Posted: Fri 31 Aug '12 22:41 Post subject: |
|
|
You're right. In Windows 7 the maximum number of logged on users is 20. You can check this yourself:
Open the "Command Prompt" as Administrator.
Type "net config server" and check for "Maximum Logged On users".
This is the number of maximum inbound connections, or concurrent connections.
This number of connections is enough for my purposes, but I can imagine you need more. I guess that there are patches or registry tweaks to change the related TCP settings. Some google searches might give you that answer. If not, you have to change to Windows 2008 R2 server.
Regards. |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Sun 02 Sep '12 8:54 Post subject: |
|
|
I whose use Apache on Windows for a 4-5 years 3 months ego i switch to IIS.
I still testing my script on apache writing mod rewrite rules then just simple import into ULR Rewrite.
On Apache i use mod_limitipconn and Mod Dosevasive on IIS i had "Dynamic IP restriction".
About performance by PHP is almost the same but IIS use fastcgi on Apache windows is only poor,buqy fcgid.
But on static content i see big difference. Apache 2.4 drop support to mod_memcache what is for me bad decision. Almost all dedicate server had software raid not hardware raid so even use mod_disc cache will be user more CPU time.
On IIS i can cache static content in kernel what is fantastic also when some dynamic script are in high usage i can add rule to cache them.
No need use watch_dog like in apache when apache hang sometimes one time per year you are f***ked.
Yes you can use win Apache on production server but when for you is important even 1% or better performance use IIS. Of course is not about software but you knowledge |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 03 Sep '12 15:31 Post subject: |
|
|
Kanashii wrote: |
About performance by PHP is almost the same but IIS use fastcgi on Apache windows is only poor,buqy fcgid.
|
What is buggy about fcgid? I don't have problems with it.
Kanashii wrote: |
But on static content i see big difference. Apache 2.4 drop support to mod_memcache what is for me bad decision. Almost all dedicate server had software raid not hardware raid so even use mod_disc cache will be user more CPU time.
|
Did you try mod_socache_memcache ?
Admin Note: Topic splitted, about mod_socache_memcache see http://www.apachelounge.com/viewtopic.php?p=22534 |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Wed 05 Sep '12 5:16 Post subject: |
|
|
I still use 2.2 :0 |
|
Back to top |
|