# wget http://www.zlib.net/zlib-1.2.5.tar.gz
# tar xvfz zlib-1.2.5.tar.gz
# cd zlib-1.2.5
# ./configure -s
# make
# make test
...
*** zlib test OK ***
# make install
# wget "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.bz2" # tar xvfj pcre-8.13.tar.bz2 # cd pcre-8.13 # ./configure --enable-utf8 --enable-unicode-properties --enable-pcregrep-libz # make # make install
root@wl ~ # wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.bz2 root@wl ~ # tar xvfj lighttpd-1.4.28.tar.bz2 root@wl ~ # cd lighttpd-1.4.28 root@wl ~/lighttpd-1.4.28 # CC=/usr/sfw/bin/gcc ./configure \ --prefix=/usr/local/lighttpd \ --with-mysql=/usr/local/mysql/bin/mysql_config \ --with-ldap \ --with-openssl=/usr/local/ssl \ --with-zlib \ --with-memcache root@wl ~/lighttpd-1.4.28 # make root@wl ~/lighttpd-1.4.28 # make install root@wl ~/lighttpd-1.4.28 # cp doc/lighttpd.conf /etc/lighttpd.conf
root@wl ~ # mkdir -p /var/log/lighttpd
root@wl ~ # mkdir -p /srv/www/htdocs/
root@wl ~ # vi /etc/lighttpd.conf 1)
server.document-root = "/srv/www/htdocs/"
1) lighttpd.conf 파일이 설정 파일이다. 사용 가능한 설정을 샘플과 같이 설명하고 있으니, 읽어보면서 설정하면 된다. 아파치와 크게 다르지 않다.
root@wl ~ # vi /etc/lighttpd.conf
server.modules 의 "mod_fastcgi" 주석을 제거
fastcgi.server = ( ".php" =>( "localhost" =>("host" => "127.0.0.1","port" => 9000 )))
root@wl ~ # /usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
root@wl ~ # pkill lighttpd
|
|
Copyright © 2004-2012 Jo HoSeok. All rights reserved. |