Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 1.77 KB

README_en.md

File metadata and controls

77 lines (59 loc) · 1.77 KB

php5-nginx-vagrant-sample

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で作るこれからの開発環境とクラウド

How to use

VirtualBox setup

download and install VirtualBox. https://www.virtualbox.org/wiki/Downloads

Vagrant setup

install latest version. http://downloads.vagrantup.com/http://downloads.vagrantup.com/)

clone repo

clone this repo or download as ZIP ball.

git clone git://github.com/yandod/php5-nginx-vagrant-sample.git

source code

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.

boot vagrant

kick vagrant command in cloned repo. long time download happens on first time run.

cd php5-nginx-vagrant-sample
vagrant up

test

open http://127.0.0.1:8080 edit Vagrantfile to change the ip. use vagrant ssh to ssh into your VM.

vagrant ssh

termination

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