Changeset 1125 in svn for trunk/htdocs/diagnosis/index.php


Ignore:
Timestamp:
2012-08-05T03:32:16Z (3 years ago)
Author:
Xuefer
Message:

move api warning to diagnosis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/diagnosis/index.php

    r1103 r1125  
    386386}
    387387// }}}
     388checking(_T("SAPI Compatibility")); // {{{
     389
     390if (php_sapi_name() == "cgi" || php_sapi_name() == "cgi-fcgi" && !isset($_SERVER["FCGI_ROLE"])) {
     391    result(N_("error"), _T("CGI is not supported"), _T("Use FastCGI or FPM instead"));
     392}
     393else if (php_sapi_name() == "cgi-fcgi" && isset($_SERVER["FCGI_ROLE"]) && (int) getenv("PHP_FCGI_CHILDREN") < 1) {
     394    result(N_("error")
     395        , "PHP_FCGI_CHILDREN<1"
     396        , _T("PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. See http://xcache.lighttpd.net/wiki/Faq"));
     397}
     398else {
     399    result(N_("info"), _T("Looks good"));
     400}
     401// }}}
    388402
    389403include "./diagnosis.tpl.php";
Note: See TracChangeset for help on using the changeset viewer.