# How to install Discourse on windows

**URL:** https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250
**Category:** Support
**Tags:** docker
**Created:** [May 26, 2015, 9:10am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250 "2015-05-26T09:10:46Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 26, 2015, 9:10am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/1 "2015-05-26T09:10:46Z")

</div>

I am completely new to Ruby on Rails , but i want to install discourse on windows, i have installed docker , but when i click to start it, it goes off after just 1 or 2 second. i dont know what to do, is that docker dosn’t work on windows, or am i doing wrong something else, my IDE is NetBeans ,  
I know this is something silly , But please help me out in this,

---

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [May 26, 2015, 9:31am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/2 "2015-05-26T09:31:22Z")

</div>

#### best way for development and testُ disourse , install discourse in ubuntu or mac

####im installed in windows with virtualbox but not work properly and its work very slowly

###for windows test this :

> **[Discourse as Your First Rails App](https://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/)**
>
> Update April 4, 2018 The Discourse Vagrant development install is not longer supported and maintained. Current development install guides can be found at meta.discourse.org for Windows, macOS, and Ubuntu.

###for linux ubuntu

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

###for mac :

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-mac-os-x-for-development/15772):
>
> warning This guide covers installation instructions for a macOS development environment, for production guides see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on macOS to hack on and develop with? We’ll assume that you don’t have Ruby/Rails/Postgres/Redis installed on your Mac. Let’s begin rocket ! Install Discourse Dependencies You will need the following packages on your system: [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) or [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-build](https://github.com/sstephenson/ruby-build)[Ruby](https://www.ruby-lang.org/) (latest s…

---

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 26, 2015, 9:46am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/3 "2015-05-26T09:46:34Z")

</div>

Thank you @Qasem_h for reply,  
I have gone through that link, i have installed vagrant (VM) , and virtual box , but when i download github, it discarded the installation automatically , i got baffled , dont know what to do. I am working on windows 7 .

---

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [May 26, 2015, 11:27am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/4 "2015-05-26T11:27:18Z")

</div>

> [@mitra](#):
>
> I have gone through that link, i have installed vagrant (VM) , and virtual box , but when i download github, it discarded the installation automatically , i got baffled , dont know what to do. I am working on windows 7 .

whats your error ?

this is installion information :  
after install VM and vagrant  
git discourse clone  
cd your cloned discourse location  
and type : vagrant up (Its takes some time)

> vagrant ssh  
> bundle install  
> bundle exec rake db:migrate  
> bundle exec rails server  
> and open [http://localhost:3000](http://localhost:3000) in your browser

---

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 26, 2015, 12:23pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/5 "2015-05-26T12:23:59Z")

</div>

I think i should spend some more time with this.  
But your help is really appreciated. Thanks.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 26, 2015, 7:09pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/6 "2015-05-26T19:09:03Z")

</div>

> [@Qasem\_h](#):
>
> and open [http://localhost:3000](http://localhost:3000) in your browser

For me it’s localhost:4000 i.e port 4000 _not_ port 3000  
\* I have not been able to run in production mode due to Windows security interfering with “shared folders”

---

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 27, 2015, 12:05pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/7 "2015-05-27T12:05:09Z")

</div>

I have installed the git , after inserting commit message , when i clicked on commit button an error popup comes

 ![](https://global.discourse-cdn.com/meta/original/3X/8/2/823897fec20d48f4bb96438affcb04167cefe256.png) .  
what to do next please help.

---

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [May 27, 2015, 12:20pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/8 "2015-05-27T12:20:02Z")

</div>

read this :

> **[Git - First-Time Git Setup](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup)**

and this

> **[Set up Git - GitHub Docs](https://docs.github.com/en/get-started/git-basics/set-up-git)**
>
> At the heart of GitHub is an open-source version control system (VCS) called Git. Git is responsible for everything GitHub-related that happens locally on your computer.

---

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 29, 2015, 5:59am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/9 "2015-05-29T05:59:16Z")

</div>

Hi there , Discourse is now running fine on windows, but when i go to  
[[http://localhost:4000/admin/](http://localhost:4000/admin/)][1] or to any other page , it gets me to this error page ,

 ![](https://global.discourse-cdn.com/meta/original/3X/3/b/3bfe4d6d2f9f6aef3359591655c80923cebf73f6.png) 

now dont know what to do, coz being unaware of rails  
[1]: [http://localhost:4000/admin/](http://localhost:4000/admin/)  
kindly help me out in this,

Thanks in advance ,

---

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [May 29, 2015, 6:07am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/10 "2015-05-29T06:07:50Z")

</div>

First create a admin account

---

<div class="post-metadata">

### Author: ![mitra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mitra](https://meta.discourse.org/u/mitra)
#### Post date: [May 29, 2015, 6:12am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/11 "2015-05-29T06:12:03Z")

</div>

yes , but how to create the admin account . coz when i go to to [http://localhost:4000/admin/](http://localhost:4000/admin/)

it takes me to the page ( screen shot is attched on above reply.)

---

<div class="post-metadata">

### Author: ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)
#### Post date: [May 29, 2015, 6:16am UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/12 "2015-05-29T06:16:24Z")

</div>

First create a acounte in the site  
go to your git bash and type : `rake admin:create` active that acouunt and gnrate admin rank

> [@Create an admin account from the console](https://meta.discourse.org/t/create-an-admin-account-from-the-console/17274/1):
>
> Grant Admin Privileges to Existing Account
> 
> Run this command from console:
> 
> rake admin:create
> 
> You will be asked for Email, enter the email of existing account.
> 
> Now you will be asked: User with this email already exists! Do you want to reset the password for this email? (Y/n). Press n then enter.
> 
> Now you will be asked: Do you want to grant Admin privileges to this account? (Y/n). Press enter to continue.
> 
> You will see success message Your account now has Admin privileges!.
> 
> That’s it, you have successfully granted Admin privileges to existing account.

---

<div class="post-metadata">

### Author: ![superslowwindows](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/superslowwindows/32/120118_2.png) [@superslowwindows](https://meta.discourse.org/u/superslowwindows)
#### Post date: [April 3, 2018, 8:50pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/13 "2018-04-03T20:50:47Z")

</div>

After installing and cloning,

` vagrant up`

doesn’t do anything … .

Is that normal?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 3, 2018, 8:52pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/14 "2018-04-03T20:52:34Z")

</div>

You should follow the official guide:

> [@Install Discourse on Windows for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-windows-10-for-development/75149):
>
> information_source This tutorial has been tested on Windows 10 and 11. To set up a development environment for Discourse on Windows, you can do it using [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install-win10) feature. This setup requires the WSL 2 installation. It is only available in Windows 10 builds 18917 or higher. We’ll assume that you already installed [Windows Subsystem for Linux 2 (Ubuntu)](https://docs.microsoft.com/en-us/windows/wsl/install) on your Windows 10 system. WARNING: Install Ubuntu 18.04, and not 20.04 since some installations will fail on 20.04. For m…

---

<div class="post-metadata">

### Author: ![superslowwindows](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/superslowwindows/32/120118_2.png) [@superslowwindows](https://meta.discourse.org/u/superslowwindows)
#### Post date: [April 3, 2018, 9:36pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/15 "2018-04-03T21:36:53Z")

</div>

Don’t have Windows 10.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 3, 2018, 9:47pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/16 "2018-04-03T21:47:17Z")

</div>

So you can run a virtual machine with latest Ubuntu and follow:

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

---

<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: [May 7, 2021, 1:36pm UTC](https://meta.discourse.org/t/how-to-install-discourse-on-windows/29250/18 "2021-05-07T13:36:01Z")

</div>

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