Title: Bitcoind / bitcoin-cli and RPC....... Post by: hamdi369 on November 13, 2015, 12:02:40 PM hi
I install Bitcoind on a Ubuntu VPS server... It's just for test with my app... nothing works.... No Rpc... can't interact with php .... I've got always ... Code: error: {"code":-32601,"message":"Method not found"} is there possible to install an old version of bitcoind that work (without lock problem.... bitcoine core is still running...) and bitcoin-cli.... simply bitcoind and nothing else? Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: achow101 on November 13, 2015, 12:28:15 PM How are you interacting with bitcoind?
Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: hamdi369 on November 13, 2015, 01:28:09 PM I am sorry but when I want to reply it doen't accept me..
I interact with jsonRPCClient.php with test.php Code: <?php my bitcoin.conf server=1 daemon=1 rpcuser=hamdi rpcpassword=password Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: cr1776 on November 13, 2015, 01:44:30 PM Give it a try from the command line first, then you can see whether it is bitcoind or not:
e.g. bitcoin-cli getinfo Then, you might try 127.0.0.1 for the IP. Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: hamdi369 on November 13, 2015, 03:56:58 PM yes it work when I getinfo in terminal, but when I browse to my php script.... I got error 500...
Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: shorena on November 13, 2015, 04:01:24 PM yes it work when I getinfo in terminal, but when I browse to my php script.... I got error 500... Do you have rpcallowip set to the address you are requesting from? Title: Re: Bitcoind / bitcoin-cli and RPC....... Post by: hamdi369 on November 13, 2015, 04:10:58 PM Yes everything is ok ......
founded it.... DNS problem... thank you for the help |