以FASTCGI方式运行Movable Type

安装好mod_fastcgi,注意是mod_fastcgi,不是mod_fcgid,我安装mod_fcgid的过程中碰到一些问题,导致Movable Type不能工作。当然在阅读这篇文章之前你肯定已经安装好了Movable Type。

安装FASTCGI碰到问题欢迎跟帖讨论

安装完FASTCGI后编辑apache的配置文件

加入以下内容

LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .cgi
FastCGIConfig -autoUpdate -idle-timeout 120 -killInterval 3600 -maxClassProcesses 6 -maxProcesses 15
</IfModule>

建立文件夹/tmp/fcgi_ipc/并赋以正确的权限

在虚拟主机配置文件的Directory小节中加入

<FilesMatch “^mt-(add-notify|atom|check|config|feed|testbg|upgrade|wizard|xmlrpc)\.cgi$”>
SetHandler cgi-script
</FilesMatch>

重启apache之后Movable Type就运行在FASTCGI之下了。配置Movable Type运行在FASTCGI下参考官方的文档才是王道。

参考Running Movable Type with FastCGI

按照常理来说FASTCGI是相当快的,不知道我配置出了什么问题,我的MT在FASTCGI环境中运行得相当的慢,不知是什么原因

Written by gegewan on 六月 25th, 2009 with no comments.
Read more articles on 谈天说地.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .