Ticket #73 (closed enhancement: fixed)

Opened 6 years ago

Last modified 10 months ago

check PHP_FCGI_CHILDREN and warn if it's not set for fcgi mode

Reported by: moo Owned by: moo
Priority: major Milestone: 3.0.0
Component: cacher Version: 1.2-dev
Keywords: Cc:
Blocked By: PHP Version:
Application: Need User Feedback: no
Other Exts: SAPI: FastCGI
Probability: Blocking:

Description

See  http://forum.lighttpd.net/topic/5207. fcgi must be in prefork mode instead of "alone mode"

Change History

Changed 6 years ago by moo

  • sapi set to FastCGI

Changed 6 years ago by judas_iscariote

Index: xcache.c
===================================================================
--- xcache.c    (revisión: 366)
+++ xcache.c    (copia de trabajo)

@@ -2519,6 +2529,14 @@
                }
        }

#ifndef PHP_WIN32
+       if(strcmp(sapi_module.name, "cgi-fcgi") == 0) {
+           if((getenv("PHP_FCGI_CHILDREN") == NULL) || (atoi(getenv("PHP_FCGI_CHILDREN")) < 1)) {
+                zend_error(E_WARNING, "XCache: PHP_FCGI_CHILDREN must be >=1");
+           }
+       }
+#endif
+
        xc_config_long(&xc_php_size,       "xcache.size",        "0");
        xc_config_hash(&xc_php_hcache,     "xcache.count",       "1");
        xc_config_hash(&xc_php_hentry,     "xcache.slots",      "8K");

I guess something kinda that can help... ;)

Changed 10 months ago by moo

  • status changed from new to closed
  • type changed from task to enhancement
  • resolution set to fixed
  • pending unset

implemented in [974]

Changed 10 months ago by moo

  • milestone changed from 2.2.0 to 2.1.0
Note: See TracTickets for help on using tickets.