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
Add Linux machine on LibreNMS October 28, 2017 Install SNMPD first SNMPd is not installed by default. You must first install snmpd. apt-get update apt-get install snmpd lsb -y Backup default snmp.conf file on the ‘/etc/snmp/’ directory and copy new one from the librenms directory. mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.asli cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf or instead copy-paste below snmpd text Related Read More
How did I solve .mkv and .avi player in my Suse February 7, 2010 Download the file and everything will be sorted out- Trust me! codecs-gnome Related Read More
Install PHP4 on CentOS 5.5 September 6, 2014 1. Install Apache yum install httpd 2. Install Mysql yum install mysql mysql-server php-mysql 3. Install dependencies yum install flex gcc* bison bison-devel httpd-devel make 4. Download PHP4 cource wget http://lu2.php.net/get/php-4.4.9.tar.gz/from/my2.php.net/mirror Related Read More