Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ge CreditAttribution: ge commentedTry adding the following line to the Dynamic Extensions section of your php.ini:
extension=uploadprogress.so
Then restart Apache.
Comment #2
cerup CreditAttribution: cerup commentedThanks 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.
Comment #3
quicksketchYep, uploadprogress will not work with FastCGI. If needing to confirm uploadprogress is enabled, check your PHPinfo at admin/reports/status/php.
Comment #4
cerup CreditAttribution: cerup commentedUploadprogress 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.
Comment #6
Phillip Mc CreditAttribution: Phillip Mc commentedi'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.
Comment #7
quicksketchTo 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:
Comment #8
FrancewhoaI wrote a how-to handbook for Ubuntu at http://drupal.org/node/793262
Other OS at http://drupal.org/node/793264
Comment #9
quicksketch