# Error with Hugo server

**URL:** <https://discourse.gohugo.io/t/error-with-hugo-server/9957>\
**Category:** support\
**Created:** [January 11, 2018, 2:55pm UTC](https://discourse.gohugo.io/t/error-with-hugo-server/9957 "2018-01-11T14:55:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauragift21](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lauragift21/32/4934_2.png) [@lauragift21](https://discourse.gohugo.io/u/lauragift21)\
**Post date:** [January 11, 2018, 2:55pm UTC](https://discourse.gohugo.io/t/error-with-hugo-server/9957/1 "2018-01-11T14:55:15Z")

</div>

Error: Unable to locate Config file. Perhaps you need to create a new site.  
Run `Hugo help new` for details. (Config File “config” Not Found in “[/var/lib/snapd/void]”)  
I get that error when I try running Hugo server -w I’m using ubuntu 16.0 and installed Hugo from Snap package.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [January 11, 2018, 3:17pm UTC](https://discourse.gohugo.io/t/error-with-hugo-server/9957/2 "2018-01-11T15:17:13Z")

</div>

Please read the [Quick Start](https://gohugo.io/getting-started/quick-start/#readout) Tutorial to understand the basics of Hugo.

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [January 11, 2018, 3:57pm UTC](https://discourse.gohugo.io/t/error-with-hugo-server/9957/3 "2018-01-11T15:57:14Z")

</div>

That’s right, the quick start has you covered.

For a quick summary, you’ll either need to do one of two things:

- Create a new Hugo website first. For that navigate to the folder where you want to store the new site and type `hugo new site [foldername]` in the terminal.
- Or, if you already have made a Hugo website, then navigate to the folder where it’s stored and type in the command line `hugo server` there.

This way of working with the command line is a bit different than other CMSs but once you get it, it makes a lot of sense. For instance, the error message that `hugo server` gives you know says that it cannot find the site (and its configuration file).

This for a part makes sense because we cannot tell `hugo server` _where_ the site folder is; it simply uses the folder in which we run the `hugo server` command. And so we need to run `hugo server` in a folder that has a Hugo website in it. (I hope that makes sense. Explaining it might be harder than understanding it once it ‘clicks’. 🙂 )
