OS/Linux

apache 설치

solarwind3 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

반응형