Web-demo problem

+1 vote
Hi guys,

I did install the multichain and it's woking fine. However, the web-demo isn't work.

I put in the config.txt all data like in the tutorial and in the multichain.conf, the parameter rpcallowip, I put the 127.0.0.1 and also as localhost, but it isn't working.

In the config.txt I try with default.XPTO, as well as chain1.XPTO, but the result is the same.

Usando o browser, the menu is showed normaly, but when I use some option nothing is done. Also, no errors is showed in the browser.

Please, someone have some idea about this problem?

Thanks in advance.

Cheers!
asked Jun 7, 2017 by Regivaldo

1 Answer

0 votes

Please check your web server's error log file to see if something is reported there. If the Web Demo is unable to connect to MultiChain, you should see an error message for that in the web browser.

If you want you can post here the multichain.conf file for MultiChain as well as the config.txt file for the Web Demo, and we can try to see the problem.

Also I'm not sure what you mean by XPTO above?

answered Jun 8, 2017 by MultiChain
Thank you for your reply.

Sorry, XPTO means something like "*" (or ambiguous character).

My multichain.conf:
----------------------------------
rpcuser=multichainrpc
rpcpassword=AUgMRfxx2nzmToDGNjGvNafcKxrumq5Q7X35mX5ngn9p
rpcallowip=localhost
----------------------------------

My config.txt (I also try to use default instead chain1):
----------------------------------
chain1.name=chain1
chain1.rpchost=172.17.0.1
chain1.rpcport=7741
chain1.rpcuser=multichainrpc
chain1.rpcpassword=AUgMRfxx2nzmToDGNjGvNafcKxrumq5Q7X35mX5ngn9p
----------------------------------

Apache error (sorry by long text):
----------------------------------
[Thu Jun 08 14:44:18.506529 2017] [:error] [pid 26429] [client 127.0.0.1:58204] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /var/www/html/functions.php:38\nStack trace:\n#0 /var/www/html/functions.php(79): json_rpc_send('172.17.0.1', '7741', 'multichainrpc', 'AUgMRfxx2nzmToD...', 'getinfo', Array)\n#1 /var/www/html/functions.php(139): multichain('getinfo')\n#2 /var/www/html/page-default.php(11): multichain_getinfo()\n#3 /var/www/html/index.php(74): require_once('/var/www/html/p...')\n#4 {main}\n  thrown in /var/www/html/functions.php on line 38, referer: http://localhost/
[Thu Jun 08 14:44:56.531645 2017] [:error] [pid 3312] [client 127.0.0.1:58244] PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /var/www/html/functions.php:38\nStack trace:\n#0 /var/www/html/functions.php(79): json_rpc_send('172.17.0.1', '7741', 'multichainrpc', 'AUgMRfxx2nzmToD...', 'getinfo', Array)\n#1 /var/www/html/functions.php(139): multichain('getinfo')\n#2 /var/www/html/page-permissions.php(38): multichain_getinfo()\n#3 /var/www/html/index.php(70): require_once('/var/www/html/p...')\n#4 {main}\n  thrown in /var/www/html/functions.php on line 38, referer: http://localhost/?chain=chain1
----------------------------------

Thanks in advance.

Cheers!
So the problem is that you need the curl extension to be installed in PHP.
It worked! Sorry, by the newbie question.

Many thanks.
...