enable turck/eaccellerator for apache2handler as well
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 15 Mar 2005 21:03:36 +0000 (21:03 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 15 Mar 2005 21:03:36 +0000 (21:03 +0000)
config/index.php

index fe366ea..9b93deb 100644 (file)
@@ -1084,8 +1084,8 @@ if ( \$wgCommandLineMode ) {
 ## Shared memory settings
 \$wgUseMemCached = $memcached;
 \$wgMemCachedServers = $mcservers;
-{$turck}\$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name() == 'apache';
-{$turck}\$wgUseEAccelShm = function_exists( 'eaccelerator_get' ) && php_sapi_name() == 'apache';
+{$turck}\$wgUseTurckShm = function_exists( 'mmcache_get' ) && ( php_sapi_name() == 'apache' || php_sapi_name() == 'apache2handler' );
+{$turck}\$wgUseEAccelShm = function_exists( 'eaccelerator_get' ) && ( php_sapi_name() == 'apache' || php_sapi_name() == 'apache2handler' );
 
 ## To enable image uploads, make sure the 'images' directory
 ## is writable, then uncomment this: