Giter VIP home page Giter VIP logo

vagrant-lamp-centos63's Introduction

LAMP stack setup based on CentOS 6.3 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.3 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.3) 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 projects folder and add a new vhost. If you are lazy, just throw your PHP files into the projects/webroot folder.

This installs:

  • Apache
  • MySQL
  • PHP
  • phpMyAdmin

Installation

  1. Install VirtualBox

    Download from https://www.virtualbox.org/wiki/Downloads. Remember to download the VirtualBox Extension Pack.

  2. Install Vagrant

    Download from http://downloads.vagrantup.com.

  3. Clone this repo into a local folder

$ git clone [email protected]:miccheng/vagrant-lamp-centos63.git phpdev $ git submodule init $ git submodule update


4. Start Vagrant

	`cd` into the checked out folder to start the VM:

	```bash
$ vagrant up

Usage

Update your host operating system's /etc/hosts file with the following entry:

192.168.56.60 phpdev.local

Now, you can reach the webroot with http://phpdev.local or http://localhost:8080.

To login into the VM type

$ vagrant ssh

To stop the VM:

$ vagrant suspend

To halt the VM:

$ vagrant halt

To destroy the VM:

$ vagrant destroy

The phpMyAdmin URL: http://phpdev.local/phpmyadmin or http://localhost:8080/phpmyadmin.

Note: The MySQL username is root and the root password is media1. To change the default, edit manifests/db.pp.

Attribution

Based on the excellent work from Patrick Daether.

vagrant-lamp-centos63's People

Contributors

miccheng avatar

Watchers

 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.