linux上裝lighttpd的過程

來源:互聯網
上載者:User

wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar zxvf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure
make&&make install

wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.gz
tar zxvf light*.tar.gz
cd light*
./configure
make
make instal
cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd
mkdir /etc/lighttpd
cp doc/lighttpd.conf /etc/lighttpd/lighttpd.conf
cp doc/rc.lighttpd.redhat /etc/init.d/lighttpd

修改/etc/init.d/lighttpd,把
prog=”lighttpd”下的

lighttpd="/usr/sbin/lighttpd"
改為

lighttpd="usr/local/sbin/lighttpd"

在/var/log/lighttpd
建立access.log

開機自啟動

chkconfig lighttpd on

附:

一、如果配好之後出現500錯誤,極大可能性是由於
1、沒有為fastcgi分配進程
2、lighttpd的資料庫模式和database.yml的不相同

二、lighttpd可以在lighttpd啟動時為fastcgi分配進程,你也可以手動為fastcgi分配進程

三、沒有採用Robbin的指定路徑,是因為我這是針對初級入門的服務平台而設,指定安裝路徑獲得的最佳化可能遇到許多無法預料的問題。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.