Install Apache HTTP Server on Arch Linux
Step 1 – Install Apache
pacman -Syu --noconfirm
pacman -S --noconfirm apache
Step 2 – Start and enable the service
systemctl enable --now httpd
Step 3 – Open firewall ports
ufw allow 80/tcp
ufw allow 443/tcp
Step 4 – Verify
curl -I http://localhost
The main configuration file is /etc/httpd/conf/httpd.conf and virtual-host definitions belong in
/etc/httpd/conf/extra/.
Apache version
apachectl -v