Topic: How to install the Nginx Upload Progress Module??
Hi There..
I have this plugin installed on WHM. I would like to know how to install the Nginx Upload Progress Module?? Via whm/cpanel/nginx interface?
Thanks in advance.
Empowering Technology Innovations
You are not logged in. Please login or register.
Linux Server Management | Web Hosting Support | Outsourced Spport | Enterprise Cluster Administration | Software Development by Syslint Technologies → Help and Support → How to install the Nginx Upload Progress Module??
Hi There..
I have this plugin installed on WHM. I would like to know how to install the Nginx Upload Progress Module?? Via whm/cpanel/nginx interface?
Thanks in advance.
Hello Jbl,
This is fully customizable plugin. You can compile any version of nginx server with any extra modules . Please read the info here http://forum.syslint.com/topic/109/manu … mpilation/
I have got it compiled now.. but I need to know how to add this to the nginx.conf file... The first bit is my current conf file.. but I need to add the second bit to the conf file correctly... any help is appreciated.
Current conf file:
# cPanel Nginx Master configuration
user nobody;
error_log logs/error.log;
#Number of worker you need
worker_processes 1;
# How many connections a worker can handle maximum.
events {
worker_connections 50000;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server_names_hash_max_size 10000;
server_names_hash_bucket_size 1024;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
include "/usr/local/nginx/conf/vhost.conf";
include "/etc/cpnginx/cpanelproxy.conf";
}
And this is what I need to add to the above file:
Nginx Configuration
--------------------------
You must be running the nginx webserver compiled with MasterZen's Upload Progress module.
Then, you must configure nginx.conf to track upload progress correctly (the ... are your existing configuration) :
http {
...
# Upload Progress: reserve 1MB under the name 'uploads' to track uploads
upload_progress uploads 1m;
server {
...
location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) $1?X-Progress-ID=$2;
}
location ^~ /progress {
report_uploads uploads;
}
...
#if you are using php-fpm or fast_cgi
location ~ \.php$ {
...
fastcgi_index index.php;
track_uploads uploads 60s;
}
#or if you have nginx acting as a proxy
location ~ \.php$ {
...
proxy_redirect default;
track_uploads uploads 60s;
}
}
Any ideas how to add this correctly?
Hello,
To add the upload progress correctly do the following,
1) Install upload progress module
2) Create a file called /etc/cpnginx/uploadprogress.conf and add the following line
#########
server {
listen 80;
location ^~ /progress {
report_uploads proxied;
}
}
############
3) Now edit the file /etc/cpnginx/vhost.conf and add the following line
track_uploads proxied 30s;
4) Now go to WHM -> Plugin page and edit the nginx.conf and add the following line inside "http "
upload_progress proxied 1m;
include "/etc/cpnginx/uploadprogress.conf";
So these all the configurations need. The final files looks like as follows,
-------------/etc/cpnginx/vhost.conf--------------
##################################
client_max_body_size 200m;
client_body_buffer_size 128k;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 32k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_connect_timeout 30s;
track_uploads proxied 30s;
###################################
---------------------nginx.conf------------------------------
################################################
# cPanel Nginx Master configuration
user nobody;
error_log logs/error.log;
#Number of worker you need
worker_processes 1;
# How many connections a worker can handle maximum.
events {
worker_connections 50000;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server_names_hash_max_size 10000;
server_names_hash_bucket_size 1024;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
upload_progress proxied 1m;
include "/etc/cpnginx/uploadprogress.conf";
include "/usr/local/nginx/conf/vhost.conf";
include "/etc/cpnginx/cpanelproxy.conf";
}
##########################
------------------------/etc/cpnginx/uploadprogress.conf------------------------
###############################
server {
listen 80;
location ^~ /progress {
report_uploads proxied;
}
}
#################################
Now rebuild vhost configuration using /script/rebuildnginxvhost and restart it
PS: Please test the above and post your findings here
ok.. I did what ya said.. but it errors at the end when I try to rebuild the script. Here is the error:
[emerg]: unknown directive "upload_progress" in /usr/local/nginx/conf/nginx.conf:29
configuration file /usr/local/nginx/conf/nginx.conf test failed
Hello,
Are you sure you installed the progress bar module in nginx server ?
I believe so... this is how I compiled it... the progress mod is added at the bottom..
./configure --prefix=/usr/local/nginx \
--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=www-data \
--group=www-data \
--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/src/masterzen-nginx-upload-progress-module-8b55a34/
is there a command to confirm it..??
Hello,
Your compilation is wrong , you can't add the following options , becuase the nginx log files and configurations are in predefined locations .
--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 \
use the following configuration
./configure --prefix=/usr/local/nginx --add-module=/usr/src/masterzen-nginx-upload-progress-module-8b55a34/
make
make install
ok.. did that... and now when I run the rebuild script I get the below error
[emerg]: unexpected end of file, expecting "}" in /etc/cpnginx/uploadprogress.conf:8
configuration file /usr/local/nginx/conf/nginx.conf test failed
There was a typo in the file /etc/cpnginx/uploadprogress.conf . Edit it and add "}" at the end of file
Now I get this:
[emerg]: "track_uploads" directive track_upload should be the last directive in the location, after either proxy_pass or fastcgi_pass in /usr/local/nginx/conf/vhost.conf:33
configuration file /usr/local/nginx/conf/nginx.conf test failed
It is no possible to add this after the proxy_pass in this nginx plugin.
So there is no way to get this to work? It is an imperative feature for video and image upload status.
Any update...??
Tks.
Even you enable this module you need to edit the code in your application to manage the progress tool . You can also use flash uploader . We will consider this as a feature request and let us see how other users need this or not.
I have to code edited for the module to work, just to get the proper coding for the nginx.conf file. Flash uploader is not an option unfortunatly. I think other users will need this as well... as it is the only way to display the progress status etc.
Linux Server Management | Web Hosting Support | Outsourced Spport | Enterprise Cluster Administration | Software Development by Syslint Technologies → Help and Support → How to install the Nginx Upload Progress Module??
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.