Skip to content

bdwilliams/vagrant-base-lamp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation

This repository contains a general vagrant configuration for developing web applications using a LAMP stack.

The package installs the following:

  • ubuntu
  • apache2
  • php 5.3 with xdebug
  • mysql
  • apt
  • imagemagick
  • git
  • phpmyadmin
  • webgrind

Configuration

This repository requires the following pre-requisites: Vagrant and VirtualBox.

Installation

$ git clone https://github.com/bdwilliams/vagrant-base-lamp.git project
$ cd project
$ git submodule init
$ git submodule update

Virtual Host Docroot Configuration

You will then need to place any code that will be configured as vhosts in the www/ directory. (Example: www/yourhost/).

SQL Configuration

You may place any *.sql files into the project/sql directory and have them loaded during vagrant up.

Configure Vhosts

cp sites.cfg.dist sites.cfg

Edit the sites.cfg file to reflect the host you will be accessing via your browser and the directory located in the www/ directory. (Example: www.yourhost.dev:yourhost)

Finally

./setup.sh

The setup command will:

  • Generate the Vagrantfile adding vhosts.
  • Prep any *.sql files located in the sql/ directory for auto-loading.
  • vagrant up

Additional Notes

Optional Note

Mac OSX users may use the following command to port forward 80 -> 8080

sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in

About

Vagrant configuration for a complete LAMP stack with phpMyAdmin, xdebug and Image Magick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 68.3%
  • Shell 31.7%