It took me a while to figure out how to install this extension so I thought I'd do a quick post about it. These instructions are probably valid for other PECL extensions but since this is the only one I have installed I wouldn't like to say for sure.
Installation on Unix/Mac
Please note: These instructions are only valid if you have problems running
$ pecl install uploadprogress
.- Download the PECL uploadprogress extension
- Extract the uploadprogress-1.x.x.tgz archive, cd into the extracted folder and run these commands in Terminal:$ phpize # prepares the PHP extension for compiling
$ ./configure
$ make
$ sudo make install - Check that the directory for the extensions is correct. The last line of the output returned from the
$ make install
command (on my system) is:Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/
.Open php.ini and edit theextension_dir
directive, replacing it with this path. - Add the extension to php.ini by adding this line
extension=uploadprogress.so
- Restart apache
You should now have the PECL uploadprogress extension installed.
No comments:
Post a Comment