It will need a wallet (foocoind) running, that is set up for the webserver to be allowed to access it. In mazacoind.conf, specify the following:
server=1
rpcuser=some_username
rpcpassword=set_this_password_to_something_secure_or_risk_theft_of_coins
rpcallowip=1.2.3.4
Obviously, change rpcuser and rpcpassword and pass it to the wallet info page. rpcallowip must be set to the webserver's IP (127.0.0.1 if on same machine).