Hello, I use an ispconfig 3 setup using nginx. I can upload 2mb files but cannot upload anything larger. I have tried all kinds of different settings. My phpinfo shows the correct upload size limits yet I still receive a Failed! message when I upload files larger than 2mb. The media upload page shows the proper limit. I tried changing it in the global php.ini and my own website container. No dice.
I can't find much in the way of errors but this is from the nginx error log. I'm not even sure if this is related.
I have already reviewed this and several forum posts without a solution.
https://www.dokuwiki.org/faq:uploadsize#fcgi_users
2015/03/09 19:49:06 [info] 28202#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:76
2015/03/09 19:49:06 [info] 28210#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:76
2015/03/09 19:49:35 [info] 1614#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:76
2015/03/09 20:09:40 [info] 1666#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:76
The php.ini file contains the following modifications for dokuwiki
register_globals = Off
short_open_tag = Off
output_buffering = Off
output_handler =
zlib.output_compression = Off
implicit_flush = Off
allow_call_time_pass_reference = Off
max_execution_time = 30
max_input_time = 60
max_input_vars = 10000
memory_limit = 32M
error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
register_argc_argv = Off
magic_quotes_gpc = Off
magic_quotes_sybase = On
file_uploads = On
session.use_cookies = 1
session.cache_limiter = nocache
upload_max_filesize = 100M
post_max_size = 100M
My Nginx directives
server {
listen [::]:443 ssl;
listen 443 ssl;
server_name PRIVATE***PRIVATE;
# Maximum file upload size is 100MB - change accordingly if needed
client_max_body_size 100M;
client_body_buffer_size 128k;
root PRIVATE****PRIVATE;
index doku.php;
location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; }
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 31536000s;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate";
log_not_found off;
}
location / { try_files $uri $uri/ @dokuwiki; }
location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1&$args last;
}
location ~ \.php$ {
try_files $uri $uri/ /doku.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_pass unix:/php-fpm/socket;
}
}
Dear Macgyver, please save my dog.