here is a copy of my configuration files the only thing I changed was the actual password to 'password' for the sake of security everything else is exactly like it is on my server
my bitcoin.conf looks like this:
rpcuser=miningfarm
rpcpassword=password
rpcallowip=*
rpcport=8332
server=1
my config.php looks like this:
//Fit to your need variables // These should be the only variables you need to edit
$mysqlUsername = "miningfarm";
$mysqlPassword = "password";
$mysqlDatabase = "miningfarm";
$mysqlHost = "localhost";
//Linkage
$header = $req."header.php";
$menu = $req."menu.php";
$footer = $req."footer.php";
$bitcoind = $req."/bitcoinWallet/bitcoin.inc.php";
//Cookies!
$cookieName = "miningfarm#2";
$cookiePath = "/";
$cookieDomain = "";
//Bitcoind RPC information
$rpcType = "http";
$rpcUsername = "miningfarm";
$rpcPassword = "password";
$rpcHost = "127.0.0.1:8333";
?>
my server.json looks like this:
# network ports
"listen" : [
# binary protocol (default), port 8342
{ "port" : 8342 },
# HTTP JSON-RPC protocol, port 8341
{ "port" : 8341, "protocol" : "http-json" },
# HTTP JSON-RPC protocol, port 8344,
# with trusted proxy appserver.example.com forwarding
# requests to us
{ "port" : 8332, "protocol" : "http-json",
"proxy" : "127.0.0.1" },
# binary protocol, localhost-only port 8338
{ "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
],
# database settings
"database" : {
"engine" : "mysql",
"host" : "miningfarm.db.7858894.hostedresource.com",
"port" : 3306,
"name" : "miningfarm",
"username" : "miningfarm",
"password" : "password",
"sharelog" : true,
"stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
"stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
},
# cache settings
"memcached" : {
"servers" : [
{ "host" : "127.0.0.1", "port" : 11211 }
]
},
"pid" : "/tmp/pushpoold.pid",
# overrides local hostname detection
"forcehost" : "localhost.localdomain",
"log.requests" : "/tmp/request.log",
"log.shares" : "/tmp/shares.log",
# the server assumes longpolling (w/ SIGUSR1 called for each blk)
"longpoll.disable" : false,
# length of time to cache username/password credentials, in seconds
"auth.cred_cache.expire" : 75,
# RPC settings | Notice how this ISN'T port number 8332 this is becuase the same port number should not becuase inconjunction with the JSON RPC port $
"rpc.url" : "
http://127.0.0.1:8333/",
"rpc.user" : "miningfarm",
"rpc.pass" : "password",
# rewrite returned 'target' to difficulty-1?
"rpc.target.rewrite" : true
}