Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu: Install HHVM #PHP #HHVM


HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.


  • Ubuntu server


Get the release codename of your Ubuntu installation.

cat /etc/lsb-release

Where DISTRIB_CODENAME is the release codename.

Add the installation repository for HHVM.

wget -O - | sudo apt-key add -
echo deb <release codename> main | sudo tee /etc/apt/sources.list.d/hhvm.list

Install HHVM.

sudo apt-get update
sudo apt-get install hhvm

To run HHVM at boot.

 sudo update-rc.d hhvm defaults

Check the HHVM version.

hhvm --version

Finally let's change the listener for HHVM.

sudo hhvm --mode server -vServer.Type=fastcgi -vServer.FileSocket=/var/run/hhvm.sock


HHVM Prebuilt Packages on Ubuntu 12.04
FasterCgi with hhvm
FastCGI configuration on the HHVM GitHub Wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment