179 views
In this video I'll show you how to set up and configure an Apache server on an EC2 instance running Ubuntu on AWS. For this video we'll do the following: 🌐 Apache Configuration We'll customize the default Apache webpage with our own design, so you can have a website fully tailored to your needs. 🔐 SSH Security We'll see how to adjust the SSH settings, changing the default port and disabling root access to increase the security of your server. 📊 CloudWatch Alarms I'll set up three CloudWatch alarms. Two of them to monitor network traffic and one for disk usage, ensuring your server is always under control. COMMANDS USED -update operating system (Ubuntu) sudo apt update -install apache sudo apt install apache2 -and check apache status sudo systemctl status apache2 -enable http/https traffic sudo ufw allow 'Apache Full' -create role AmazonEC2RoleForSSM CloudWatchAgentServerPolicy -download cloud watch agent wget https://s3.amazonaws.com/ amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb (remove the spaces between .com/ ) -install cloud watch agent sudo dpkg -i amazon-cloudwatch-agent.deb -configure agent sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard -access folder /opt/aws/amazon-cloudwatch-agent/bin/ -start agent sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch_config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json #aws #ec2 #ubuntu #apache #cloudwatch #webserver #SSHSecurity #sys admin #cloudcomputing #devops #linuxserver #ec2instance #ssh #systemsengineering #engineering #university #students