简单安装配置lighttpd

简介:
  1.  rpm -Uvh http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

  2. yum -y install lighttpd lighttpd-fastcgi php-fpm

  3. 编辑配置文件 /etc/lighttpd/modules.conf注销掉include "conf.d/fastcgi.conf"前面的#号

  4. 编辑 /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 ,如需转载请自行联系原作者


相关文章
|
应用服务中间件 nginx
|
关系型数据库 应用服务中间件 Linux
|
应用服务中间件 Apache nginx
|
应用服务中间件 nginx
|
应用服务中间件 nginx Linux
linux环境安装配置nginx
linux环境安装配置nginx安装依赖yum install gccyum install pcre-develyum install zlib zlib-develyum install openssl openssl-devel解压tar -zxvf nginx-1.
930 0
下一篇
DDNS