티스토리 뷰

OS/Linux

apache 설치

solarwind 2009. 6. 10. 11:35
반응형

./configure --prefix=/usr/local/apache --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so
make
make install
cp build/rpm/httpd.init /etc/init.d/httpd
chmod 755 /etc/init.d/httpd
chkconfig --list httpd
(없으면 chkconfig --add httpd
chkconfig --level 35 httpd on

vi /etc/init.d/httpd
apachectl=/usr/sbin/apachectl => apachectl=/usr/local/apache/bin/apachectl
httpd=${HTTPD-/usr/sbin/httpd} => httpd=${HTTPD-/usr/local/apache/bin/httpd}
CONFFILE=/etc/httpd/conf/httpd.conf => CONFFILE=/usr/local/apache/conf/httpd.conf

vi /usr/local/apache/conf/httpd.conf
ServerName www.example.com:80 => ServerName 127.0.0.1

service httpd start

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/12   »
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
글 보관함