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년 전6010회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