Skip to content

djaed/vagrant-phpdev-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Development on Vagrant

Features

Web interfaces

Usage

Run

$ git clone --recursive https://github.com/mp-php/vagrant-phpdev-ubuntu.git
$ cd vagrant-phpdev-ubuntu/
$ vagrant up --provision # this could take a while...

Troubleshooting

If you can not run this recipe, retry after install plugin "vagrant-vbguest"

$ vagrant plugin install vagrant-vbguest

Make Project

On your machine

$ mkdir share/my_first_project
$ vim share/my_first_project/index.php
share/my_first_project/index.php
<?php
phpinfo();
Log in with vagrant ssh
$ vagrant ssh

On vagrant

$ sudo ln -s /share/my_first_project /var/www/my_first_project

access http://192.168.33.10/my_first_project/

Customize

$ cp cookbooks/phpdev/recipes/custom.rb.default cookbooks/phpdev/recipes/custom.rb

edit cookbooks/phpdev/recipes/custom.rb

License

Copyright 2013, Mamoru Otsuka. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

About

PHP Development on Vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages