From: <am...@us...> - 2012-09-13 15:48:19
|
Revision: 42940 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42940&view=rev Author: amette Date: 2012-09-13 15:48:10 +0000 (Thu, 13 Sep 2012) Log Message: ----------- [ENH] Indicate if mod_php or CGI Modified Paths: -------------- trunk/tiki-check.php Modified: trunk/tiki-check.php =================================================================== --- trunk/tiki-check.php 2012-09-13 15:26:58 UTC (rev 42939) +++ trunk/tiki-check.php 2012-09-13 15:48:10 UTC (rev 42940) @@ -246,6 +246,22 @@ ); } +// PHP Server API (SAPI) +$s = php_sapi_name(); +if (substr($s, 0, 3) == 'cgi') { + $php_properties['PHP Server API'] = array( + 'fitness' => tra('information'), + 'setting' => $s, + 'message' => tra('You are running PHP as CGI. Feel free to use a threaded Apache MPM to increase performance.') + ); +} else { + $php_properties['PHP Server API'] = array( + 'fitness' => tra('information'), + 'setting' => $s, + 'message' => tra('You are not running PHP as CGI. Be aware that PHP is not thread-safe and you should not use a threaded Apache MPM (like worker).') + ); +} + // memory_limit $memory_limit = ini_get('memory_limit'); $s = trim($memory_limit); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |