commands executed after ssh into ec2 ubuntu instance
sudo apt-get update
sudo apt-get install apache2 -y
sudo apt install php libapache2-mod-php php-mysql -y
sudo systemctl restart apache2
sudo systemctl enable apache2
sudo apt install php-cli -y
sudo vi /var/www/html/info.php =>
sudo systemctl restart apache2
Now find public ip and navigate to “`http://publicip/info.php“
================================================================Unable to open http://54.191.41.200/info.php and gets following error message:
This site can’t be reached54.191.41.200 took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_TIMED_OUT
Troubleshooting: Checked with proxy server settings and firewall turned off,still same issue