joecohens / virtualbox

My VirtualBox setup scripts for PHP development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VirtualBox Dev Setup

These are my scripts for provisioning a new VirtualBox for PHP development. Many things are Taylor specific, such as the bash aliases and extensions for work related projects. However, feel free to fork and modify for your own usage.

wget -O setup.sh http://goo.gl/QwLXeD

Instructions

  1. Install Ubuntu 13.10 into new VirtualBox instance.
  2. Login and select Devices -> Insert Guest Additions CD image... from the VirtualBox menu.
  3. Run the setup.sh script to provision the box.

After the box has been provisioned, you only need to setup your shared folder(s) and port forwarding. Everything else is ready to go. You may connect to the MySQL and Postgres instances via any database management program on your host, such as Sequel Pro or Navicat.

A few of the action and scripts assume your shared folder will be /media/sf_Code. You can modify the setup.sh and serve.sh scripts to change this.

Includes

  • Apache
  • PHP 5.5
  • Composer
  • PHPUnit
  • Mailparse PHP Extension (For Snappy Dev)
  • Memcached
  • Redis
  • MySQL (Password: secret)
  • Postgres (Password: secret)
  • Beanstalkd Queue & Console (VirtualHost @ http://beansole.app)
  • Node.js (With Grunt & Forever)
  • Python Fabric & Hipchat Plugin
  • SSH Key Generation
  • Taylor's Serve Script
  • Taylor's Bash Aliases

Port Forwarding

Note: On Windows, you may use the same ports for both host and guest. This screenshots shows the Mac configuration where higher ports must be used on the host.

Port Forwarding Setup

Shared Folder

Shared Folder Setup

About

My VirtualBox setup scripts for PHP development.

License:MIT License


Languages

Language:Shell 100.0%