Re:PHP Built-In Web Server
by tardismechanic on Sunday August 23, 2020 @08:28PM
(#24256521)
> Warning
This web server was designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.
[ Parent
| on HN ]
Want to bet some people will integrate this into their "prod" Docker containers?
I smell a Medium article coming up.
This built-in server has been around since March 2012. If there are any Medium articles to be written, they're probably out there already.
Titled "5 Reasons you don't need Apache/nginx anymore", filled with misinformation, and a comment section full of people ripping it apart.
Or at least that's been my experience with Medium since I started using it a few months ago.
Re:PHP Built-In Web Server
by johnchristopher on Monday August 24, 2020 @06:29AM
(#24259240)
I bet people won't. Ready-made docker solutions are based around nginx/apache and shared hosting stacks were in place long before php built-in webserver was available. There's no reasons and incentives to change all that.
“A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.”
― Douglas Adams
Re:PHP Built-In Web Server
by frenchman99 on Monday August 24, 2020 @06:11AM
(#24259152)
This web server has been available for a long time. Sure you can misuse pretty much any technology. Rolling your own crypto is possible too but most people don't do it.
People tend to use ready-made Docker containers for PHP deployment. The official PHP image has apache and fpm versions: https://hub.docker.com/_/php/
Most of the enterprise world (which still accounts for far more code in production than startupland) doesn't use Docker.
But they also don't use this web server. I don't think I've ever heard of anyone using this web server, actually, even for development.
Yup. With the way how php has being deploying over the last 20 years I wouldn't be surprised.
Re:PHP Built-In Web Server
by throwaway8941 on Monday August 24, 2020 @01:13AM
(#24257687)
It's also pretty slow. I use it in development sometimes, and it easily blocks on a single long request.
Works fine for development though, or if you want a quick and dirty solution to send a large file to a smartphone (or whatever).
Looks like that as of 7.4 it supports multiple workers for concurrent request handling.