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

已提問 2 年前檢視次數 6007 次
2 個答案
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
已回答 2 年前
  • My 443 port was missing, however, this answer got my instance up an running in seconds. Thank you Cormac C.

0
已接受的答案

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
專家
Chris_G
已回答 2 年前
profile picture
專家
已審閱 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南