Atlantic.Net Blog

How To Install Apache in FreeBSD

Jose Velazquez
by Atlantic.Net (71posts) under VPS Hosting
Verified and Tested 02/26/15


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 Cloud 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 Atlantic.Net Cloud servers are setup as minimal installations in order 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 following command:


Installing Apache in FreeBSD-1

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

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.

Get A Free To Use Cloud VPS

Free Tier Includes:
G2.1GB Cloud VPS 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

Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB 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

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom