Forge Home

hhvm

Install HipHop VM (HHVM Virtual Machine) - the PHP Just in Time environment/compiler by Facebook

44,293 downloads

42,784 latest version

3.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.4 (latest)
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Mar 25th 2015
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'luckyknight-hhvm', '0.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add luckyknight-hhvm
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install luckyknight-hhvm --version 0.0.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: ubuntu, hhvm

Documentation

luckyknight/hhvm — version 0.0.4 Mar 25th 2015

puppet-hhvm

This module installs HHVM (the Facebook HipHop Virtual Machine) on your web server.

The default settings are to listen on a socket at: /var/run/hhvm/hhvm.sock. You can use this via FastCGI in nginx or Apache to connect to it.

Usage:

The module by default will install HipHop VM from a package and start the service on port 9000 as well as create a socket.

class { "hhvm": }

To launch multiple hhvm instances on seperate ports and sockets:

hhvm::service { "9001": }

hhvm::service { "9002": }

To use a nightly instead:

class { "hhvm": use_nightly => true }

To compile from source instead:

class { "hhvm": compile_from_source => true, }

Puppet will most likely time out but the compilation will continue in the background.

Additional options are supported, take a look at init.pp:

class { "hhvm": number_of_processor_cores => 2, # Use how many cores for compilation, default is all date_timezone => "Europe/London", # Change your timezone (see PHP setting) jit_warmup_requests => 5 # Reduce the number of jit warm up requests }

Connecting to HHVM:

In your nginx configuration, set:

fastcgi_pass unix:/var/run/hhvm/hhvm.sock;

Or if you are running multiple HHVM:

fastcgi_pass unix:/var/run/hhvm/hhvm_9001.sock;

fastcgi_pass unix:/var/run/hhvm/hhvm_9002.sock;

etc.

Restarting HHVM

sudo service hhvm restart or sudo /etc/init.d/hhvm restart

Supported Operating Systems:

Ubuntu 14.04

Additional puppet modules

vcsrepo if building from source https://github.com/puppetlabs/puppetlabs-vcsrepo

puppet-apt if using package https://github.com/example42/puppet-apt

Forge URL

https://forge.puppetlabs.com/luckyknight/hhvm

Contributing

Feel free to submit a PR for further options or more operating system support!