install-lamp-stack-ubuntu-20-04-server-desktop code example
Example 1: install-lamp-stack-ubuntu-20-04-server-desktop
sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT
Example 2: install-lamp-stack-ubuntu-20-04-server-desktop
systemctl status apache2
Example 3: install-lamp-stack-ubuntu-20-04-server-desktop
sudo apt install -y apache2 apache2-utils
Example 4: install-lamp-stack-ubuntu-20-04-server-desktop
sudo apt update
sudo apt upgrade
Example 5: install-lamp-stack-ubuntu-20-04-server-desktop
sudo a2enconf servername.conf
Example 6: install-lamp-stack-ubuntu-20-04-server-desktop
sudo chown www-data:www-data /var/www/html/ -R
Example 7: install-lamp-stack-ubuntu-20-04-server-desktop
sudo ufw allow http