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
to8080
8000
to8000
3000
to8000
setup.sh will:
-
Install:
apache2now: NGINX- git
libapache2-mod-php5see #4- php
- php5-mcrypt
- php5-cli
- php5-curl
- bower
- nodejs
- Node.js v4.x
rethinkdbnot for todaymongodbnot 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.