My LightSail Instance/Website is not working

0

Hi anyone can help me resolve my instance issue. It's not working, I tried to reboot but still no luck. Please help me get my lightsail instance up and running.

Here are my instance details: Web address: burhanidigital.com

asked 2 years ago5945 views
2 Answers
1

Hi there

A simple curl request shows us that the instance is not accessible on port 80 (HTTP)

curl burhanidigital.com
curl: (7) Failed to connect to burhanidigital.com port 80: Connection refused

Connection refused means that something is blocking the incoming request (my curl command). Each EC2 Instance has a firewall. In Lightsail this can be viewed in the instance "manage" menu. This menu has a "Networking" tab. Check the "IPv4 Firewall".

By default it should have:

Enter image description here

Ensure your firewall matches the screenshot for HTTP and HTTPS.

If the issue persists connect to the instance and confirm the web server is running. This will likely either be Apache or Nginx. Check if the instance is listening on port 80 with this command,

netstat -tulpn

If you dont see 80 and 443 like below this is the problem. Enter image description here

To resolve that you will need to start the web server. This will vary depending on the platform and blueprint you have chosen. As an example, if you chose linux and wordpress you can start apache using bitnami with this command:

sudo service bitnami start apache

The bitnami docs go into more detail here [1]. If the issue persists let us know what platform (linux/windows) and blueprint (wordpress, ruby, node) you've chosen.

  1. https://docs.bitnami.com/aws-templates/apps/wordpress/administration/control-services/
profile picture
answered 2 years ago
  • My 443 port was missing, however, this answer got my instance up an running in seconds. Thank you Cormac C.

0
Accepted Answer

Hello,

It's hard to troubleshoot this without knowing more information.

  • Was this created using an existing application Blueprint such as Wordpress, Drupal, Joomla, or Magento?
  • Was this created using a standard Linux blueprint with a web server like Nginx or Apache?

Ensure that the web server is up and running and the configuration is valid.

Apache restart

sudo service apache2 restart

or

sudo systemctl restart httpd

Nginx restart

sudo service nginx restart

or

sudo systemctl restart nginx

If either of these fails to restart, you may have an error in your configuration or your instance may be out of storage space. Try researching the error by searching re:Post or Google.

profile pictureAWS
EXPERT
Chris_G
answered 2 years ago
profile picture
EXPERT
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions