Command | |
sudo apt install apache2 | Install Apache Server |
sudo systemctl status apache2 | Server Status |
sudo systemctl stop apache2 | Stop Server |
sudo systemctl start apache2 | |
sudo systemctl restart apache2 | |
sudo systemctl reload apache2 | |
sudo systemctl disable apache2 | |
sudo systemctl enable apache2 | |
sudo a2ensite your_domain.conf | Enable Virtual Host |
sudo a2dissite 000-default.conf | Disable default site |
sudo apache2ctl configtest | Configuration test |
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-11
0 Comments