Lightweight web app server for PHP?

前端 未结 10 1079
青春惊慌失措
青春惊慌失措 2021-02-04 14:00

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 w

相关标签:
10条回答
  • 2021-02-04 14:38

    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.

    0 讨论(0)
  • 2021-02-04 14:44

    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,

    0 讨论(0)
  • 2021-02-04 14:44

    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.

    0 讨论(0)
  • 2021-02-04 14:45

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

    0 讨论(0)
  • 2021-02-04 14:46

    have you taken a look at lighthttpd?

    0 讨论(0)
  • 2021-02-04 14:47

    For development, just use...

    php -S 127.0.0.1:8080

    0 讨论(0)
提交回复
热议问题