Page 1 of 1

Apache v/s IIS

Posted: Thu Jul 02, 2009 2:51 am
by pritam79
Which is the best server among IIS and Apache to run PHP scripts? What are the potential advantages/disadvantages of running PHP in IIS and Apache? Which one is ideal for beginners?

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 3:14 am
by VladSun

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 4:44 am
by SeaJones
Opinion is split, but I tend towards Apache (or sometimes Light) purely because it'll do everything I need, and is Open Source, meaning I can run an entire site without touching any closed source software.

When it comes down to it, some stuff is harder (and some is easier) when using IIS, and your best looking at what features you will need before choosing one. Look at the many blogs that have the debate on, but bear in mind what you want to do as well.

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 11:12 am
by akuji36
I think Apache is easier for beginners to setup and there's lots of

online support for it. See xampp:

http://www.apachefriends.org/en/xampp.html

However I've been told that ms iis is more secure ..but I still

prefer Apache.

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 11:12 pm
by pritam79
akuji36 wrote:I think Apache is easier for beginners to setup and there's lots of

online support for it.

Which one would be the ideal one to start developing in PHP for beginners- IIS or Apache?

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 11:39 pm
by califdon
pritam79 wrote:
akuji36 wrote:I think Apache is easier for beginners to setup and there's lots of online support for it.
Which one would be the ideal one to start developing in PHP for beginners- IIS or Apache?
If you are programming in PHP, what difference does it make what web server you use to interpret the PHP?

Re: Apache v/s IIS

Posted: Thu Jul 02, 2009 11:57 pm
by pritam79
califdon wrote:If you are programming in PHP, what difference does it make what web server you use to interpret the PHP?
I just wanted to know "What about using apache+windows to develop in php and not linux+apache at all"

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 12:40 am
by califdon
That's what I mean. What difference would it make? There is no difference in the code that you write.

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 1:19 am
by matthijs
Apache has .htaccess, IIS not. so that's a big difference and advantage of apache. Certainly considering many open source applications and frameworks like Zend's use that feature (maybe not always strictly needed, but still)

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 11:54 am
by califdon
matthijs wrote:Apache has .htaccess, IIS not. so that's a big difference and advantage of apache. Certainly considering many open source applications and frameworks like Zend's use that feature (maybe not always strictly needed, but still)
Oh yeah, that's true. But for a beginner like the OP, I think it makes not one bit of difference.

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 12:15 pm
by matthijs
califdon wrote:
matthijs wrote:Apache has .htaccess, IIS not. so that's a big difference and advantage of apache. Certainly considering many open source applications and frameworks like Zend's use that feature (maybe not always strictly needed, but still)
Oh yeah, that's true. But for a beginner like the OP, I think it makes not one bit of difference.
Maybe not. But so many apps use it and in general there's a lot of stuff you can do with htaccess which might come in handy ("how do I protect a directory", "how do I redirect people", etc etc). So it will probably come in handy as soon as a beginner comes in the next stage and learns to use all these little things

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 12:22 pm
by Eran
Apahce has a proven track record with PHP, not so much for IIS. The online documentation and support is certainly several notches higher for Apache with PHP. Unless there are outstanding circumstances, I'd recommend going with Apache as the webserver.

Re: Apache v/s IIS

Posted: Fri Jul 03, 2009 12:26 pm
by jackpf
akuji36 wrote:However I've been told that ms iis is more secure ..
Whoever told you that must have been on crack.