How to install uploadprogress module

A simple way to implement upload status for an administration panel. Based on AJAX and my JavaScript LoadVars class, this method doesn’t need anything else to show uploading status on a simple form based html page.

To intall uploadprogress module, from the command line

pecl install uploadprogress

1) configure php.ini and add

extension=uploadprogress.so

2) restart apache for the changes to take effect.

/etc/init.d/httpd restart
If that does not work due to you having noexec on /tmp, as you should, you can then compile it from source.

cd /usr/local/src

wget http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz
tar -zxvf uploadprogress-1.0.3.1.tgz
cd uploadprogress-1.0.3.1
phpize
./configure
make
make install

Edit php.ini file and add

extension = “uploadprogress.so”

Below the line
extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20090626”

service httpd restart

install nginx with upload progress module

1. cd /usr/local/src
2. wget http://nginx.org/download/nginx-1.5.3.zip

wget https://github.com/masterzen/nginx-upload-progress-module/tarball/v0.8.4

3. tar xzvf nginx-1.5.3.zip

tar xzvf masterzen-nginx-upload-progress-module-v0.8.4-0-g82b35fc.tar.gz

4. cd nginx-1.5.3

./configure –prefix=/opt \
–sbin-path=/opt/sbin/nginx \
–conf-path=/opt/etc/nginx/http-nginx.conf \
–error-log-path=/var/log/http-nginx/error.log \
–http-log-path=/var/log/http-nginx/access.log \
–pid-path=/var/run/http-nginx.pid \
–lock-path=/var/lock/http-nginx.lock \
–user=nobody \
–group=nobody \
–with-http_realip_module \
–with-rtsig_module \
–with-http_gzip_static_module \
–with-http_stub_status_module \
–with-http_ssl_module \
–without-mail_pop3_module \
–without-mail_imap_module \
–without-mail_smtp_module \
–add-module=/usr/local/src/masterzen-nginx-upload-progress-module-82b35fc/

5. make

6. make install

Restart Nginx service

/etc/init.d/nginx <start/stop/restart>

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Stats and Monitoring Process tool

Mysqlmymonlite Stats and Monitoring process free tool, Bash shell script tool used to gather...

cPanel Game Server Installation

cPGS is a software module that allows you to set up and run a game server. You are even able to...

Attracta SEO Tools Installation

Attracta SEO tool will verify that your website has not been flagged by Google as containing...

Server load alerts shell script

Simple Server load alerts shell script to monitor your server load average, Free Memory and Swap...

Powered by WHMCompleteSolution