:: Installing Apache2 on FreeBSD 7.1

:: What is
Please take a look at this.

:: Installing Apache2 over Port
[ root ]# cd /usr/ports/www/apache22
[ root ]# make config; make install clean
[ root ]# rehash

:: Configuring Apache2
+ Configure httpd.conf file
[ root ]# ee /usr/local/etc/apache22/httpd.conf
#
# Configure at this options:
ServerAdmin contact@domain.tld
ServerName domain.tld

#
# and other options whatever you want..
####

+ Configure Apache to start automatically at boot up
[ root ]# ee /etc/rc.conf
#
# Add this options:
apache22_enable="YES"
apache22_http_accept_enable="YES"

:: Starting Apache2 Service
[ root ]# /usr/local/etc/rc.d/apache22 start

:: Testink
[ root ]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
[return]
[return]
GET / HTTP/1.0
[return]
HTTP/1.1 200 OK
Date: Wed, 07 Oct 2009 03:41:32 GMT
Server: Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8e DAV/2 PHP/5.2.11 with Suhosin-Patch
Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT
ETag: "4019c-2c-3e9564c23b600"
Accept-Ranges: bytes
Content-Length: 44
Connection: close
Content-Type: text/html

<h1>It works!</h1>Connection closed by foreign host.

:: Links
+ GoogleBSD
+ Apache

0 komentar:

Post a Comment

:: Cheap Web Hosting :: ~ only from Rp. 900/mo; 250Mb/mo of Bandwidth ~ :: Web Hosting Murah Meriah :: ~ mulai dari Rp. 900/bln; Bandwidth 250Mb/bln ~