Help with Facebook's HHVM

June 11, 2014 1.9k views
Can you please do a step by step tutorial on how to configure HHVM on Ubuntu, I have managed to install it but I keep getting 404 file not found error. I am trying to run HHVM on Ubuntu 14.04 in CGI mode with Apache as the web server. I am bit desperate but I can not find a solution online. Thanks.
1 Answer
They provide prebuilt packages for a number of distros. See: On Ubuntu 14.04, you first need to enable the package repository:
wget -O - | sudo apt-key add -
echo deb trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
You can then install the package with:
sudo apt-get install hhvm
Then enable HHVM as FastCGI:
To make sure that HHVM automatically restarts at boot, run:
sudo update-rc.d hhvm defaults
Though for some reason, you need the full file paths in the url. hhvm.server.default_document doesn't seem to work. So you need to do things like: http://your.ip.address/index.html Presumably you could use rewrite directives in Apache to work around this.
Have another answer? Share your knowledge.