<p>The location of your bitcoin.conf file depends on your operating system: <a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File" rel="nofollow">https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File</a></p>

<p>Note that you can also pass any configuration value as command line argument.</p>

CC BY-SA 3.0
2014-02-17T09:37:27.330Z
thank you for your feedback I've been compiling on linux but when I check /home/user/.bitcoin folder do not exists. There is a bitcoin folder from I compiled the source
fefe
CC BY-SA 3.0
2014-02-17T09:39:11.017Z
If that folder does not exist, just create it!
Philip Frank
CC BY-SA 3.0
2014-02-17T09:40:33.543Z
okay cool I will give a try
fefe
CC BY-SA 3.0
2014-02-17T13:27:11.843Z
if you run bitcoind with sudo the .bitcoin folder is created in /root/.bitcoin as im aware. If run without root its created in /home/user/.bitcoin . However, bitcoin does create the folder upon first start.
Aurigae
CC BY-SA 3.0
2014-02-17T09:32:56.003Z
2014-02-17T09:32:56.003Z
Philip Frank
<p>The bitcoin.conf file has to be created within the .bitcoin folder.</p>

CC BY-SA 3.0
2014-02-17T13:28:37.210Z
2014-02-17T13:28:37.210Z
Aurigae
<p>I'm quite new to bitcoin. I've been compiling the client from github and I want to run on a server as testnet and make some API requests. As I see in the documentation I should create a bitcoin.conf file. But where do I create this in case of compiled client</p>

<client><api><bitcoin.conf>
Compiled Bitcoin Client as Testnet with bitcoin.conf
fefe
# Compiled Bitcoin Client as Testnet with bitcoin.conf

(Asked by: username_0 on 2014-02-17)

I'm quite new to bitcoin. I've been compiling the client from github and I want to run on a server as testnet and make some API requests. As I see in the documentation I should create a bitcoin.conf file. But where do I create this in case of compiled client

**Tags:** client, api, bitcoin.conf


---

## 2 answers

### Answer by username_1 on 2014-02-17. Score: 1 | Accepted answer

The location of your bitcoin.conf file depends on your operating system: <https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File>

Note that you can also pass any configuration value as command line argument.

> **Comments:**
> **username_0**: thank you for your feedback I've been compiling on linux but when I check /home/user/.bitcoin folder do not exists. There is a bitcoin folder from I compiled the source  
> **username_1**: If that folder does not exist, just create it!  
> **username_0**: okay cool I will give a try  
> **username_2**: if you run bitcoind with sudo the .bitcoin folder is created in /root/.bitcoin as im aware. If run without root its created in /home/user/.bitcoin . However, bitcoin does create the folder upon first start.  

---

### Answer by username_2 on 2014-02-17. Score: 0

The bitcoin.conf file has to be created within the .bitcoin folder.


---

