Bitcoin Forum
June 15, 2024, 04:09:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind / bitcoin-cli and RPC.......  (Read 806 times)
hamdi369 (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 2


View Profile
November 13, 2015, 12:02:40 PM
Last edit: November 13, 2015, 12:15:52 PM by hamdi369
 #1

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6704


Just writing some code


View Profile WWW
November 13, 2015, 12:28:15 PM
 #2

How are you interacting with bitcoind?

hamdi369 (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 2


View Profile
November 13, 2015, 01:28:09 PM
 #3

I am sorry but when I want to reply it doen't accept me..

I interact with jsonRPCClient.php

with test.php

Code:
<?php
require_once('jsonRPCClient.php');
$bitcoin = new jsonRPCClient('hamdi','password','107.191.40.74','8332');
$test=$bitcoin->getinfo();
print_r($test);
echo (
$test);
?>

my bitcoin.conf

server=1
daemon=1
rpcuser=hamdi
rpcpassword=password
cr1776
Legendary
*
Offline Offline

Activity: 4060
Merit: 1303


View Profile
November 13, 2015, 01:44:30 PM
 #4

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.

hamdi369 (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 2


View Profile
November 13, 2015, 03:56:58 PM
 #5

yes it work when I getinfo in terminal, but when I browse to my php script.... I got error 500...
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
November 13, 2015, 04:01:24 PM
 #6

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?

Im not really here, its just your imagination.
hamdi369 (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 2


View Profile
November 13, 2015, 04:10:58 PM
 #7

Yes everything is ok ......

founded it.... DNS problem...

thank you for the help
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!