Instalación de Apache¶
Fedora¶
dnf -y install httpd
Remove test page
rm -f /etc/httpd/conf.d/welcome.conf
vim /etc/httpd/conf/httpd.conf
Opcional
# line 86: Admin's address
ServerAdmin snicoper@gmail.com
# line 95: change to your server's name
ServerName www.workspace.local:80
# Añadir en la ultima linea
# server's header
ServerTokens Prod
# ServerSignature
ServerSignature Off
SELinux¶
Ver Reglas SELinux
systemctl start httpd.service
systemctl enable httpd.service
Firewall¶
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
Ubuntu¶
sudo apt-get -y install apache2