[PHP-DEV] PHP-FPM process management woes

2021-12-20 Thread Derick Rethans
Hi! In the last few days I have been investigating Xdebug bug #2051: "Segfault on fatal error when setting xdebug.mode via php-fpm pool config" (https://bugs.xdebug.org/view.php?id=2051). I have now tracked this down to an unexpectedness in how PHP-FPM handles extension/module initialisation.

[PHP-DEV] PHP-FPM Configuration Files listed in phpinfo()

2021-06-25 Thread Mark Tomlin
Hello internals, It would be nice if when using the php-fpm sapi, that phpinfo() function would report the php-fpm.conf file(s) that it's using to serve this page. I've moved servers a lot over the last 2 months and each package maintainer has their own locations for these configuration files.

Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-23 Thread Alexander Lisachenko
Hello, internals! I remember the crazy code for invalidating the opcache/realpath entries from CLI. Logic was the following: tool asks for the server name with php-fpm to connect to via ssh connection, then it prepares a small PHP-file and uploads it to the temp directory on this server and then

Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-22 Thread Ferenc Kovacs
On Mon, Jun 22, 2015 at 9:26 PM, Sebastian Bergmann wrote: > On 06/19/2015 05:46 PM, Rasmus Lerdorf wrote: > > I think this is a symptom of doing deploys incorrectly. > > You are right, of course. Thank you for pointing out this layer 8 > problem :-) No clue why I did it different (read: stupid

Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-22 Thread Sebastian Bergmann
On 06/19/2015 05:46 PM, Rasmus Lerdorf wrote: > I think this is a symptom of doing deploys incorrectly. You are right, of course. Thank you for pointing out this layer 8 problem :-) No clue why I did it different (read: stupid) for a private project when I know better. Oh, well. -- PHP Intern

Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-19 Thread Rasmus Lerdorf
On 06/19/2015 08:43 AM, Sebastian Bergmann wrote: > Scenario: nginx + PHP-FPM / FastCGI. > > The final step of the deployment is updating a symlink to point to the > new version. > > For N <= realpath_cache_ttl seconds after the deployment, some > filesystem operations fail because of outdat

