Hi, not sure whether this is a bug or something else...
The progress bar seems to be working fine. However, I still get this message when running cron:

Your server is not capable of displaying file upload progress. File upload progress requires PHP be run with mod_php and not as FastCGI.

The site is hosted with www.bluehost.com, and in PHP configuration I have single.phi activated, not fastcgi.

Comments

quicksketch’s picture

What is "single.phi"? This error probably shows up every time you visit admin/reports/status, rather than being specific to Cron.

FileField attempts to figure out if your server is running PHP as FastCGI by checking the $_SERVER['SERVER_SOFTWARE'] global. However it's not 100% accurate. What's the value of SERVER_SOFTWARE for you? You can check by visiting admin/reports/status/php.

Here's the line that determines if you're running FastCGI or not:

    $fastcgi = strpos($_SERVER['SERVER_SOFTWARE'], 'mod_fastcgi') !== FALSE || strpos($_SERVER["SERVER_SOFTWARE"], 'mod_fcgi') !== FALSE;
LarsKramer’s picture

Single phi just means that the php.ini in the root folder is used for all sites on my account.

I already took a look at that code line. However, I don't know sufficient PHP/Apache to understand what it means.

The value of SERVER_SOFTWARE is:
Apache/2.2.16 (CentOS) mod_ssl/2.2.16 0.9.8l DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635

quicksketch’s picture

So according to your server string, FastCGI is running as indicated by the mod_fcgid part. However, this doesn't necessarily mean that FastCGI is being used for PHP (it's just very likely). Like I said FileField does its best to guess if you're running PHP as mod_php (a native Apache extension) or as FastCGI. Given your server string, I think it made a likely guess. I certainly would expect PHP to be running as FastCGI given that same information. I'm not sure that there's much to be done, a false warning is better than saying that upload progress should work fine when it doesn't.

LarsKramer’s picture

Got this answer from Bluehost support:

That is correct the server API is still going to report Server API CGI/FastCGI even if you are not using fastcgi because php has still been compiled as CGI. If uploadprogress is working then just ignore the error or disable error logging.

Feel free to close the issue. It seems there is no way to solve it. Thanks for your time

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.