You can simply run
pecl install uploadprogress
If that does not work due to you having noexec on /tmp, as you should, you can then compile it from source.
A good how to is here:
Download latest software from
PECL :: Package :: uploadprogress
tar -zxvf uploadprogress-1.0.0.tgz
make install will show
# make install
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
There will be line with the above path in php.ini
Edit php.ini file and add
extension = "uploadprogress.so"
Below the line
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
Now php -m will list uploadprogressbar as a module
Now restart web server
service httpd restart
An excellent step by step tutorial for creating upload progress bar using php and ajax can be found here: