Thursday, July 29, 2010

Installing Apache

search for apache download and select --http://httpd.apache.org/download.cgi
www.lamphowto.com

-wget linl location

/etc/init.d/httpd status-if running stop it

cd /

unzip

tar -xvf

cd apache version

./configure --help

./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-suexec --suexec-safepath=/usr/local/bin --enable-module=cgi

make

make install

cd /

vim /usr/local/apache/conf/httpd.conf

->server root /usr/local/apache
->user nobody
->group nobody
->directory index index.html
->VirtualHost ip:80
{doc root /home/user
server name domain.com}

save quit

servive httpd stop

/usr/local/apache/bin/apachectl start

cd document root
vim index.html

/usr/local/apache/bin/apachectl restart

dig abc.com
lynx http://domain.com

No comments:

Post a Comment