views:

1451

answers:

8

Hi,

I'm doing PHP development. And coming from a Rails background, I'm looking for a like-for-like replacement for Webrick in PHP. Is there such a light weight server? Something with minimal configuration and installation effort. Apache is actually fine. But I would like to know if there're other options. Or do most of you use Apache?

+6  A: 

have you taken a look at lighthttpd?

Owen
I'll second this, I use it in place of Apache, when need be.
Unkwntech
I've been using lighttpd exclusively for about a year now. WAY more efficient than Apache.
Eric Lamb
+1  A: 

Most here will use apache but there are other options. IBM posted a nice long article on the subject. Not all of them will support PHP.

Of these alternatives, lighttpd is probably the most popular.

Oli
+5  A: 

Back when Lighty was having many reports of memory leaks, someone mentioned Nginx. Ignore the ridiculous name, it's actually the best HTTPd I've ever used (and I've been using Apache since 1.1). Install PHP as FCGI rather than a module and you're golden.

Andrew
hide commentsI'll second this. easy to setup and easy to forget as it works perfectly. I have managed an instance of Nginx handling 2 Mongrels, PHP and serving static assets in the last 3 years. I just had to take care of upgrades time to time, everything works nice and fast.
Luca
Should probably mention that Lighty = lighttpd.
Christian Davén
A: 

You can optimize Apache as your need. I prefer Apache for it's robustness.

A: 

I use Apache for PHP development.

On Windows I recommend installing XAMPP - it's a full pre-configured PHP/MySQL stack.

Mac OS X can be a bit trickier, but I've managed with the pre-installed setup.

Toby Hede
A: 

You could try cherokee. It doesn't come configured with PHP out of the box, but it's easy to set up and very fast,

conmulligan
A: 

Regarding do most use Apache, the answer is yes. Most servers on the web are using Apache (mostly LAMP). PRobabyly the biggest reason is because Apache is very flexible works with just about anything. It has a lot of plugins and is very configurable. It is also very fast and runs on just about anything.

Darryl Hein
A: 

Almost everyone runs PHP in Apache, hardly anyone runs it with anything else. The risk of using something else is far outweighed by the benefit of using a standard application server platform.

If you did use some other web server, will PHP will continue to support it in future releases? (this is of course a problem for Apache as well, but more likely).

In what way is Apache not "Light enough" for you?

MarkR