Nginx+php+swfupload upload large file mac restart Nginx

Source: Internet
Author: User
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.