簡單安裝配置lighttpd

weixin_34115824發表於2017-11-15
  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 ,如需轉載請自行聯絡原作者


相關文章