Environment: LNMP, upload plugin swfupload, when the need to upload large files, we need to do some settings, because nginx php,swfupload default upload size is relatively small. Set the size in the order of access below
1.Swfupload Configuration, modification
This.ensuredefault ("Filesizelimit", 20); Maximum file size for uploaded files
2.Nginx, modify the nginx.conf, add or modify the following options are not passed here, will be reported 413 error
Client_max_body_size 100m;
3.PHP, modify php.ini,php Modify the number of items will be more (Mac PHP configuration file/usr/local/etc/php/5.5/php.ini)
Max_execution_time = 600//Maximum execution time
Max_input_time = 600
Memory_limit = 100m
File_uploads = ON//Open upload
Upload_tmp_dir =/tmp//Upload Directory
Upload_max_filesize = 100m//upload size limit
Post_max_size = 100m//post upload size limit
4.mac restart Nginx sudo nginx-s reload;
Reboot nginx,php configuration does not take effect so restart the computer is also possible to use the process of the method, because I do not know how to restart the computer is ready to complete
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Nginx+php+swfupload upload large file mac Restart Nginx, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.