Ist it possible to run Multichain and WEb-Demo on 1 Desktop PC using WAMP or LAMP?

+2 votes
asked Mar 10, 2017 by anonymous

1 Answer

0 votes
Yes, it should work fine on either – MultiChain runs on Windows or Linux, the web demo runs under PHP on any platform, and the two communicate using the JSON-RPC API.
answered Mar 10, 2017 by MultiChain
Damn, we tested now back and forth a dozend times with nu success :-(
Is there anywhere a Troubleshooting document available?
First check MultiChain is running OK by running something like:

multichain-cli chain1 getinfo

Then check the PHP is working with at least something showing in the web browser.

If you got this far, look in your web server's error log file to see if PHP is showing any errors.
Thanks for your help! Very appreciated! We are shortly before stopping our investigations... Multichain and PHP: both running fine. In the error log I see always this series of entries in one stack:

-----------ERR LOG--------------
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function curl_init() in C:\\wamp\\www\\multichain-web-demo-master\\functions.php on line 38, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP   1. {main}() C:\\wamp\\www\\multichain-web-demo-master\\index.php:0, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP   2. require_once() C:\\wamp\\www\\multichain-web-demo-master\\index.php:74, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP   3. multichain_getinfo() C:\\wamp\\www\\multichain-web-demo-master\\page-default.php:11, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP   4. multichain() C:\\wamp\\www\\multichain-web-demo-master\\functions.php:141, referer: http://127.0.0.1/multichain-web-demo-master/
[Fri Mar 10 14:57:55 2017] [error] [client 127.0.0.1] PHP   5. json_rpc_send() C:\\wamp\\www\\multichain-web-demo-master\\functions.php:79, referer: http://127.0.0.1/multichain-web-demo-master/
----------------------END of ERR LOG -------------
Somehow the double backslashes confusing me ...??
The problem is that the MultiChain Web Demo requires the curl extension to be installed in PHP. You can search the web to see how to install that.
Great pleasure! Thank you so much! I think it is running now as expected!
...