Skip to content

cassvail/vagrant-lamp-ansible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Vagrant starter set to set up PHP, Apache and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.1%
  • PHP 4.9%