bitcoin-cli can't connect to server I'm trying to put up a simple system for some penetration tests.
I have an Ubuntu server 16.04.1 with apache2 and bitcoin.
all running "Hiddn service" through tor (and bitcoind proxied 127.0.0.1:9050).
Now, using easybitcoin.php , the apache shows getinfo, send receive, all good.
but using bitcoin-cli nothing works! "couldn't connect to server"..

my bitcoin.conf is:
server=1
listen=1
proxy=127.0.0.1:9050
rpcuser=myuser
rpcpassword=mypassword


Any ideas why bitcoin-cli can't connect?
You should try adding daemon=1 to your bitcoin.conf file.