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
Book Review: Learning Nagios 4 by Wojciech Kocjan July 7, 2014July 7, 2014 Learning Nagios 4: Learn how to setup Nagios 4 in order to monitor your systems efficiently, Author- Wojciech Kocjan. Nagios- it is the most effective monitoring tool that actually helps to identify and resolve critical IT infra before they affect critical service operations. Above all, it is an open… Read More
Nextcloud Upgrade Issue via Web January 5, 2024January 5, 2024 My Nextcloud update via web was constantly failing. So looked for alternate CLI methods. Method#1 Using occ cli sudo -u www-data php ./occ upgrade Nextcloud or one of the apps require upgrade – only a limited number of commands are available You may use your browser or the occ upgrade… Read More
Upgrade Python 2.7 to 3.6 and installing pip on CentOS 7 April 2, 2021 Installing Development Tools Development tools are required for building Python modules. To install the necessary tools and libraries type: sudo yum groupinstall ‘Development Tools’ Enable Software Collections (SCL) Software Collections , also known as SCL is a community project that allows you to build, install, and use multiple versions of… Read More