I'm getting:

"Your server is not capable of displaying file upload progress. File upload progress requires PHP 5.2 and an Apache server."

I have an apache server with PHP 5.2.11-0.dotdeb.1 and I also have APC and PELC Uploadprogress installed. Neither APC nor uploadprogress seem to be recognized by filefield. That or it's not recognizing my php version or apache webserver.

Anyone know why I'm getting the above error? I have apache server and php 5.2+ like it says is needed.

Comments

ge’s picture

Try adding the following line to the Dynamic Extensions section of your php.ini:

extension=uploadprogress.so

Then restart Apache.

cerup’s picture

Thanks for the suggestion, but I have that in my php ini and my phpinfo shows that 'upload progress' is installed. My error isn't that PECL or APC isn't loaded, but that apache and 5.2 aren't. So I think the error is due to not seeing either apache or php correctly on my site when it's checking.

I also realized that uploadprogress doesn't work with php as fastcgi so I guess it doesn't matter much at this point.

quicksketch’s picture

Status: Active » Fixed

Yep, uploadprogress will not work with FastCGI. If needing to confirm uploadprogress is enabled, check your PHPinfo at admin/reports/status/php.

cerup’s picture

Uploadprogress is enabled. If I comment out the check for php and apache then the status changes and says upload progress is installed.

So apparently the check for php and apache are returning flase. Maybe it doesn't like the mix of characters in my php version PHP 5.2.11-0.dotdeb.1 and therefore is returning false.

I might try switching to APC (since upload progress doesn't work with fastcgi), but the only way I can test is by commenting out the first php52 and apache check (since this returns false although I have 5.2+ and apache2). So it's a problem with the apache/php check/if statement, not a problem with finding uploadprogress.

Status: Fixed » Closed (fixed)

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

Phillip Mc’s picture

Status: Closed (fixed) » Active

i'm having the same issue cerup...i.e. apc and uploadprogress are installed and the relevant lines are in the php.ini but drupal still thinks it's not enabled.

just wondering if you found a solution.

quicksketch’s picture

To help with things I've downgraded the warning to simply an info message. If your PHP installation is returning a string like "5.2.11-0.dotdeb.1" that could indeed be causing a problem, since it probably won't pass this comparison:

$php_52 = version_compare(phpversion(), '5.2.0', '>');
Francewhoa’s picture

I wrote a how-to handbook for Ubuntu at http://drupal.org/node/793262

Other OS at http://drupal.org/node/793264

quicksketch’s picture

Status: Active » Closed (fixed)