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
CentOS 5 Repository fix using vault.centos.org January 15, 2018March 24, 2019 It’s a bit silly process, googled hours but found not solid way to update my old 32bit centos 5 linux box. So came up with a solution of my own. It might work for you, but no guarantee! Step-1 Remove all .repo inside /etc/yum.conf.d/ directory Step-2 Create a new repo… Read More
Create a local ISO SR at XCP-NG March 22, 2023 From the CLI: Create a directory on the local filesystem to storage your ISOs Copy/move ISOs to this new location Create the ISO SR using xe sr-create You can add or update ISOs later by placing them into the directory you created in step 1 Rescan the SR if you… Read More
Proxmox VM is locked (backup) August 7, 2017 Problem found- Error show: Code: INFO: setting parameters failed – VM is locked (backup) ERROR: Backup of VM 516 failed – command ‘qm set 516 –lock backup’ failed with exit code 255 Resolution: qm unlock <vmid> Related Read More