I have a .php website on my ubuntu virtual machine. I want to start the testrpc in this machine, so I can interract with my smartcontract with this web interface. Is this possible?

2 Answers 2


You can run a local blockchain on Ubuntu using ganache-cli (formerly testrpc)


  • Does it do the same?
    – artem
    Commented Aug 15, 2019 at 16:24
  • Yes. ganache-cli was formerly testrpc.
    – abcoathup
    Commented Aug 16, 2019 at 3:23

On your virtual machine open a terminal, install ganache-cli using npm or yarn and then you will are able to run a local in-memory blockchain. More details in the official repo at https://github.com/trufflesuite/ganache-cli, under the "install" section

To test that you installed it correctly you should run ganache-cli --version and see an output.

As another user pointed out ganache-cli used to be testrpc .

I also found a more narrative article on Medium that might help you understand what's going on: https://medium.com/shyft-network-media/how-we-use-ganache-and-ganache-cli-11bb94aa2d1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.