---
title: "PHP fastcgi MaxRequestLen设置请求最大值（上传允许最大值）"
author: "lucklrj"
date: "2015-01-13T18:07:31Z"
tags: []
categories: ["编程语言"]
slug: "php-fastcgi-maxrequestlen"
draft: false
lastmod: "2015-01-13T18:07:31Z"
id: 2175583
url: "https://lucklrj.iteye.com/blog/2175583"
---

日志：
   mod_fcgid: HTTP request length 132391 (so far) exceeds MaxRequestLen (131072), referer: ***

<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi .php
FcgidInitialEnv PHPRC        "C:/web_soft/php"
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS      1000
FcgidMaxRequestsPerProcess       1000
FcgidMaxProcesses             15
FcgidIOTimeout             120
FcgidIdleTimeout                120
FcgidWrapper "C:/web_soft/php/php-cgi.exe" .php
AddType application/x-httpd-php .php
<span style="color:red">MaxRequestLen  5242880 </span>
</IfModule>