Skip to content

Running HipHop VM

Paul Tarjan edited this page May 15, 2013 · 17 revisions

Hello World

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

Set port number

If you want to set a port number, add -p option as below.

hphp/hhvm/hhvm -m server -p 8000 ./

More options

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
Clone this wiki locally