Lightweight web app server for PHP?

前端 未结 10 1051
青春惊慌失措
青春惊慌失措 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:50

    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.

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

    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.

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

    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?

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

    You should try sng.

    It is script which launches a PHP/Nginx development server quickly without any admin privileges. In is made in nodejs

    You can install it very easily with :

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