<p>The answer was to simply move bitcoin.conf in the correct directory, as described here: <a href="https://bitcoin.stackexchange.com/questions/4006/where-is-the-data-folder-for-bitcoin-qt">Where is the data folder for Bitcoin-Qt?</a>
Also, don't forget to set the correct file permissions as well; <code>bitcoin.conf</code> should be owner <strong>read-only</strong>!</p>

CC BY-SA 3.0
2015-05-06T00:32:27.077Z
2015-05-08T09:42:41.700Z
2017-04-13T12:47:33.610Z
stackoverflowsucks
<p>My issue is I cannot get RPC working with Bitcoin Core. I do not know what I'm doing wrong! When I first installed Bitcoin Core it did not come with a bitcoin.conf file so I created one with the following details:</p>

<pre><code>server=1
rpcuser=root
rpcpassword=password
rpcconnect=127.0.0.1
rpcport=8332
</code></pre>

<p>That's all I have in there. And yes my Bitcoin Core client is in sync with the bitcoin network.</p>

<p>I've also checked my router and it is UPNP enabled and I literally see the port in my router's configuration open. The port is: 8333</p>

<p>And it is the only port open. Do not know if I need 8332 open. Please shed some light on this for me. What I am trying to accomplish is to get PHP to interact with bitcoind such as generate a new bitcoin address.</p>

CC BY-SA 3.0
2015-05-04T22:04:24.110Z
Is the script trying to generate a new address on the same computer as the bitcoin client?
Nick ODell
CC BY-SA 3.0
2015-05-04T22:22:14.043Z
Have you tried adding `rpcallow=127.0.0.1`?
morsecoder
CC BY-SA 3.0
2015-05-05T16:41:49.390Z
One possibility is that your bitcoin.conf is not in the directory where Bitcoin Core expects it to be.
Nate Eldredge
CC BY-SA 3.0
2015-06-21T17:04:19.660Z
@StephenM347 127.0.0.1 is automatically whitelisted.
Nick ODell
<bitcoind><bitcoin-core><php>
Bitcoin.conf not being read by Bitcoin Core
stackoverflowsucks
# Bitcoin.conf not being read by Bitcoin Core

(Asked by: username_0 on 2015-05-04)

My issue is I cannot get RPC working with Bitcoin Core. I do not know what I'm doing wrong! When I first installed Bitcoin Core it did not come with a bitcoin.conf file so I created one with the following details:

```
server=1
rpcuser=root
rpcpassword=password
rpcconnect=127.0.0.1
rpcport=8332

```

That's all I have in there. And yes my Bitcoin Core client is in sync with the bitcoin network.

I've also checked my router and it is UPNP enabled and I literally see the port in my router's configuration open. The port is: 8333

And it is the only port open. Do not know if I need 8332 open. Please shed some light on this for me. What I am trying to accomplish is to get PHP to interact with bitcoind such as generate a new bitcoin address.

**Tags:** bitcoind, bitcoin-core, php

> **Comments:**
> **username_1**: Is the script trying to generate a new address on the same computer as the bitcoin client?  
> **username_2**: Have you tried adding `rpcallow=127.0.0.1`?  
> **username_3**: One possibility is that your bitcoin.conf is not in the directory where Bitcoin Core expects it to be.  
> **username_1**: @StephenM347 127.0.0.1 is automatically whitelisted.  

---

## 1 answers

### Answer by username_0 on 2015-05-06. Score: 2 | Accepted answer

The answer was to simply move bitcoin.conf in the correct directory, as described here: [Where is the data folder for Bitcoin-Qt?](https://bitcoin.stackexchange.com/questions/4006/where-is-the-data-folder-for-bitcoin-qt)
Also, don't forget to set the correct file permissions as well; `bitcoin.conf` should be owner **read-only**!


---

