Tuesday, April 14, 2009

Lighttpd

Duh kata katanya gak usah formil banget ya ... begini opensource.telkomspeedy.com agak-agak berat nih, ya karena banyaknya yang download-download di situs ini akhirnya coba aja deh pake lighttpd berikut langkahnya :).


Install Lighttpd

1. yum install lighttpd

Install package Lighttpd - FastCGI

2. yum install lighttpd-fastcgi php-cli

Konfigurasi Lighttpd dan PHP5

3. vi /etc/php.ini

tambahin

[...]
cgi.fix_pathinfo = 1

Uncomment mod_fastcgi

4. vi /etc/lighttpd/lighttpd.conf

aslinya

[...]
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
[...]

di ubah ke

[...]
server.modules = (
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
"mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
[...]

trus

fastcgi.server jangan lupa di uncomment juga

aslinya

[...]
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
#fastcgi.server = ( ".php" =>
# ( "localhost" =>
# (
# "socket" => "/var/run/lighttpd/php-fastcgi.socket",
# "bin-path" => "/usr/bin/php-cgi"
# )
# )
# )
[...]


jadinya

[...]
#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
[...]

nah sampai disini berhubung banyak file listing untuk download, uncomment aja

aslinya
#dir-listing.activate = "enable"

jadinya

dir-listing.activate = "enable"

dan bisa deh ..........

sedot ubuntu deh ....

http://opensource.telkomspeedy.com/ubuntu/

Name Last Modified Size Type
Parent Directory/ - Directory
.temp/ 2008-Dec-12 17:47:59 - Directory
debiandvd/ 2009-Mar-29 02:29:30 - Directory
dists/ 2008-Dec-19 01:01:12 - Directory
pool/ 2007-Jun-21 11:03:40 - Directory
project/ 2004-Jun-15 21:21:17 - Directory

lighttpd/1.4.20