-
rpm -Uvh http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
-
编辑配置文件 /etc/lighttpd/modules.conf注销掉include "conf.d/fastcgi.conf"前面的#号
-
编辑 /etc/lighttpd/conf.d/fastcgi.conf追加以下内容:
server.modules += ("mod_fastcgi") ##这个加载模块可能会与前面重复,有的话记得注销掉
fastcgi.server =( ".php" =>
("php-local" =>
(
"host" => "127.0.0.1",
"port" => "9000",
"broken-scriptfilename" => "enable",
)
)
)
5.启动
/etc/init.d/php-fpm start
/etc/init.d/lighttpd start
注意:如果提示Starting lighttpd: 2011-07-30 06:52:41: (server.c.722) couldn't set 'max filedescriptors' Permission denied 可能是selinux没关的缘故
本文参考自:http://techarena51.com/index.php/how-to-install-lighttpd-with-iredmail/
本文转自biao007h51CTO博客,原文链接:http://blog.51cto.com/linzb/1786501 ,如需转载请自行联系原作者