Note: This post was created awhile back on another platform and I migrated to my current one.
Howto install PECL uploadprogress
I need the uploadprogress
PHP module for jQuery progress bar. The reason why my boss and I chose this progress bar over the others out there is because this one does not use Flash. Flash has some annoying bugs, making web development frustrating, and at the same time, it makes our code ugly—full of band-aids and workarounds.
Furthermore, it was difficult to find any upload module for jQuery that doesn’t require Flash. The reason for this is that JavaScript runs on the client side and cannot track progress on the server side. So how can the progress bar gauge the completion percentage? The answer is a PHP module named uploadprogress
.
Anyway, in most Linux distributions, you install the module and add a line in php.ini
such as:
|
|
and you’re done. Not in Debian!
Step 1: Installing
|
|
Step 2: The Debian way of enabling uploadprogress.so
You need to create a file in conf.d
to enable any PHP extension in Debian.
|
|
Here’s what my uploadprogress.ini
looks like:
|
|
Step 3: Restart Apache2
|
|