티스토리 뷰

OS/Linux

apache 설치

solarwind 2009.06.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

댓글
댓글쓰기 폼