If you just can’t wait to get your hands on the latest HHVM code, but you don’t want to spend the time to compile it, we have a present for you.

Every midnight, we run a script that pulls whatever is in master, compiles it, does a sanity check, builds a package and sends it off to the repo. You can then use it by adding the HHVM repo normally and then installing the “hhvm-nightly” package instead of the “hhvm” package. The nightly package should work identically to the current 8 week release cycle package; it will just have all the most recent commits with much less of the testing and hardening (so beware). While we pride ourselves in having master always passing the full test suite, bugs can obviously creep in, so please don’t run your production site on a nightly. When you are about to report an issue, please check that it hasn’t already been fixed by the nightly package.

(Update) All our supported distros now have nightlies.

For now, there are only Ubuntu LTS (12.04), Ubuntu most recent (13.10) and Debian stable (7). We will consider others if there is enough desire. Comment below if you want another distro and would actively use ”hhvm-nightly”.

For Ubuntu 12.04:

sudo add-apt-repository ppa:mapnik/boost
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm-nightly

For Ubuntu 13.10:

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu saucy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm-nightly

For Debian 7:

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm-nightly


  • Stuart Carnie: Great stuff! Will hhvm-fastcgi-nightly become available the same way?
  • Paul Tarjan: No. `hhvm-fastcgi` doesn't actually have any binaries in it. It is just config files for your ngingx or apache. I'm going to work on figuring out how to make it not uninstall when you install the nightly, but for now, you can force install it or configure by hand.
  • Victor Berchet: For those interested I have a Vagrant setup available at https://github.com/vicb/hhvm-vagrant. It comes with some HH samples and more is on the way.
  • Rasta: Is an Mac OS version planned? If yes, when?
  • inet: Please consider builds for Amazon Linux.
  • Jacey Harker: A nightly update for CentOS (via YUM) would be much-appreciated for our dev servers.
  • Vadim: Please package for > CentOS 6.4
  • Paul Tarjan: Mac OS works in interpreter mode but the JIT doesn't work yet. Sadly that is the best part of HHVM so we aren't releasing on homebrew yet.
  • Bruno: Agreed, CentOS support would be great.
  • Mohammed: I tired to install it and it works with me via command line by when I tried it via broswer I have no luck I amd using apache as a webserver and I followed the instructions in this article http://www.hhvm.com/blog/ under the title of Making it work with Apache
  • Souki: Amazon Linux support would be great!
  • Patrick: I added nightly support to hhvm for vagrant fans at http://getprotobox.com/ or https://github.com/protobox/protobox .
  • Pomyk: +1 for CentOS :)
  • Máximo Cuadros: The OSX brew tap is update to 2.4.0
  • Cyrill Schumacher: I would like to see nightly builds for Amazon Linux AMI :-) Thanks!
  • Pepijn Blom: About to start testing some sites with HHVM nightly. Can't wait to see the results! For work CentOS builds would be appreciated, for personal experimentation Debian & Ubuntu will do just fine :)
  • besei: $sudo apt-cache show hhvm-nightly Hhvm-nightly package can not be found
  • Jon Deckeer: It appears that hhvm-nightly hasn't built for saucy since the 18th (though precise nightly builds seem to be working) http://dl.hhvm.com/ubuntu/pool/main/h/hhvm-nightly/
  • Paul Tarjan: Hmm, it seems the precise VM is more memory constrained than the others. I'll bump the parallelism from 8 to 4
  • besei: Why?
  • besei: # sudo apt-get install hhvm Reading package lists... Done Building dependency tree Reading state information... Done Package hhvm is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'hhvm' has no installation candidate # sudo apt-cache show hhvm N: Can't select versions from package 'hhvm' as it is purely virtual N: No packages found # sudo apt-cache show hhvm-nightly N: Unable to locate package hhvm-nightly E: No packages found
  • besei: Sory. cpu 32bit. Feel disappointed. orz
  • besei: I'm sorry. cpu 32bit. Feel disappointed. orz
  • Jason McClellan: Would love to see nightlies on Fedora!
  • Hemant Tiwari: I am trying to install in my local machine under categoty "For Ubuntu 12.04" I got the following error : hemant@hemant-virtual-machine:~$ sudo apt-get install hhvm-nightly Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package hhvm-nightly
  • Souvik: How can I install Hack in Windows?
  • Tyler: +1 for amazon linux...i would love to use this on elasticbeanstalk
  • Jay: +1 for CentOS
  • Stranger: FreeBSD would be great!
  • Maxim: I am having a trouble using hhvm-nightly with Google API PHP Client: Warning: Unknown signature algorithm. in /home/maxime/Git/google-api-php-client/src/Google/Signer/P12.php on line 85 Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Unable to sign data' in /home/maxime/Git/google-api-php-client/src/Google/Signer/P12.php:86 The troubled code in P12.php is: if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) { throw new Google_Auth_Exception("Unable to sign data"); } This code works fine with PHP on the same machine with Ubuntu 13.10.
  • wasif: whats about windows version ?
  • mani: wat about windows8
  • Martin: Hi, I have noticed, that there is already repository for Ubuntu 14.04 Trusty. So, it would be possible to generalize the code for Ubuntu 13.10 and higher such as: sudo echo 1 wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - version=`lsb_release -a | grep Codename | cut -f2` echo deb http://dl.hhvm.com/ubuntu $version main | sudo tee /etc/apt/sources.list.d/hhvm.list sudo apt-get update sudo apt-get install hhvm-nightly
  • Paul Tarjan: Sadly I don't want to maintain that many images that I have to build for. I do the latest LTS and the latest release.
  • Armin: ubuntu 14.04 LTS is the latest release. please add it.
  • Paul Tarjan: It is there on https://github.com/facebook/hhvm/wiki/Prebuilt%20Packages%20for%20HHVM
  • Armin: Thanks. but I have problem with running hack files. I have apache enabled and hhvm installed. how can I use it? I mean I created a .php file with this code: copied in my htdocs folder which I use for other projects. but it doesn't work and gives me a syntax error that means it doesn't know
  • Ben Swinburne: +1 for Amazon Linux
  • Logan: A CentOS package would be great!
  • Helmut Hoffer von Ankershoffen: +1 for CentOS (7)