Increase file upload size limit in PHP-Nginx Rumi, June 9, 2014 To change max file upload size to 100MB Edit… vim /etc/php5/fpm/php.ini Set… upload_max_filesize = 100M post_max_size = 100M Notes: Technically, post_max_size should always be larger than upload_max_filesize but for large numbers like 100M you can safely make them equal. There is another variable max_input_time which can limit upload size but I have never seen it creating any issue. If your application supports uploads of file-size in GBs, you may need to adjust it accordingly. I am using PHP-FPM behind Nginx from very long time and I think in such kind of setup, its Nginx to which a client uploads file and then Nginx copies it to PHP. As Nginx to PHP copying will be local operation max_input_time may never create issue. I also believe Nginx may not copy the file but merely hand-over the location of file or descriptor records to PHP! You may like to read these posts which explains PHP file upload related config in some details. Change in Nginx config Add following line to http{..} block in nginx config: http { #... client_max_body_size 100m; #... } Related Administrations Configurations (Linux) nginxphp
Troubled with broken Unicode Bengali fonts on onlyoffice document server February 24, 2023 I was observing an issue on using bengali unicode font on my nextcloud integrated onlyoffice server. After spening a lot hours over google- I found the following pieces of information- I was using onlyoffice server version 6.2 and on which the bengali font gets obfuscated and broken. After reading the… Read More
Remove Proxmox Subscription Notice November 1, 2020 Copy and paste following command to the terminal (6.1 and up) sed -i.backup “s/data.status !== ‘Active’/false/g” /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service (6.2-11 and up) sed -i.backup -z “s/res === null || res === undefined || \!res || res\n\t\t\t.false/false/g” /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service (6.2-12 and up) Related Read More
ip_conntrack table full, dropping packet July 3, 2016 Last week, I found myself with a server under low load, but it couldn’t make or receive network connections. When I ran dmesg, I found the following line repeating over and over: ip_conntrack: table full, dropping packet I’d seen this message before, but I headed over to Red Hat’s site… Read More