News for hackers. Stuff that matters.
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.
Re:PHP Built-In Web Server by phre4k on Monday August 24, 2020 @01:58AM (#24257877)
Want to bet some people will integrate this into their "prod" Docker containers?
Re:PHP Built-In Web Server by ClikeX on Monday August 24, 2020 @02:21AM (#24257963)
I smell a Medium article coming up.
Re:PHP Built-In Web Server by akie on Monday August 24, 2020 @04:31AM (#24258545)
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.
Re:PHP Built-In Web Server by toxican on Monday August 24, 2020 @12:49PM (#24262497)
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.
Re:PHP Built-In Web Server by Mary-Jane on Monday August 24, 2020 @07:34PM (#24266688)
“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/

Re:PHP Built-In Web Server by bovermyer on Monday August 24, 2020 @07:58AM (#24259766)
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.

Re:PHP Built-In Web Server by deepstack on Monday August 24, 2020 @05:05AM (#24258743)
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).

Re:PHP Built-In Web Server by halfdan on Monday August 24, 2020 @02:31AM (#24258016)
Looks like that as of 7.4 it supports multiple workers for concurrent request handling.
Re:PHP Built-In Web Server by deweller on Monday August 24, 2020 @07:09AM (#24259494)
It is also single threaded. One would see serious performance issues if one tried to use this in production with any significant traffic.