WDCP Modifying the configuration for uploading large file size limits

Source: Internet
Author: User

First, modify the php.ini (in the site list, text tube can find this configuration file)


Post maximum number of bytes
post_max_size=250m #默认为8M

Allow maximum upload of files
upload_max_filesize=200m #默认为2M

Maximum program run time
max_execution_time=600 seconds #默认为60秒

Maximum memory usage per page
Memory_limit 128M #默认8M

Second, also need to modify nginx.conf (via Xshell or Putty Input Terminal command)


cd/www/wdlinux/nginx/conf/

Vim nginx.conf


Modify
#允许客户端请求的最大单文件字节数
Client_max_body_size 200m; #为200m; The default is 8m;

WDCP Modifying the configuration for uploading large file size limits

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.