Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28257 invoked from network); 6 Nov 2013 10:37:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2013 10:37:28 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.54 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 209.85.214.54 mail-bk0-f54.google.com Received: from [209.85.214.54] ([209.85.214.54:64362] helo=mail-bk0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/E3-26738-6EB1A725 for ; Wed, 06 Nov 2013 05:37:27 -0500 Received: by mail-bk0-f54.google.com with SMTP id 6so3446503bkj.27 for ; Wed, 06 Nov 2013 02:37:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=l3KyGp8gxs2C5AYUOqaSajR7c8YLJ190p/0VaVXYRjc=; b=rvCWP1qA5Eg7uVNUzglMroI+XIvcev/gwNX8g586CeFeCR+jaTX/x/sUFY8fI3WULV y5/p46n3qcLP/HGYPmFbSuHUMZ91k8ZfdoUlqhUvujDYR+PpgfTS21IWXurPOG4v18J3 LQYmDXle/XnICX61velNJOKqC3DoxpWoz3EArF96pzvgd/g7TCIglVuRErJTkma1rOn+ 2VhIxVBoASFDHChyV7o4x5wtET7/Jh90l52PgCvbCKFAclYfgR2dgUZ68qXEFqVi6ACE GtjlSHzYQwMJ5J7iRuBKan0MD0CLvuhDU7qV18jXEHRDiJpIVfdpENePa5TY+kKUGYNi 1rIw== X-Received: by 10.204.123.199 with SMTP id q7mr1645689bkr.10.1383734242191; Wed, 06 Nov 2013 02:37:22 -0800 (PST) Received: from [172.16.88.10] (p57A92924.dip0.t-ipconnect.de. [87.169.41.36]) by mx.google.com with ESMTPSA id l9sm22581248bkg.0.2013.11.06.02.37.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:37:21 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_5CBDC5A6-6FE6-4182-B980-AB3B39A14822" Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) In-Reply-To: Date: Wed, 6 Nov 2013 11:37:20 +0100 Cc: PHP internals Message-ID: References: <60B9BBE0-BC3F-490A-AD78-9EBC22C808CF@googlemail.com> To: Yasuo Ohgaki X-Mailer: Apple Mail (2.1816) Subject: Re: [PHP-DEV] CLI Web Server customization From: ingwie2000@googlemail.com (Kevin Ingwersen) --Apple-Mail=_5CBDC5A6-6FE6-4182-B980-AB3B39A14822 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 : > Hi Kevin, >=20 > On Wed, Nov 6, 2013 at 10:06 AM, Kevin Ingwersen = 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. >=20 > "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.=20 > (For instance, daemon tools by DJB may be used as good watch dog.)=20 >=20 > I think no one objects making cli server more like full featured web = server.=20 > Pull requests will be welcomed.=20 >=20 > 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.=20 >=20 > Current manual=20 > http://php.net/manual/en/features.commandline.webserver.php > states >=20 > "This web server is designed for developmental purposes only, and = should not be used in production." >=20 > at the beginning of the page. It may be too much now. > How about make it a note some thing like this? >=20 > "Note: Build-in web server is intended for web application = development. Use in production environment is > discouraged." >=20 > Any comments? >=20 > -- > Yasuo Ohgaki=20 > yohgaki@ohgaki.net --Apple-Mail=_5CBDC5A6-6FE6-4182-B980-AB3B39A14822--