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


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-
tar -zxvf uploadprogress-
cd uploadprogress-
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 \

5. make

6. make install

Restart Nginx service

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


Get Free cPanel Knowledge Base

Thank you for subscribing.

Something went wrong.

5.00 avg. rating (96% score) - 1 vote