Giter Site home page Giter Site logo

asika32764 / vagrant-ubuntu14-trusty-hhvm Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 196 KB

Vagrant file for HHVM on Ubuntu 14 Trusty

Hack 4.57% C 0.14% C++ 23.07% PHP 43.23% Makefile 0.72% Bison 28.27%
vagrant hhvm hhvm-server virtual-machine ubuntu

vagrant-ubuntu14-trusty-hhvm's Introduction

HHVM Vagrant box

Ubuntu Trusty box simply installing HHVM (standard) via apt.

Find more details on the examples found in the www folder by reading the associated SitePoint article "HHVM and Hack โ€“ Can We Expect Them to Replace PHP?" part 1 and part 2.

Requirements

Installation

$ git clone https://github.com/vicb/hhvm-vagrant.git
$ cd hhvm-vagrant
$ 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$$".

Usage

Check the bootstraping guide and the HHVM docs.

HHVM Server Configuration

If you want to tweak the configuration, edit the conf/php.ini file. The hdf format is deprecated and support will be dropped (conf/config.hdf).

You can find more information on the configuration format:

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

$ vagrant ssh
$ tail -f /var/log/hhvm/access.log
$ tail -f /var/log/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

This box is based on: https://github.com/vicb/hhvm-vagrant and still work in process.

I'll try to add an Apache version.

vagrant-ubuntu14-trusty-hhvm's People

Contributors

asika32764 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

freddiecoleman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.