'Cannot Access Apache Test Page from EC2 Linux Instance After Changing the Instance Type

I am using AWS for a class project and I changed my instance type from t2.micro (free tier) to t2.small for more RAM to finish my project. I am hosting a WordPress website on the instance and everything was fine until I changed the instance type. I did not set up an Elastic IP beforehand and I've noticed that I have a new IP address now.

Right now, everything is running on the EC2 dashboard side, I am still able to SSH into the server, Apache is running with no errors, and all of my inbound and outbound rules are still the same in my EC2 security group. I have a backup of my WordPress so I uninstalled WordPress and checked to see if the Apache test page would load and it just says "This site can't be reached". What am I missing? Does something in the configuration change when the IP address changes or when you change the instance type? I need help, please!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source