# 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:** 5
**Page:** 5

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [April 7, 2025, 1:42pm UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/751 "2025-04-07T13:42:00Z")

</div>

What is the current guide on development install?

It seems that the [repository](https://github.com/discourse/install-rails/tree/main) linked in the first post was archived:

> This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Is there a replacement?

---

<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.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [June 21, 2025, 10:06am UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/754 "2025-06-21T10:06:05Z")

</div>

> [@Discourse](#):
>
> - [MailHog](https://github.com/mailhog/MailHog)\*\*
> - [ImageMagick](http://www.imagemagick.org/)\*\*
> 
> \*\* _optional_

~~Isn't the installation of mailhog very important? One cannot activate their account if it's not installed.~~ &nbsp;EDIT: Perhaps not.

Furthermore, `bin/ember-cli -u` throws an error about ImageMagick if it’s not installed/not the correct version. I’m following ChatGPT (please, don’t judge) to install a later version of it since (for some reason) the `magick` command doesn’t exist on my version. Crossing my fingers hoping it’ll work.

EDIT: 🎉 ChatGPT actually helped! Discourse is now running on 4200.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 21, 2025, 3:10pm UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/755 "2025-06-21T15:10:44Z")

</div>

In my 7 years of discourse development I think I’ve installed it once. Just run the rake task to establish the admin user.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [June 22, 2025, 12:31am UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/756 "2025-06-22T00:31:14Z")

</div>

If you’re referring to `bin/rails admin:create` then yes, I did that, so I edited my post above because I realised that I didn’t need to verify my account (and subsequent user accounts can be activated manually).

However, coming back to the ImageMagick part, is there a way for one _not_ to use ImageMagick (i.e. truly making it ‘optional’)?

[Previous page](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727.md?page=4)
