pikatchu / hhvm-vagrant

Ubuntu Precise box with HHVM nightly build.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HHVM Vagrant box

Ubuntu Precise box simply installing HHVM (nightly) via apt.

Requirements

Installation

$ git clone git@github.com:vicb/hhvm-vagrant.git
$ cd hhvm-vagrant-vm
$ vagrant up

Once the VM is booted you can log via SSH

$ vagrant ssh
$ ...

The server root folder is /vagrant/www (on the map) which is the www folder on your host machine.

  • The HHVM server is available at http://localhost:8080 on the host OS
  • The HHVM admin server is available at http://localhost:8100 on the host OS, the password is "admin"
  • A MySQL server is installed. The root user is "root" with password "pa$$".

HHVM Server Configuration

If you want to tweak the configuration, edit the conf/config.hdf and conf/php.ini files.

You can find more information on the hdf format:

The access and error log are available in /var/hhvm

$ vagrant ssh
$ tail -f /var/hhvm/access.log
$ tail -f /var/hhvm/error.log

Virtual Machine Management

When done just log out with ^D and suspend the virtual machine

$ vagrant suspend

then, resume to testing again

$ vagrant resume

Run

$ vagrant halt

to shutdown the virtual machine, and

$ vagrant up

to boot it again.

You can find out the state of a virtual machine anytime by invoking

$ vagrant status

Finally, to completely wipe the virtual machine from the disk destroying all its contents:

$ vagrant destroy

Credits

I got some inspiration from:

About

Ubuntu Precise box with HHVM nightly build.


Languages

Language:PHP 66.1%Language:C++ 33.7%Language:C 0.2%