2

windows2008 iis7 phpmyadmin上传文件大小限制

 3 years ago
source link: http://www.hn-seo.com/seo_1376.shtml
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

windows2008 iis7 phpmyadmin上传文件大小限制

2015年7月2日 由 admin 留言 »

第一步:修改php.ini配置文件中文件上传大小配置
D:\ZkeysSoft\Php\php.ini

upload_max_filesize(最大的上传文件大小)
post_max_size(post最大的大小)
max_execution_time(php页面执行最大时间)
max_input_time(php页面接受数据最大时间)
memory_limit(php页面占用的最大内存)

第二步:修改phpmyadmin config配置
1、修改phpmyadmin config配置文件中的$cfg[‘ExecTimeLimit’]配置选项,默认值是300,需要修改为0,即没有时间限制。
该文件的位置:

D:\ZkeysSoft\PhpMyAdmin\phpMyAdmin\libraries\config.default.php

第三步:修改IIS的applicationhost.config(先关闭iis,用服务器默认的记事本打开这个文件)
文件位置:

%windir%/system32/inetsrv/config/applicationhost.config
<requestFiltering>

该节点下默认没有 元素。
为这个节点添加如下元素:

<requestLimits maxAllowedContentLength="2147483647" />

(上传的大小将改为2G)
第四步:进iis — asp — 限制属性 — 最大请求实体主体限制 后面加几个零,然后保存,重启iis,既OK !
参照来源:

http://www.chinaz.com/web/2011/0309/163944.shtml
http://www.cnblogs.com/JKqingxinfeng/archive/2012/10/29/2744663.html

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK