Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67571 invoked from network); 8 Dec 2009 00:49:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2009 00:49:41 -0000 Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 209.85.223.182 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.223.182 mail-iw0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:57858] helo=mail-iw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/D6-33458-3A2AD1B4 for ; Mon, 07 Dec 2009 19:49:41 -0500 Received: by iwn12 with SMTP id 12so3636393iwn.27 for ; Mon, 07 Dec 2009 16:49:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.9.33 with SMTP id j33mr1886081ibj.37.1260233377462; Mon, 07 Dec 2009 16:49:37 -0800 (PST) In-Reply-To: <4B1D9C1F.3020205@oracle.com> References: <4B190660.2050107@daylessday.org> <4B197CB2.2050506@zend.com> <4B1CC918.2090408@daylessday.org> <4B1D4E1F.7030006@zend.com> <065254F2-CE2C-406F-AFDA-C1A1204F2093@gmail.com> <4B1D5E75.3050907@zend.com> <3bea96c40912071216o57b59e9dy5a744f0109eb595f@mail.gmail.com> <3bea96c40912071610p4b584220we65df0be0d52f0cc@mail.gmail.com> <4B1D9C1F.3020205@oracle.com> Date: Tue, 8 Dec 2009 01:49:37 +0100 Message-ID: <3bea96c40912071649i1837a40al7366626c9a02d3e@mail.gmail.com> To: Christopher Jones Cc: php-dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] FPM is available in a separate SVN branch From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Le 8 d=E9cembre 2009 01:21, Christopher Jones a =E9crit : > > > J=E9r=F4me Loyet wrote: >> Yes it could be this way ... but you do repeat the pattern ('pool2') >> for each entry. There is about 30 lines for each workers ... no >> imagine having a multiuser environment with 30 customers ... you have >> 900 times a useless repeated pattern ... gnurf > > If there are deficiencies in php.ini syntax, then propose an > enhancement and/or work around them in FPM. =A0Having two syntaxes in > use will be more confusing in the long term. It could be something like: ; general conf ; [/] optional section pid=3D/var/run/php-fpm.pid log_level=3Dnotice ;pool1 [/worker] name=3Dpool1 [/worker/listen] address=3D127.0.0.1:9001 [/worker/pm] style=3Ddynamic max_children=3D32 [/worker/env] HOSTNAME=3D$HOSTNAME [/worker/php_define] short_open_tags =3D On ;pool2 [/worker] name=3Dpool2 [/worker/listen] address=3D127.0.0.1:9002 ... In this case conf file is very flat. I don't know if identation is available with INI (hope so). As there is no closing section all entries have to be ordered correctly (this is not easy for the end user). There is a workarround with adding accolades (or similar): [/worker{] [/worker/listen{] [}] [}] But in this case we have almost the same syntax as ngninx (with brackets arround sections and =3D signs to separate keys and values). At the begening of the reflexion the choice of nginx has been made because most of php-fpm users will use nginx or lighthttp (apache as its well known module) and some developpement have been made for nginx at the first place. As the question is "which is the best syntax for end users" I want to ask this question "Who are the end users of php-fpm and what are their willing ?".