# Install Discourse on Ubuntu or Debian for Development

**URL:** https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727
**Category:** Developer Guides
**Tags:** dev-install, how-to
**Created:** [April 12, 2014, 10:22pm UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727 "2014-04-12T22:22:07Z")
**Posts on this page:** 1
**Showing post:** 752

<div class="post-metadata">

### Author: ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)
#### Post date: [May 17, 2025, 1:09pm UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/752 "2025-05-17T13:09:01Z")

</div>

I’m setting up dev environment on Ubuntu (WSL2) and I installed PostgreSQL using `asdf`. now `db:create` complains that socket can’t be found at path `/tmp/.s.PGSQL.5432`. But for me the socket is at `/var/run/postgresql/.s.PGSQL.5432`. Where can I configure correct path? discourse.config doesn’t seem to have any effect.

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727)._
