Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
script/server

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
add comment

2 Answers

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: http://stackoverflow.com/questions/5437664/using-webrick-to-serve-php-web-applications

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

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
add comment

Your Answer

 
discard

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.