简体   繁体   中英

Bitcoin PHP JSONRPC permission denied

After reading https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#PHP and also other tutorials, i haven't gotten it to work. All the JSON RPC libraries i use return the same error:

4.81.94:8332/): failed to open stream: Permission denied in /var/www/html/v2/jsonRPCClient.php on line 132

I also tried easybitcoin.php found on Github that one shows nothing but a blank page.

HOWEVER, when i run the command in SSH, it works perfectly.

bitcoin-cli getinfo

works in SSH and also

php bt.php

also works but when i run this in browser like http://ipaddress/bt.php all i get is a blank page(Using easybitcoin.php) or Permission Denied(Using JsonRPC)

Any ideas?

您是否使用用户名和密码定义应解决您问题的bitcoin.conf文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM