Skip to content

Run Laravel4 inside a Ubuntu 12.04 Vagrant Virtual Machine w/PHP 5.4

Notifications You must be signed in to change notification settings

firework/Laravel4-Vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 4 w/ Vagrant

A basic Ubuntu 12.04 Vagrant setup with Laravel4 and PHP 5.4.

Requirements

  • VirtualBox - Free virtualization software Downloads
  • Vagrant - Tool for working with virtualbox images Vagrant Home, click on 'download now link'
  • Git - Source Control Management Downloads

Setup

  • Clone this repository git clone http://github.com/bryannielsen/Laravel4-Vagrant.git
  • run vagrant up inside the newly created directory
  • (the first time you run vagrant it will need to fetch the virtual box image which is ~300mb so depending on your download speed this could take some time)
  • Vagrant will then use puppet to provision the base virtual box with our LAMP stack (this could take a few minutes) also note that composer will need to fetch all of the packages defined in the app's composer.json which will add some more time to the first provisioning run
  • You can verify that everything was successful by opening http://localhost:8888 in a browser

Note: You may have to change permissions on the www/app/storage folder to 777 under the host OS

For example: chmod -R 777 www/app/storage/

Default MySQL Database

  • User: root
  • Password: root
  • DB Name: database

Using Vagrant

Vagrant is very well documented but here are a few common commands:

  • vagrant up starts the virtual machine and provisions it
  • vagrant suspend will essentially put the machine to 'sleep' with vagrant resume waking it back up
  • vagrant halt attempts a graceful shutdown of the machine and will need to be brought back with vagrant up
  • vagrant ssh gives you shell access to the virtual machine
Virtual Machine Specifications
  • OS - Ubuntu 12.04
  • Apache - 2.2.22
  • PHP - 5.4.14
  • MySQL - 5.5.24
  • Beanstalkd - 1.4.6
  • Redis - 2.2.12

About

Run Laravel4 inside a Ubuntu 12.04 Vagrant Virtual Machine w/PHP 5.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published