-
Notifications
You must be signed in to change notification settings - Fork 3k
Running HipHop VM
Paul Tarjan edited this page May 15, 2013
·
17 revisions
First, create hello.php
:
echo -e "<?php\necho 'Hello from Hiphop';" > hello.php
Next, run hhvm as a server:
sudo hphp/hhvm/hhvm -m server ./
And it is that easy:
curl localhost/hello.php
If you want to set a port number, add -p option as below.
hphp/hhvm/hhvm -m server -p 8000 ./
For more complicated setups, you'll want to create a config.hdf
file. See the documentation for possible options. Then run it like:
hphp/hhvm/hhvm -m server -c config.hdf