You'll need to set up a file titled server.json. This is the file pushpoold uses to connect to your litecoind, sql db, and to set the ports for incoming connections. Below is an example server.json file with spots that you'll need to fill in.
{
# 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,
# ***THIS PORT IS THE MAIN CONNECTING PORT FOR LP***
{ "port" : 8344, "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" : "localhost",
"port" : 3306,
"name" : "*****DBNAME*****",
"username" : "*****DB_USERNAME*****",
"password" : "*****DB_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 other wise you'll get 500 errors
"rpc.url" : "http://127.0.0.1:*****RPC_PORT*****/",
"rpc.user" : "*****LITECOIND_RPC_USERNAME*****",
"rpc.pass" : "*****LITECOIND_RPC_PASSWORD*****",
# rewrite returned 'target' to difficulty-1?
#"rpc.target.rewrite" : true,
"rpc.target.bits" : 22
}
The end got a little confusing for me. The rpc.target.rewrite : true didn't let me mine. So I set the rpc.target bits manually, and that did. However, make sure you change this value in your requiredFunctions.php/configuration.php file in the /www/includes/ folder of mmcfe. If it doesn't match, your hashrates won't register correctly for the site.
If anyone can chime in to what the rpc.target.rewrite is supposed to do, or why you would set it to true, please chime in... this one stumps me.