centos에서 lighttpd 설치 및 셋팅

centos에는 lighttpd 패키지가 보이는 듯 했으나 요즘에 찾아보니 없더라.

[code]wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.25.tar.gz
tar xvfz lighttpd-1.4.25.tar.gz
cd lighttpd-1.4.25
./configure
make
make install[/code]
참조 : http://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
init 스크립트
[code]sed -e 's/FOO/lighttpd/g' doc/rc.lighttpd.redhat > /etc/init.d/lighttpd
chmod a+rx /etc/init.d/lighttpd
cp -p doc/sysconfig.lighttpd /etc/sysconfig/lighttpd
install -Dp ./doc/lighttpd.conf /etc/lighttpd/lighttpd.conf[/code]
실행경로 에러가 나는데
[code]vi /etc/init.d/lighttpd
lightpd="/usr/local/sbin/lighttpd" # 이부분 수정[/code]
그리고 설정 파일도 수정
[code]vi /etc/lighttpd/lighttpd.conf
## A static document-root. For virtual hosting take a look at the
## mod_simple_vhost module.
server.document-root        = "/var/www/html/"
## where to send error-messages to
server.errorlog             = "/var/log/lighttpd/error.log"[/code]
php를 사용하기 위해선
[code]yum install php php-dev
vi /etc/lighttpd/lighttpd.conf
server.modules              = (
                                "mod_rewrite", # 주석을 풀어준다
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "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" )

# 다음 문자을 추가준다
fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))[/code]
Writer profile
test

Posted by 엽기민원

2009/12/23 15:26 2009/12/23 15:26
Response
No Trackback , No Comment
RSS :
http://yupmin.com/rss/response/176

Trackback URL : http://yupmin.com/trackback/176

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : ... 108 : Next »

블로그 이미지

엽기민원의 옴팡진 공간

- 엽기민원

Notices

Archives

Calendar

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Site Stats

Total hits:
225566
Today:
66
Yesterday:
209