Skip to content

Basic Vagrant LAMP setup on Ubuntu Precise32, php 5.4

Notifications You must be signed in to change notification settings

jlayden/vagrant-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant-Config

My vagrant box config/provsioning

Requires VirtualBox, and Vagrant to be installed.

Setup

The VagrantFile is configured to mount the parent directory of where the VagrantFile is in the directory tree.

In example:

  -Sites/
    -MyAwesomeProject/
    -ThisIsWhereVagrantLives/
      -VagrantFile
      -provision.sh
    -AnotherAwesomeProject/

To get the vagrant instance setup and running, cd into the directory with that contains your VagrantFile and run vagrant up.

This will take a few minutes the first time. Once it's finished, run vagrant provision to run the provisioning script.

This will install LAMP and some related dependencies.

Aliases

Assuming your vagrant folder is in ~sites/server/ the following aliases can be added to your .bashrc or equivilant file, so you can vagrant like a boss.

alias vup="(cd ~/sites/server && vagrant up)"
alias vstat="(cd ~/sites/server && vagrant status)"
alias vhalt="(cd ~/sites/server && vagrant halt)"
alias vreload="(cd ~/sites/server && vagrant reload)"
alias vprovision="(cd ~/sites/server && vagrant provision)"
alias vssh="(cd ~/sites/server && vagrant ssh)"

About

Basic Vagrant LAMP setup on Ubuntu Precise32, php 5.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%