PECL uploadprogress extension on Mac OS X using Fink
To use the eye candy uploading progress meter of the CCK FileField module you need to install either the APC byte cache or the PECL uploadprogress extension.
Install uploadprogress
Installing uploadprogress is quite easy using the PHP5 package from Fink (a Debian like package manager for Mac OS X).
(Make sure you have the Fink packages php5-dev and php5-pear installed and are using the Fink php5 packages at all.)
Run this commands inside a Terminal window:
- <br>
- /sw/bin/pecl download uploadprogress<br>
- tar zxf uploadprogress-1.0.0.tgz<br>
- cd uploadprogress-1.0.0/<br>
- /sw/bin/phpize5<br>
- ./configure --enable-uploadprogress --with-php-config=/sw/bin/php-config5<br>
- make<br>
- sudo make install<br>
- cd ..<br>
- rm -rf uploadprogress-1.0.0*<br>
- echo 'extension=uploadprogress.so' > /sw/etc/php5/conf.d/uploadprogress.ini<br>
Notes about using Fink
- When using PHP5 from Fink it is recommended to use Apache from Fink too (apache2-mpm-prefork). I did not try Fink's PHP5 package with Apple's Apache.
- Have a look at the PHP5 packages from Fink here: http://pdb.finkproject.org/pdb/browse.php?summary=php5
- Packages I'm using for local developing of Drupal stuff: apache2, apache2-common, apache2-dev, apache2-docs, apache2-mpm-prefork, apache2-utils, libapache2-mod-php5, php-pear, php5, php5-cli, php5-common, php5-curl, php5-dev, php5-gd, php5-mcrypt, php5-mhash, php5-mysql, php5-mysqli, php5-pear, php5-pgsql, php5-xsl
- I'm using Fink unstable, see more about it here: http://www.finkproject.org/faq/usage-fink.php?phpLang=en#unstable
Original Article: