Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

abr4xas/vagrant-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Logo

Create and configure lightweight, reproducible, and portable development environments.

Pre-requisites:

There are 2 software tools which you will need on your machine for this project:


A super-simple Vagrantfile to setup a LAMP stack inside Vagrant 100% automatically.

  • Setup a ubuntu/wily64 64bit box

  • Private network, which allows host-only access to the machine using a specific IP: 192.168.30.10

  • Forwarded port:

    • 80 to 8080
    • 8000 to 8000
    • 3000 to 8000

setup.sh will:

  • Install:

    • apache2 now: NGINX
    • git
    • libapache2-mod-php5 see #4
    • php
      • php5-mcrypt
      • php5-cli
      • php5-curl
    • bower
    • nodejs
      • Node.js v4.x
    • rethinkdb not for today
    • mongodb not for today
  • Setting a pre-chosen password for MySQL and PHPMyAdmin:

    • root

Connect to the Virtual Machine

  • Install VirtualBox Guest Additions Plugin (This step is optional).
$ vagrant plugin install vagrant-vbguest
  • Start the virtual machine for the first time:
$ vagrant up

This will take some time. It has to download the operating system and all the tools to install on your new virtual machine.

  • Connect to the virtual machine via ssh:
$ vagrant ssh
  • To Stop the Virtual Machine:
$ vagrant halt
  • To Suspend it:
$ vagrant suspend
  • Back to init again:
vagrant up
  • To reload (if it is running):
$ vagrant reload
  • To remove completly:
$ vagrant destroy

The dev folder contains the source code for your project.

setup.sh based on: panique/vagrant-lamp-bootstrap.