Skip to content

Minimal Apache PHP environment in Vagrant with Chef

Notifications You must be signed in to change notification settings

JLueke/php-slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-slave

The goal of this is to provide a simple PHP development machine. That can be upgraded with chef and vagrant. A www folder next to the php-slave folder will be shared with the virtual machine and is supposed to contain the content of the application you are trying to run. It will be mounted into the /var/www/ folder of the virtual machine.

Pre-Installation

Local setup for virtualization

$ gem install librarian-chef
  • Install Vagrant omnibus plugin:
$ vagrant plugin install vagrant-omnibus
  • Install Vagrant librarian chef plugin:
$ vagrant plugin install vagrant-librarian-chef

If it fails with something among the lines of unhandled exception from extconf.rb it either means you don't have make or gcc. or the way to fix it is as described in this thread - meaning:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future vagrant plugin install vagrant-librarian-chef
  • Install Vagrant automatic guest addition update
$ vagrant plugin install vagrant-vbguest

Installation

Checkout this repository and place another www folder next to the one created.

Access

There is only one vhost configured that is accessible through a port forward on http://localhost:8080 on your own machine.

Different Environments

To create an environment which has a database available please create another branch and try to name it as meaningful as possible.

About

Minimal Apache PHP environment in Vagrant with Chef

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published