Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46345 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12505 invoked from network); 7 Dec 2009 20:16:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2009 20:16:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; 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:36175] helo=mail-iw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/68-31234-8926D1B4 for ; Mon, 07 Dec 2009 15:16:27 -0500 Received: by iwn12 with SMTP id 12so3454955iwn.27 for ; Mon, 07 Dec 2009 12:16:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.40.216 with SMTP id l24mr829724ibe.40.1260216982175; Mon, 07 Dec 2009 12:16:22 -0800 (PST) In-Reply-To: <4B1D5E75.3050907@zend.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> Date: Mon, 7 Dec 2009 21:16:22 +0100 Message-ID: <3bea96c40912071216o57b59e9dy5a744f0109eb595f@mail.gmail.com> To: Stanislav Malyshev Cc: Michael Shadle , Antony Dovgal , 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?=) 2009/12/7 Stanislav Malyshev : > Hi! > >> As for #1 we are working on changing the config file syntax and the idea >> was to make it use nginx style. I don't think it will fit in ini file fo= rmat >> as it needs arrays or some sort of n+1 group structure support/nested >> options. > > Nesting can be done by name, and .ini can do arrays. See here: > http://php.net/parse_ini_file > and also here: > http://framework.zend.com/manual/en/zend.config.adapters.ini.html > for how you can do stuff with .ini's :) > >> IIRC array support did just get inplemented in 5.3 did it not? That -may= - >> be an option then. Then fpm could actually share php.ini itself. Yes INI is natively handled in PHP (and adding the missing include function is easy) and I already did it. But the syntax is not that good for php-fpm, try to configure apache, tomcat or nginx with INI syntax ... it's a pain in the ass as xml is. Despite all that, php-fpm aim is to run as a standalone daemon which has never been the aim of any sapi before (maybe I'm wrong) and therefore INI syntax has never been used in a such context. Here is en example of nginx syntax and then INI ... I my mind there is no comparaison. pid /var/run/php-fpm.pid; error_log /var/log/php-fpm.log; log_level notice; emergency_restart_threshold 10; emergency_restart_interval 1m; process_control_timeout 5s; daemonize no; worker { name default; listen { address tcp:127.0.0.1:9000; backlog -1; owner nobody; group nogroup; mode 0666; } php_define short_open_tag=3DOn; user nobody; group nogroup; static { max_children 5; } dynamic { max_children 20; StartServers 5; MinSpareServers 5; MaxSpareServers 15; } request_terminate_timeout 0s; request_slowlog_timeout 0s; slowlog /var/log/php-fpm.log.slow; rlimit_files 1024; rlimit_core 0; chroot /usr/local/nginx/html; chdir /; catch_workers_output yes; max_requests 500; allowed_clients 127.0.0.1; env HOSTNAME=3D$HOSTNAME; env PATH=3D/usr/local/bin:/usr/bin:/bin; } And the same with ini pid =3D /var/run/php-fpm.pid error_log =3D /var/log/php-fpm.log log_level =3D notice emergency_restart_threshold =3D 10 emergency_restart_interval =3D 1m process_control_timeout =3D 5s daemonize =3D no worker.name=3D default; worker.listen.address =3D tcp:127.0.0.1:9000 worker.listen.backlog =3D -1 worker.listen.owner =3D nobody worker.listen.group =3D nogroup worker.listen.mode =3D 0666 worker.php_defineshort_open_tag =3D On worker.user =3D nobody worker.group =3D nogroup worker.static.max_children =3D 5 worker.dynamic.max_children =3D 20 worker.dynamic.start_servers =3D 5 worker.dynamic.min_spare_servers =3D 5 worker.dynamic.max_spare_servers =3D 15 worker.request_terminate_timeout =3D 0s worker.request_slowlog_timeout =3D 0s worker.slowlog =3D /var/log/php-fpm.log.slow worker.rlimit_files =3D 1024 worker.rlimit_core =3D 0 worker.chroot =3D /usr/local/nginx/html worker.chdir =3D / worker.catch_workers_output =3D yes worker.max_requests =3D 5000 worker.allowed_clients =3D 127.0.0.1 worker.env.HOSTNAME =3D $HOSTNAME worker.env.PATH =3D /usr/local/bin:/usr/bin:/bin > > [] was working in 5.2 too. 5.3 can do indexes. > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com =A0 http://www.zend.com/ > (408)253-8829 =A0 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >