Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: awozny on August 02, 2011, 07:48:16 AM



Title: Bitcoin Payment Gateway Questions (VPS or Local)
Post by: awozny on August 02, 2011, 07:48:16 AM
Hello All,

I am the administrator for the BitCoinz Super Store (bitcoinz.ca/shop). Since mybitcoin.com has disappeared without a trace my store is in need of BTC payment gateway. I am running tests with Zen Cart with the BTC payment gateway module. Everything works fine except the RPC communication to the instance of bitcoin I am running.

(1)

I am trying to get the shopping cart to communicate to a dedicated machine in my office. The PC is running Windows 7 Ultimate. I have setup a firewall exception for Bitcoin.

I have created a bitcoin.conf in the correct appdata location... With contents:

RPCUSER=******
RPCPASSWORD=********


I launch bitcoin through a batch file that launches at boot.

Here is the command used to fire up bitcoin in server mode:  bitcoin.exe -server -RPCALLOWIP=store-ip-address -RPCPORT=8332

RPC never connects...shopping cart can not connect to bitcoin. I can ping my IP just fine.

Does anybody have any suggestions on how to get this work? Is there some command wrong?


(2)

I am seriously considering setup a VPS (linux) for this purpose.

Is there any suggestions on which VPS provider to choose?

Is there anyone that will install bitcoind on the VPS (Linux) for me (I am not a Linux guy)?  If so how much would you charge for the installation?


Any suggestions or comments is greatly appreciated.


Title: Re: Bitcoin Payment Gateway Questions (VPS or Local)
Post by: qwk on August 02, 2011, 08:33:15 AM
I have created a bitcoin.conf in the correct appdata location... With contents:

RPCUSER=******
RPCPASSWORD=********


You will also have to allow incoming connections from your webserver, find in bitcoin.conf:

Quote
# By default, only RPC connections from localhost are allowed.  Specify
 # as many rpcallowip= settings as you like to allow connections from
 # other hosts (and you may use * as a wildcard character):
 #rpcallowip=10.1.1.34
 #rpcallowip=192.168.1.*

add a line like:
Quote
rpcallowip=ip-address-of-your-webserver


You may want to make sure that actually nothing else but your webserver actually can connect to your bitcoind, by adapting your firewall exception to only match connections from your webserver as well.

Also, i do not advocate such a setup, i'd rather run a bitcoind on a vps / locally on the webserver, and only use it for processing of payments. Do not actually store your valuable bitcoins there in larger amounts.