This create development enviroment uses PHP,MySQL and nginx on Vagrant.
OS | Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) |
---|---|
PHP | PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch |
Nginx | 1.1.19 |
MySQL | 5.5.31-0ubuntu0.12.04.2 (Ubuntu) |
This repo was presented on PHP Conferece Kansai 2013 (Osaka, Japan)
Slides. Chef + Vagrantで作るこれからの開発環境とクラウド
download and install VirtualBox. https://www.virtualbox.org/wiki/Downloads
install latest version. http://downloads.vagrantup.com/http://downloads.vagrantup.com/)
clone this repo or download as ZIP ball.
git clone git://github.com/yandod/php5-nginx-vagrant-sample.git
pleace php scripts under ./sandbox
or edit Vagrantfile to point your directory which contains php scripts. source code will be synced into VM, you can use your own IDE or editor on your workstation.
kick vagrant command in cloned repo. long time download happens on first time run.
cd php5-nginx-vagrant-sample vagrant up
open http://127.0.0.1:8080 edit Vagrantfile to change the ip.
use vagrant ssh
to ssh into your VM.
vagrant ssh
use vagrant command to stop or destroy your box.
temporary stop.
vagrant halt
destroy permernetlly, next time kick vagrant up
, new machine will be created.
vagrant destroy