Opened 8 years ago

Closed 2 years ago

Last modified 2 years ago

#73 closed enhancement (fixed)

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:
Application: PHP Version:
Other Exts: SAPI: FastCGI
Probability: Blocked By:
Blocking:

Description

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

Change History (4)

comment:1 Changed 8 years ago by moo

  • SAPI set to FastCGI

comment:2 Changed 7 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... ;)

comment:3 Changed 2 years ago by moo

  • pending set to 0
  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from task to enhancement

implemented in [974]

comment:4 Changed 2 years ago by moo

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