PHP exec returns "incorrect rpcuser or rpcpassword"

1

I am trying to integrate a new crypto currency into an exchange, using "chaucha-cli", but when executing the command that creates the address, from PHP with the exec command, it throws me the following:

  

incorrect rpcuser or rpcpassword

The current code:

$command = "echo -e '' | sudo -S /home/user/chaucha-daemon/./chaucha-cli getnewaddress 2>&1 -rpcuser=user -rpcpassword=password";

Executing said command from terminal, it executes correctly.

    
asked by IgnacioAinol 07.09.2018 в 20:37
source

0 answers