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: