-
-
Save badhonhitech/b5c44c2c639dc4cbf8f5d2e5e9d9d8c8 to your computer and use it in GitHub Desktop.
How To Install the Apache Web Server on Ubuntu 20.04 [Quickstart]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/sh | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install apache2 | |
sudo systemctl restart apache2 | |
sudo ufw app list | |
sudo ufw allow 'Apache' | |
sudo ufw status | |
sudo ufw reload | |
sudo ufw restart | |
sudo systemctl status apache2 | |
apache2 --version | |
sudo apt update -y | |
# visit: 0.0.0.0 | |
# For uninstall Apache2 | |
sudo systemctl stop apache2 | |
sudo apt purge apache2.* | |
sudo apt-get --purge remove apache2 | |
sudo apt-get purge apache2-utils | |
sudo apt-get purge apache2.2-bin | |
sudo apt-get purge apache2-common | |
sudo rm -rf /etc/apache2 | |
sudo rm -rf /etc/apache2 | |
sudo rm -rf /usr/lib/apache2 | |
sudo rm -rf /usr/include/apache2 | |
sudo apt autoremove | |
sudo apt clean | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo dpkg -S `which apache2` | |
apache2 --version | |
sudo reboot | |
#apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment