Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72151 invoked from network); 9 Dec 2009 23:12:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2009 23:12:19 -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.195 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 209.85.223.195 mail-iw0-f195.google.com Received: from [209.85.223.195] ([209.85.223.195:51209] helo=mail-iw0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/59-25115-8CE202B4 for ; Wed, 09 Dec 2009 18:12:16 -0500 Received: by iwn33 with SMTP id 33so5189666iwn.29 for ; Wed, 09 Dec 2009 15:12:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.122.36 with SMTP id j36mr983399ibr.21.1260400323167; Wed, 09 Dec 2009 15:12:03 -0800 (PST) In-Reply-To: References: <3bea96c40912090655i263115bbid923deb2bdf296a6@mail.gmail.com> <3bea96c40912090944r23831b52pc57dae2b7905c15@mail.gmail.com> <7.0.1.0.2.20091209200857.07a9da50@zend.com> <3bea96c40912091117g7281a0d1na83630aec93f90fc@mail.gmail.com> <3bea96c40912091152l1be7115ft1c977f9f437ef0d9@mail.gmail.com> <3bea96c40912091215o6c566819v34873d445d02b858@mail.gmail.com> Date: Thu, 10 Dec 2009 00:12:03 +0100 Message-ID: <3bea96c40912091512p5ee4283aha1d3f7d72851c784@mail.gmail.com> To: Tjerk Anne Meesters Cc: Michael Shadle , Zeev Suraski , Pierre Joye , Antony Dovgal , php-dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PHP-FPM] syntax of configuration file From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Le 9 d=E9cembre 2009 23:25, Tjerk Anne Meesters a =E9cri= t : > Hi, > > ini files can be split, so it doesn't all have to be inside one > monolithic php.ini is there a way to include files ? include /etc/php-fpm/*.conf ? with one file per worker for example ? I think adding include to ini should not be a problem if it's not already d= one. > > I agree that repetition doesn't look nice; it would be nice to have > something like: > > [fpm.worker.worker1] > listen =3D 127.0.0.1:1900 > uid =3D webservice > > Etc. > > Didn't really pay attention to those pool settings, but I guess those > could be sections as well such as [fpm.pool.pool1] pool and worker are the same ... it's pool of workers in fact :) The simpliest way is to have only one level of section [fpm] ; for global conf pid =3D /var/run/php-fpm.conf [fpm.worker.default] listen_address =3D 127.0.0.1:9000 listen_ower =3D www ; in case of using unix socket instead of inet pm =3D static ; or dynamic max_children =3D 15 start_servers =3D 1; only for dynamic chroot =3D /var/www/pool1 user =3D www ... [fpm.worker.admin] listen_address =3D 127.0.0.1:9001 user =3D www_admin ... > > > > On 12/10/09, J=E9r=F4me Loyet wrote: >> Le 9 d=E9cembre 2009 20:56, Michael Shadle a =E9crit= : >>> 2009/12/9 J=E9r=F4me Loyet : >>> >>>> do you mean that it would be included in the global php.ini file ? I >>>> never imagine that. For me it's an independant conf file >>>> (/etc/php-fpm.conf for example). >>> >>> correct. I don't see any reason for a different configuration file anym= ore >>> >> >> In my mind, daemon options (php-fpm) and php conf (extensions and >> global php conf) are diff=E9rent things. Having all in the same file >> will be harder to use in a mutualized environment where several >> instances php-fpm running. And the goals of the two files or not the >> same. Moreover having a complex array syntax is, as I said before, >> hard to read and write. >> >> what are thoughts from other on this point ? >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > -- > -- > Tjerk >