Bitcoin Forum
June 15, 2024, 01:44:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind and jsonRPCClient on Ubuntu  (Read 912 times)
cshelswell (OP)
Hero Member
*****
Offline Offline

Activity: 615
Merit: 500


View Profile WWW
September 13, 2013, 09:28:33 AM
 #1

Hi - I'm not sure if this is the right place to put this or not but I've got bitcoind installed on ubuntu and I'm trying to use it on a website via php using the jsonRPCClient.php download. I've got it all working great locally but live I just get a blank page. From terminal I can do:

Code:
bitcoind getinfo

And i get info so it's definitely running but from a web page I just get a blank, no errors nothing. I've checked the username and password (a few times now) and all seems good.

All the code is i'm running is:

Code:
$this->bitcoin = new jsonRPCClient('http://'.$this->bitcoin_user.':'.$this->bitcoin_password.'@127.0.0.1:8332/');
$test = $this->bitcoin->getinfo();

print_r ($test);

as i say this works great locally but not live. The blockchain hasn't quite finished downloading but I would have thought it would still give the info?

Any ideas would be amazing - thanks Smiley

cshelswell (OP)
Hero Member
*****
Offline Offline

Activity: 615
Merit: 500


View Profile WWW
September 13, 2013, 09:40:32 AM
 #2

ok "walks off with tail between legs"... my bad might have been a password problem (blush)

geekz
Full Member
***
Offline Offline

Activity: 189
Merit: 100

जगत् िमत


View Profile
December 21, 2013, 11:02:22 PM
 #3

ok "walks off with tail between legs"... my bad might have been a password problem (blush)

I am also having same issue.
I am not able to access it via php.
You can check it here : http://162.243.208.132/bit.php
cshelswell (OP)
Hero Member
*****
Offline Offline

Activity: 615
Merit: 500


View Profile WWW
December 22, 2013, 08:56:46 AM
 #4

hey mate make sure you're password and use name are the same in you conf file and your login file. Think it should work then. I'm just assuming that's the probable. Let e know if not Smiley
Cheers

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!