Atlantic.Net Blog

How To Install Apache in FreeBSD

Verified and Tested 02/26/15

Introduction

This how-to will help you with your install and configuration of Apache on your FreeBSD server.

Apache is a web server that is very popular in Linux systems and over the Internet. It is used by many Web Hosting companies worldwide because of its popularity and efficiency in hosting sites over the World Wide Web.

What Do You Need?

You need a FreeBSD server that is configured with a static IP address. If you do not have a server already, you can visit our VPS Hosting page and spin up a FreeBSD server in under 30 seconds.

Server Preparation

To get started, log in to your FreeBSD via SSH or the VNC Console in cloud.atlantic.net. Atlantic.Net Cloud servers are set up as minimal installations to avoid having unnecessary packages from being installed and never used.  Because of this, let’s make sure that your server is fully up-to-date.

freebsd-update fetch
freebsd-update install

Installing Apache on FreeBSD

Install Apache with the following command:

pkg install apache24

To ensure that Apache will start automatically upon reboot, type the following command:

sysrc apache24_enable=yes

Start Apache with the following command:

service apache24 start

Verify if all is working by typing HTTP:  //YOUR.IP.ADD.RESS

Your IP could be retrieved from the server with the following command:

Installing Apache in FreeBSD-1

This is the default page in FreeBSD after Apache has been installed.

ifconfig

What Next?

With that, you now have a server installed and configured with Apache. You may now continue building your website. Thank you for following along, and feel free to check back with us for further updates.

Check out our VPS hosting price.

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year