Coder Social home page Coder Social logo

vagrant-lamp-ansible's Introduction

vagrant-lamp-ansible

This is a simple recipe for vagrant that sets up an Ubuntu virtual machine including common daemons and tools required for PHP web development.

You might also be interested in this presentation, which extols the virtues of using Vagrant for PHP development: http://loevborg.karmafish.net/laravel4-pocket/#/laravel-in-your-pocket

Specifically this recipe automatically installs:

  • Ubuntu 12.04 (precise), 64bit version
  • PHP 5.5
  • MySQL
  • phpMyAdmin
  • beanstalkd
  • memcached
  • asset comilation tools
    • compass
    • node.js

This recipe uses the excellent ansible as a provisioning tool for vagrant. It does not use vagrant's ansible plugin, however, because that plugin controls the VM via SSH from the outside (which won't work easily on Windows hosts).

Instead, this recipe runs ansible in its "local" mode (using -c local). As a result, you don't have to install ansible on the host machine. See ansible/provision.sh for details.

To get started, install

preferably in their latest versions from the web sites.

Then clone this repository to a local directory. After changing into the directory, run:

vagrant up

This should download, run and provision the virtual machine.

If something goes wrong, have a look at ansible/playbook.yml, which contains the provisioning recipe. You can re-provision the VM using:

vagrant provision

After bringing up the virtual machine, open this url in your browser: http://localhost:8888/. You should be greeted by the phpinfo() output from public/index.php.

When you're done playing with the VM, you can delete it:

vagrant destroy

vagrant-lamp-ansible's People

Contributors

pesterhazy avatar davad avatar

Watchers

James Cloos avatar Dominic Richter avatar

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.