Atlantic.Net Blog

How to Install Apache on Arch Linux

Jose Velazquez
by Atlantic.Net (71posts) under Cloud Hosting
Verified and Tested 05/29/15


This how-to will help you install and configure Apache on an Arch Linux 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.


You need an Arch Linux server that is configured with a static IP address. If you do not have a server already, Atlantic.Net offers a full line of SSD Cloud Hosting that will have you up and running in under 30 seconds.

Server Preparation

To get started, log in to your Arch Linux server. Let’s make sure that your server is fully up-to-date.

sudo pacman -Syu

With the server up-to-date, we can continue the process and install Apache on your Arch Linux server.

Install Apache on Arch Linux

We must first begin by installing Apache with the following command:

sudo pacman -S apache

Start the Apache service with the following command:

sudo systemctl start httpd

To edit the main Apache configuration file for one or many websites, according to your preference, open the configuration file located in the following directory:

sudo nano /etc/httpd/conf/httpd.conf

In order to test the installation, create a test HTML file in the following directory with the command below:

sudo nano /srv/http/index.html

Insert the following HTML code in the empty file then save and exit:

<h2>You have just installed Apache on your Arch Linux Server</h2>

You can now verify that Apache is installed correctly by typing http:// and your IP address in your browser.


To get your server’s public IP address, type the following command:

This is the test page created to verify the Apache install in Arch Linux.

This is the test page created to verify the Apache install in Arch Linux.

What Next?

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

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

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


We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.