Code Monkey home page Code Monkey logo

vagrant-base-lamp's Introduction

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

vagrant-base-lamp's People

Contributors

bdwilliams avatar cosmin-harangus avatar

Watchers

 avatar  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.