Running HipHop VM - danslo/hhvm GitHub Wiki
Hello World
First, create hello.php
:
echo -e "<?php\necho 'Hello from Hiphop';" > hello.php
Next, run hhvm as a server (if you installed from source it is in hphp/hhvm/hhvm
):
sudo 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.
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