Ticket #73 (new task)

Opened 18 months ago

Last modified 16 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: 2.0.0
Component: cacher Version: 1.2-dev
Keywords: Cc:
Blocked By: PHP Version:
Application: Need User Feedback:
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 18 months ago by moo

  • sapi set to FastCGI

Changed 16 months 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... ;)

Note: See TracTickets for help on using tickets.