Index: filefield.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.install,v retrieving revision 1.36 diff -u -r1.36 filefield.install --- filefield.install 29 May 2009 22:32:23 -0000 1.36 +++ filefield.install 3 Jul 2009 22:01:14 -0000 @@ -55,7 +55,8 @@ // Report Drupal version if ($phase == 'runtime') { $implementation = filefield_progress_implementation(); - $apache = strpos($_SERVER["SERVER_SOFTWARE"], 'Apache') !== FALSE; + $apache = strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== FALSE; + $fastcgi = strpos($_SERVER['SERVER_SOFTWARE'], 'mod_fastcgi') !== FALSE || strpos($_SERVER["SERVER_SOFTWARE"], 'mod_fcgi') !== FALSE; $php_52 = version_compare(phpversion(), '5.2.0', '>'); $description = NULL; if (!$apache || !$php_52) { @@ -63,6 +64,11 @@ $description = $t('Your server is not capable of displaying file upload progress. File upload progress requires PHP 5.2 and an Apache server.'); $severity = REQUIREMENT_INFO; } + elseif ($fastcgi) { + $value = $t('Not enabled'); + $description = $t('Your server is not capable of displaying file upload progress. File upload progress requires PHP be run with mod_php and not as FastCGI.'); + $severity = REQUIREMENT_INFO; + } elseif (!$implementation && extension_loaded('apc')) { $value = $t('Not enabled'); $description = $t('Your server is capable of displaying file upload progress through APC, but it is not enabled. Add apc.rfc1867 = 1 to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.');