SteveOH

Setting Up Apache on FreeBsd UNIX

by Steve Hernandez on Jul.16, 2007, under Technology

The purpose of this document is to describe the setup of the secure web application server on FreeBsd.

Get the distributions:

# su
# cd /usr/local/src
# wget http://www.apache.org/dist/httpd/httpd-2.2.3.tar.gz

Unpack distributions:

# tar xfz httpd-2.2.3.tar.gz

Now, you would do all this if you didn’t install the PORTS during your initial install. �
Since this is going to be my firewall / gateway, I installed them and only had to do the following:

# cd /usr/ports/apache22

Build And Install Apache:

cd ../apache_2.2.3
./configure –prefix=/usr/local/apache –enable-module=all –enable-shared=max
make
make install

To configure Apache you should edit /usr/local/apache/conf/httpd.conf

Add the following line to the startup script to launch Apache at startup:
(for example, into /etc/rc.local file)

/usr/local/apache/bin/apachectl start

:, , ,

1 Trackback or Pingback for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...