Re: [PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-19 Thread Chris Wright
On 19 June 2015 at 13:43, Sebastian Bergmann wrote: > Scenario: nginx + PHP-FPM / FastCGI. > > The final step of the deployment is updating a symlink to point to the > new version. > > For N <= realpath_cache_ttl seconds after the deployment, some > filesystem operations fail because of outd

[PHP-DEV] PHP-FPM: How to clear the realpath cache on deployment?

2015-06-19 Thread Sebastian Bergmann
Scenario: nginx + PHP-FPM / FastCGI. The final step of the deployment is updating a symlink to point to the new version. For N <= realpath_cache_ttl seconds after the deployment, some filesystem operations fail because of outdated realpath cache entries. Is there a way to signal the PHP-FP

Re: [PHP-DEV] PHP-FPM state

2014-11-20 Thread David Zuelke
Well, there are two changes there (not sure why "move zlog_set_level() again shows up twice in the log"?) One changes the pm.start_servers calculated default message to a notice (makes total sense IMO). The other moves zlog_set_level() so it's called earlier, or else the log level isn't set ye

Re: [PHP-DEV] php-fpm and systemd integration

2013-05-18 Thread Remi Collet
Le 17/05/2013 18:44, Remi Collet a écrit : > Any feedback before I process ? >From proposal from Jérôme, I have add a new "systemd_interval" option to configure the interval between 2 systemd notification (0 means disabled, except initial notification which stay mandatory by design) Note : this

Re: [PHP-DEV] php-fpm and systemd integration

2013-05-18 Thread Ivan Enderlin @ Hoa
On 17/05/13 18:44, Remi Collet wrote: Hi, Hi, I plan to allow php-fpm to be aware of systemd and so, use the type=notify mode. I'd like to apply to attached patch to 5.4 and 5.5, as this change have no impact on standard build (need new --with-fpm-systemd build option). Any feedback before

Re: [PHP-DEV] php-fpm and systemd integration

2013-05-17 Thread Remi Collet
Le 17/05/2013 18:44, Remi Collet a écrit : > I plan to allow php-fpm to be aware of systemd and so, use the > type=notify mode. Just to be clear on the goal, this allow systemd to display some information about the health of the service (Status line) # systemctl php-fpm.service status Loaded: l

[PHP-DEV] php-fpm and systemd integration

2013-05-17 Thread Remi Collet
Hi, I plan to allow php-fpm to be aware of systemd and so, use the type=notify mode. I'd like to apply to attached patch to 5.4 and 5.5, as this change have no impact on standard build (need new --with-fpm-systemd build option). Any feedback before I process ? Remi. diff -up ../sapi/fpm/config

[PHP-DEV] php-fpm and systemd integration

2012-09-19 Thread Remi Collet
Hi, For now php-fpm provides and init.d sample script. I propose to also provide an unit sample file. During updating systemd management in fedora, I notice it is quite ugly to rely on configuration file for daemonize option, as user can change this value (testing purpose) and will break the la

Re: [PHP-DEV] PHP-FPM and max_execution_time

2012-03-07 Thread Christian Kaps
Hi, Am 07.03.2012 13:32, schrieb Antony Dovgal: On 03/07/2012 03:47 PM, Christian Kaps wrote: The Apache logs prints: FastCGI: comm with server "/home/christian.kaps/fcgi.sock" aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server "/home/christian.kaps/fcgi.s

Re: [PHP-DEV] PHP-FPM and max_execution_time

2012-03-07 Thread Antony Dovgal
On 03/07/2012 03:47 PM, Christian Kaps wrote: The Apache logs prints: FastCGI: comm with server "/home/christian.kaps/fcgi.sock" aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server "/home/christian.kaps/fcgi.sock" http://httpd.apache.org/mod_fcgid/mod/mod_f

[PHP-DEV] PHP-FPM and max_execution_time

2012-03-07 Thread Christian Kaps
Hi, before I submit a Bug report I wanted to validate if it's a bug or not. I try to increase the max_execution_time for a test script. What I have done is to set php_admin_value[max_execution_time] = 100 in the config for my pool. The phpinfo() output shows this value for max_execution_time.

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Michael Shadle
2009/12/9 Olivier Hill : > Hello Michael, > > Are you talking about this? > > --with-config-file-scan-dir=... > > http://www.radwin.org/michael/blog/2006/07/phpini_hacks_withconfigfil.html oh, duh - I guess I am. Except it would be nice to have it inside of php.ini itself and not defined at compil

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Olivier Hill
Hello Michael, Are you talking about this? --with-config-file-scan-dir=... http://www.radwin.org/michael/blog/2006/07/phpini_hacks_withconfigfil.html Regards, Olivier 2009/12/9 Michael Shadle : > 2009/12/9 Jérôme Loyet : > >> is there a way to include files ? >> include /etc/php-fpm/*.conf ? w

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Michael Shadle
2009/12/9 Jérôme Loyet : > 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 > done. I would love to see the php ini file support includes like MySQL does. Probab

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 23:25, Tjerk Anne Meesters a écrit : > 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 b

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Tjerk Anne Meesters
Hi, ini files can be split, so it doesn't all have to be inside one monolithic php.ini I agree that repetition doesn't look nice; it would be nice to have something like: [fpm.worker.worker1] listen = 127.0.0.1:1900 uid = webservice Etc. Didn't really pay attention to those pool settings, but

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 20:56, Michael Shadle a écrit : > 2009/12/9 Jérôme 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 differen

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Michael Shadle
2009/12/9 Jérôme 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 anymore -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 20:44, Michael Shadle a écrit : > I see it more like: > > fpm.global.daemonize = yes > fpm.global.error_log = /var/log/php-fpm.log > > or skip global: > > fpm.daemonize = yes > fpm.error_log = /var/log/php-fpm.log > > > for each worker pool: > > fpm.worker1.name = pool1 > fpm.wo

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Michael Shadle
I see it more like: fpm.global.daemonize = yes fpm.global.error_log = /var/log/php-fpm.log or skip global: fpm.daemonize = yes fpm.error_log = /var/log/php-fpm.log for each worker pool: fpm.worker1.name = pool1 fpm.worker1.address = 127.0.0.1:9000 ; or socket fpm.worker1.uid = www-data fpm.wo

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 19:17, Michael Shadle a écrit : > 2009/12/9 Zeev Suraski : > >> We should be using INI unless there are compelling reasons against it, now >> that this project becomes a part of the PHP source tree.  As far as I can >> tell there are no such compelling reasons and it can actuall

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Michael Shadle
2009/12/9 Zeev Suraski : > We should be using INI unless there are compelling reasons against it, now > that this project becomes a part of the PHP source tree.  As far as I can > tell there are no such compelling reasons and it can actually map quite > nicely into INI, hence, that's what we shoul

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Zeev Suraski
At 19:44 09/12/2009, Jérôme Loyet wrote: So let have the question another way: Do we keep XML or do we switch to something else ? If so, which format ? I and some others think xml is not appropriate here because of the complexity. So I do think there is a need to change. INI or other ? INI is u

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Alexey Zakhlestin
On 09.12.2009, at 20:44, Jérôme Loyet wrote: > Le 9 décembre 2009 17:16, Pierre Joye a écrit : >> hi, >> >> 2009/12/9 Jérôme Loyet : >> > We already discussed pros/cons of the two solutions. But why don't we > allow several syntaxes ? And let the end user to choose the better one >

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 17:16, Pierre Joye a écrit : > hi, > > 2009/12/9 Jérôme Loyet : > We already discussed pros/cons of the two solutions. But why don't we allow several syntaxes ? And let the end user to choose the better one for its need ? >>> >>> No. Thank you. >>> EOD >>> >> >> a

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Stanislav Malyshev
Hi! I think multiple syntaxes is an unnecessary complication, and they don't serve any useful purpose - neither of those syntaxes allow you to do something important that others don't. -- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Pierre Joye
hi, 2009/12/9 Jérôme Loyet : >>> We already discussed pros/cons of the two solutions. But why don't we >>> allow several syntaxes ? And let the end user to choose the better one >>> for its need ? >> >> No. Thank you. >> EOD >> > > and why of that ? Why is it already EOD wihtout arguing ? php-fpm

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Johannes Schlüter
Hi, I know little aobut FPM but: On Wed, 2009-12-09 at 15:55 +0100, Jérôme Loyet wrote: > We already discussed pros/cons of the two solutions. But why don't we > allow several syntaxes ? And let the end user to choose the better one > for its need ? No. Several syntaxes makes testing harder, is

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Le 9 décembre 2009 15:57, Antony Dovgal a écrit : > On 09.12.2009 17:55, Jérôme Loyet wrote: >> Hi guys, >> >> I start a new thread about the syntax that should be used in php-fpm >> to replace xml. >> >> As discussed before, there is different point on view on this subject: >> - INI to stay in th

Re: [PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Antony Dovgal
On 09.12.2009 17:55, Jérôme Loyet wrote: > Hi guys, > > I start a new thread about the syntax that should be used in php-fpm > to replace xml. > > As discussed before, there is different point on view on this subject: > - INI to stay in the PHP philosophy / practicals > - nginx because it was the

[PHP-DEV] [PHP-FPM] syntax of configuration file

2009-12-09 Thread Jérôme Loyet
Hi guys, I start a new thread about the syntax that should be used in php-fpm to replace xml. As discussed before, there is different point on view on this subject: - INI to stay in the PHP philosophy / practicals - nginx because it was the will of the original authors We already discussed pros/

Re: [PHP-DEV] PHP-FPM is now BSD-compatible, I believe there was interest in integrating it/portions of it into PHP core?

2009-06-26 Thread Stanislav Malyshev
Hi! I believe that Dmitry was interested in actually *replacing* the FastCGI SAPI with it (or at least patching it 100%) - the configuration options and "userland" usage of it is where I am not sure how it would "bundle" with PHP properly. It uses a different config syntax (not ini compatible)

Re: [PHP-DEV] PHP-FPM is now BSD-compatible, I believe there was interest in integrating it/portions of it into PHP core?

2009-06-26 Thread Michael Shadle
On Fri, Jun 26, 2009 at 12:14 PM, Stanislav Malyshev wrote: > Hi! > > It would be great if someone would examine the impact of adopting it >> as the FastCGI SAPI replacement or looking at what hooks are required >> to get it in and perhaps keep the "userland" stuff in PECL... >> > > Why it needs

Re: [PHP-DEV] PHP-FPM is now BSD-compatible, I believe there was interest in integrating it/portions of it into PHP core?

2009-06-26 Thread Stanislav Malyshev
Hi! It would be great if someone would examine the impact of adopting it as the FastCGI SAPI replacement or looking at what hooks are required to get it in and perhaps keep the "userland" stuff in PECL... Why it needs to replace existing fcgi SAPI? I would think it is better to have it just a

[PHP-DEV] PHP-FPM is now BSD-compatible, I believe there was interest in integrating it/portions of it into PHP core?

2009-06-26 Thread Michael Shadle
Andrei has turned the project over to me, and I am trying to keep it going full steam ahead. Rasmus told me the only thing stopping it from being adopted into PHP or PECL was the license. That has now changed. I don't believe it can be done in PECL, as it needs too many changes in PHP core. It w

Re: [PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
So if I'd like to see this added to the source, I'd have to convince the author? It's been almost two years since that thread... On Tue, Jun 2, 2009 at 2:00 PM, Hannes Magnusson wrote: > On Tue, Jun 2, 2009 at 19:46, Eddie Drapkin wrote: > > I don't know how popular, or well known, this little

Re: [PHP-DEV] PHP-FPM

2009-06-02 Thread Hannes Magnusson
On Tue, Jun 2, 2009 at 19:46, Eddie Drapkin wrote: > I don't know how popular, or well known, this little tool is, but I was > wondering if there was ever any consideration for it to be merged into the > main CVS tree and distributed with part of PHP, instead of a 3rd party > patch.  Link: http://

[PHP-DEV] PHP-FPM

2009-06-02 Thread Eddie Drapkin
I don't know how popular, or well known, this little tool is, but I was wondering if there was ever any consideration for it to be merged into the main CVS tree and distributed with part of PHP, instead of a 3rd party patch. Link: http://php-fpm.anight.org/ I'm pretty sure this is the right list,

Re: [PHP-DEV] php-fpm: patch for php4/5 to greatly improve FastCGI SAPI usage in production

2007-10-24 Thread Antony Dovgal
On 24.10.2007 11:21, Stanislav Malyshev wrote: >>> Hi, This was posted by the author of nginx (http://nginx.net/) a high >>> performance web-server/reverse proxy on the nginx mailing list >>> >>> http://php-fpm.anight.org/ >>> >>> Pages are primarily in Russian so if somebody can read/comment/blog

Re: [PHP-DEV] php-fpm: patch for php4/5 to greatly improve FastCGI SAPI usage in production

2007-10-24 Thread Stanislav Malyshev
Hi, This was posted by the author of nginx (http://nginx.net/) a high performance web-server/reverse proxy on the nginx mailing list http://php-fpm.anight.org/ Pages are primarily in Russian so if somebody can read/comment/blog about it, would be very much appreciated From what I understand, t

Re: [PHP-DEV] php-fpm: patch for php4/5 to greatly improve FastCGI SAPI usage in production

2007-10-23 Thread Antony Dovgal
On 24.10.2007 06:07, Yusuf Goolamabbas wrote: > Hi, This was posted by the author of nginx (http://nginx.net/) a high > performance web-server/reverse proxy on the nginx mailing list > > http://php-fpm.anight.org/ > > Pages are primarily in Russian so if somebody can read/comment/blog > about it,

[PHP-DEV] php-fpm: patch for php4/5 to greatly improve FastCGI SAPI usage in production

2007-10-23 Thread Yusuf Goolamabbas
Hi, This was posted by the author of nginx (http://nginx.net/) a high performance web-server/reverse proxy on the nginx mailing list http://php-fpm.anight.org/ Pages are primarily in Russian so if somebody can read/comment/blog about it, would be very much appreciated Regards, Yusuf -- Yusuf Go