Устанавливаем apache

apt install apache2

Включаем apache

systemctl enable apache2

Предварительная настройка

cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.old
echo 'ServerName localhost' >> /etc/apache2/apache2.conf
systemctl restart apache2