Compiling Apache 2 from source on FreeBSD 7

This is a quick simple guide how to compile httpd-2.2.9 from source on FreeBSD 7.0

First we need to download the source file from

# cd /usr/local/src
# wget -c
# tar xvfz httpd-2.2.9.tar.gz
# cd httpd-2.2.9

# ./configure –prefix=/usr/local/apache2 –enable-mods-shared=most –enable-so –enable-cache –enable-file-cache –enable-disk-cache –enable-mem-cache

# make

Once compiled correctly with no errors we need to make install

# make install

Now we sort out the permissions.

# cd /usr/local/apache2
# chown -R root .
# chgrp -R daemon .
# chown -R daemon logs

Now that is all done we are ready to start Apache 2 for the first time.

# bin/apachectl start

Apabila ada tambahan konfigurasi bisa edit langsung file conf/httpd.conf

Ketika ada masalah pada Filter, maka tambahkan accf_http_load=”YES” pada /boot/loader.conf

# echo “accf_http_load=\”YES\”” >> /boot/loader.conf

And we are done!

To start MySQL at anytime simply issue the command

# /usr/local/apache2/bin/apachectl start

If you would like to start Apache when FreeBSD starts simply add a line to your /etc/rc.local file.

# echo “/usr/local/apache2/bin/apachectl start” >> /etc/rc.local

Aturrr dahhhh


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: