Install Lighttpd di OpenWRT


lanjuuutttt..

opkg install lighttpd
opkg install lighttpd-mod-cgi
opkg install lighttpd-mod-fastcgi
opkg install lighttpd-mod-simple-vhost

kemudian hilangkan tanda # pada
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
"mod_simple_vhost",
"mod_cgi",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_webdav"
)

tambahkan index.php pada index-file.names
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )

rubah port default lighttpd
## bind to port (default: 80)
server.port = 80

rubah baris pada fastcgi
#### fastcgi module
## read fastcgi.txt for more info
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-fcgi"
)
)
)

Agar tidak bentrok dengan uhttpd. Maka tambahkan baris berikut agar luci bisa jalan pada lighttpd
cgi.assign = ( "luci" => "/usr/bin/lua" )

jalankan lighttpd😀
# /etc/init.d/uhttpd stop
# /etc/init.d/uhttpd disable
# /etc/init.d/lighttpd start
# /etc/init.d/lighttpd enable

2 thoughts on “Install Lighttpd di OpenWRT

  1. Ping-balik: OpenWRT + Motion + Mjpg_streamer = Sistem CCTV Sederhana | Sukabiru | Blog

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s