From ArchWiki
Jump to navigation Jump to search

Tango-emblem-symbolic-link.pngThis article is being considered for redirection to Category:Programming languages.Tango-emblem-symbolic-link.png

Notes: Content doesn't justify article. (Discuss in Talk:Hhvm#)

HHVM, as authors declare, 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.

HHVM runs much of the world’s existing PHP. Developers and hosts are adopting HHVM. We are aware of minor incompatibilities (please open issues when you find them), but we can run the top 20 Github PHP frameworks out of the box. The HHVM team, along with many wonderful community members, has made it a stated, high priority goal to run all existing PHP code existing out in the wild.


Install package hhvm-gitAUR in the AUR.


To enable the HHVM service by default at start-up, run:

# systemctl enable hhvm

To start the HHVM service, run:

# systemctl start hhvm

With default configuration, HHVM serves fastcgi at localhost port 9000.

Making it work with a web server


Edit /etc/nginx/nginx.conf to serve .php files through HHVM via fastcgi:

location ~ \.php$ {
   fastcgi_index  index.php;
   include        fastcgi.conf;


fastcgi.server = (
  ".php" => (
     "localhost" => (
       "host" => "",
       "port" => "9000",
       "broken-scriptfilename" => "enable",

Restart lighttpd.service to apply any changes.