sudo apt update
sudo apt install apache2
sudo systemctl is-active apache2
sudo systemctl is-enabled apache2
sudo systemctl status apache2
sudo systemctl stop apache2 #stop apache2
sudo systemctl start apache2 #start apache2
sudo systemctl restart apache2 #restart apache2
sudo systemctl reload apache2 #reload apache2
sudo systemctl disable apache2 #disable apache2
sudo systemctl enable apache2 #enable apache2
ls /etc/apache2/*
sudo vim /etc/apache2/apache2.conf
ServerName webserver1.tecmint.com
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo systemctl status apache2
sudo ufw allow http
sudo ufw allow https
sudo ufw reload
OR
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
ls /var/www/html/
sudo mkdir -p /var/www/html/olineit.info
sudo chown www-data:www-data -R /var/www/html/olineit.info
sudo chmod 775 -R /var/www/html/olineit.info
sudo vim /var/www/html/olineit.info/index.html
sudo vim /etc/apache2/sites-available/olineit.info.conf
sudo a2ensite olineit.info.conf
sudo systemctl reload apache2
No comments:
Post a Comment