# Aws getsockopt: connection refused

**URL:** <https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236>\
**Category:** Self-hosting\
**Created:** [December 28, 2019, 1:43pm UTC](https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236 "2019-12-28T13:43:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saius/32/138118_2.png) [@saius](https://meta.discourse.org/u/saius)\
**Post date:** [December 28, 2019, 1:43pm UTC](https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236/1 "2019-12-28T13:43:09Z")

</div>

I followed this installation guide [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md). Everything is deployed on to a AWS EC2 instance running Ubuntu 18. The installation went fine, but when I open the public `http://ec2-54-153-68-240.us-west-1.compute.amazonaws.com` it throws “dial TCP 54.153.68.240:80: getsockopt: connection refused”. I tried to open the domain pointed to that instance, but no luck, same error. I am new to this any help is really appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [December 28, 2019, 8:25pm UTC](https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236/2 "2019-12-28T20:25:41Z")

</div>

Seems like Your EC2 comes with apache2 installed which I suspect is most likely installed because you installed LAMP on Ubuntu as your OS?

You’d probably need to reinstall/redeploy it with Ubuntu 18.04 (without the LAMP option) and then try reinstalling discourse.

Your installation must have failed in the first place since apache2 was running on that system (assuming that from ubuntu apache2 landing page).

---

<div class="post-metadata">

**Author:** ![saius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saius/32/138118_2.png) [@saius](https://meta.discourse.org/u/saius)\
**Post date:** [December 29, 2019, 10:49am UTC](https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236/4 "2019-12-29T10:49:58Z")

</div>

Thanks for the help. I did a fresh install and it worked…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [January 28, 2020, 10:50am UTC](https://meta.discourse.org/t/aws-getsockopt-connection-refused/137236/5 "2020-01-28T10:50:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
