Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a Rails developer with some Drupal 6 experience.

When I'm developing on Rails, I'm used to modifying my code and then relaunching:

cd /my/project/path

This will launch an instance of WEBrick, and my site will be available at http://localhost:3000, which is very convenient for testing - it doesn't require me to configure any Apache files and doesn't require admin rights.

In contrast now the only way I know for serving PHP pages is configuring an Apache virtualhost, which isn't as "agile".

Is there something as convenient as WEBrick, for PHP?

share|improve this question
up vote 2 down vote accepted

I found it quite easy to use lighttpd in development, e.g.:

lighttpd -f lighttpd.conf
lighttpd -f ~/.lighttpd/drupal.conf
lighttpd -f ~/path-to-your-project/etc/lighttpd.conf

See also answers to similar question at stackoverflow:

share|improve this answer
Thanks for the answer! – egarcia Jul 15 '11 at 8:39

A built-in webserver will be included in a future version of PHP.

share|improve this answer
Thanks for your answer. I could not find any other server, so I'm accepting this as valid for now. – egarcia Apr 14 '11 at 8:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.