使用FCGI的不可读错误

我最近将mod_fcgi安装到Amazon EC2 64位Linux AMI上,并使用Movable Type 5.13。 这是我的错误日志。

[warn]mod_fcgid: error reading data, FastCGI server closed connection, referer: http://xxx/mt.fcgi?__mode=start_rebuild&old_previous=1&is_new=0&next=0&old_status=2&type=entry-1&blog_id=1&entry_id=1 [error]Premature end of script headers: mt.fcgi, referer: http://xxx/mt.fcgi?__mode=start_rebuild&old_previous=1&is_new=0&next=0&old_status=2&type=entry-1&blog_id=1&entry_id=1 

我的.conf文件是/etc/httpd/conf.d/fcgid.conf

 LoadModule fcgid_module modules/mod_fcgid.so # Use FastCGI to process .fcg .fcgi & .fpl scripts AddHandler fcgid-script fcg fcgi fpl .cgi # Sane place to put sockets and shared memory file FcgidIPCDir /var/run/mod_fcgid FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi SocketPath /tmp/fcgid_sock/ FcgidConnectTimeout 1000 FcgidMaxProcesses 1000 FcgidMaxProcessesPerClass 100 FcgidTerminationScore 20 FcgidSpawnScore 180 FcgidIdleTimeout 1000 FcgidIOTimeout 1000 FcgidMaxRequestLen 100485760 </IfModule> 

移动types重build的HTML,但约4〜5分钟后,它给我“内部服务器错误”。 我以为这是一个超时错误,所以我刚刚起动了所有超时相关的设置,但结果相同。

更新:

进一步的研究告诉我使用Apache 2.2.x VirtualHost设置有一些错误,防止fcgi conf文件重置为默认设置。 所以我在VirtualHost中设置了FcigdConnectTimeout等,但结果没有改变。