惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

博客园 - freemobile

得物小程序解析data加解密算法 某物抓数据出现验证码的解析思路 excel中移除编辑限制的宏脚本 广西扬美古镇虚拟旅游 pip3快速下载paddle 2018年上半年越南数字广告营销市场情况 thinkphp5(tp5)中success跳转页面和弹窗问题解决 Could not find com.android.support.constraint:constraint-layout的问题解决 角摩网发布在线制作Epub、Mobi格式的电子书 电子书mobi的格式详解 ajax成功返回数据中存在多余字符的处理 zendstudio采用xdebug调试,断点不停的解决 jeecms运行出现 Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.解决 rsync进行不同服务器之间的数据同步 Linux常用操作 重置mysql数据库密码 ecmobile中IOS版本中界面文字不显示的解决 linux下重置mysql的root密码 nginx下rewrite参数超过9个的解决方法
windows下IIS+PHP解决大文件上传500错问题
freemobile · 2016-09-09 · via 博客园 - freemobile

linux下改到iis+php后,上传大于2M就出500错,改了php.ini中的upload_max_filesize也不行,最后解决如下:

第一步:修改php.ini 上传大小限制

(以上传500M以下大小的文件为例) 
查找以下选项并修改-> 
file_uploads = On ;打开文件上传选项 
upload_max_filesize = 500M ;上传文件上限 
如果要上传比较大的文件,仅仅以上两条还不够,必须把服务器缓存上限调大,把脚本最大执行时间变长,加了下面的内容后php执行上传就没什么问题
post_max_size = 500M ;post上限 
max_execution_time = 1800 ; Maximum execution time of each script, in seconds脚本最大执行时间 
max_input_time = 1800 ; Maximum amount of time each script may spend parsing request data 
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)内存上限

第二步:再修改iis的上传限制

1、打开“Internet 信息服务(IIS)管理器”;
2、关闭IIS服务;
3、双击“你的网站“→双击中间窗格中的“请求筛选”→单击右侧窗格的“编辑功能设置”→修改“请求限制”下面的“允许的最大内容长度”,默认是30M,随便改大一点,我改成300M,点击“确定”;
4、重新启动IIS,再上传试试,50M、90M都可以了。