Vagrant box with LAMP stack (PHP 7), mailhog, exim4, development and production/QA site.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
VM
app
.gitignore
CHANGELOG.md
LICENSE
README.md
Vagrantfile
intro.gif

README.md

VM-PHP

PHP project skeleton.

Intro

Vagrant box featuring:

  • Debian Jessie
  • Apache
  • MySQL
  • PHP 7
  • MailHog
  • exim4
  • development site
  • qa site

Quick Start

  1. Fork this repository

  2. cd into repository folder

  3. vagrant up

    development: http://localhost:8080

    qa: http://localhost:8081

    mailhog: http://localhost:8025

  4. enjoy.

Requirements

Customization

This VM setup relies on several Ansible roles which can mostly be adjusted via overriding values in VM/host_vars/default. Please visit the respective project for further information:

MySQL

Username/password

default: root // root

Set mysql_userand mysql_pass in VM/host_vars/default.

Database

default: vm-php

Set mysql_db in VM/host_vars/default.

Tables

Put your sql statements for initial database setup in VM/roles/dev-setup/files/tables.sql.

Apache

src/qa directories

default: app/src // app/dist

Set http_root_src and http_root_qa in VM/host_vars/default.

sites

Site configurations can be adjusted as needed, see VM/roles/dev-setup/files/dev.conf and VM/roles/dev-setup/files/qa.conf.

ports

Ports can be adjusted via VM/roles/dev-setup/files/ports.conf.

Credits

Jeff Geerling for his awesome Ansible roles.

Ansible for their awesome configuration management tool.

Hashicorp for their awesome virtualization managment tool.

CHANGELOG

LICENSE