Git Product home page Git Product logo

vagrant-lamp-centos64's Introduction

#LAMP Stack on CentOS 6.4 Built with Vagrant/Puppet#

For anyone wanting to try out Vagrant, here's some sample code to help you setup your own LAMP dev sandbox quickly. It runs on CentOS 6.4 and the internal setup is done with Puppet.

Do note that the first run might take a while. Depending on your speed, 10 minutes to download the base VM (CentOS 6.4) and 5 minutes to startup and provision the VM. But subsequent startup should be quite fast.

You can spin up new boxes very easily. Just put your PHP scripts in the project folder and add a new vhost. If you are lazy, just throw your PHP files into the project/webroot folder.

Pre-Requisite Software

##Installation Instructions##

  1. Install Puppet & Librarian-Puppet

$ sudo gem install puppet $ sudo gem install librarian-puppet


2. Clone this Git Repository

	```bash
$ git clone [email protected]:sgphpug/vagrant-lamp-centos64.git
$ cd vagrant-lamp-centos64
  1. Install Puppetfile dependencies

$ cd puppet $ librarian-puppet install

4. Start Vagrant

	```bash
$ cd ..
$ vagrant up --provision
  1. Once startup in complete, point your browser to http://localhost:8080 to make sure Apache is running.

Usage

  • Put your files in project/webroot to make it appear in the Apache document root. The ./project folder is mapped to /data in the VM.

  • The MySQL username is root and the root password is media1.

  • To login into the VM type

$ vagrant ssh


* To stop the VM:

	```bash
$ vagrant suspend
  • To halt the VM:

$ vagrant halt


* To destroy the VM:

	```bash
$ vagrant destroy
  • To run Puppet again:

$ vagrant provision


* Whenever you make any changes to `Vagrantfile`, run:

	```bash
$ vagrant reload --provision

Customization

All the configuration are in Vagrantfile and in the puppet/manifests/hieradata/common.yaml. Feel free to explore and tweak the settings to your liking.

Disclaimer

This configuration was successfully tested on Mac OSX Mavericks.

vagrant-lamp-centos64's People

Contributors

miccheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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