Re: CLI Web Server customization

From: Date: Wed, 06 Nov 2013 10:37:20 +0000
Subject: Re: CLI Web Server customization
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70029@lists.php.net to get a copy of this message
Hello Yasuo! Thank you for your detailed response on this topic. I will look more into the source code of the CLI server and see what I can do. Sadly I am not a big C guy, but maybe the code will lead me into the right direction :) Yes, I have a watch dog over each process that I spawn (a seperate thrad which is dedicated to the process). So if the server decides to shut down, I can bring it back up immediately. Thank you again for the hint. I agree, the note should be changed some, it's a little bit misleading in my opinion. But I can see it's purpose, as most people will just use apache to serve PHP files. Kind regards, Ingwie. Am 06.11.2013 um 03:45 schrieb Yasuo Ohgaki <yohgaki@ohgaki.net>: > Hi Kevin, > > On Wed, Nov 6, 2013 at 10:06 AM, Kevin Ingwersen <ingwie2000@googlemail.com> wrote: > I am also curios about something else. Back in some time, the PHP manual read that the HTTP > server is "for development only". The problem is, I do not want to package an apache > webserver into the bundle - or do some nodejs scripting for some webserver. I'd like to stay on > a PHP basis. > > "For development only" note is there because cli server crash means stopped service. > If there is watch dog that restart cli server, then it's ok to use with any purpose as > long as > users don't care for restrictions/stability/security. > (For instance, daemon tools by DJB may be used as good watch dog.) > > I think no one objects making cli server more like full featured web server. > Pull requests will be welcomed. > > Anyway, the original author was made cli server to be used like Mongrel in Ruby. > That's the main reason of "for development only" besides the early stage of cli > server development. > > Current manual > http://php.net/manual/en/features.commandline.webserver.php > states > > "This web server is designed for developmental purposes only, and should not be used in > production." > > at the beginning of the page. It may be too much now. > How about make it a note some thing like this? > > "Note: Build-in web server is intended for web application development. Use in production > environment is > discouraged." > > Any comments? > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net

« previous php.internals (#70029) next »