Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
/ vagrant-amp Public archive

[ABANDONED] An Apache (incl. SSL), MySQL, PHP (5.6 or 7), PgSQL-Stack for Vagrant

License

Notifications You must be signed in to change notification settings

chrisandchris/vagrant-amp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMPP-Stack for Vagrant

WARNING: This repository was abandoned as I moved most/all of my stuff to Docker. Use at your own risk.

A nice Apache, MySQL, PHP, PgSQL-Stack for Vagrant. Pretty good variety of modules and tools that are pre-installed. Backups your databases (mysql) up on shutdown. Has Git, NodeJS, NPM, Gulp installed and configured. Provides an SSL-VirtualHost for Apache using an automated generated self-signed cert.

Misses nothing, it's your fully-featured dev environment ready in a few seconds.

Usage

We support libvirt and virtualbox as provider!

# There's a vvguest installed, but make sure it matches your installation
vagrant plugin install vagrant-vbguest
# Now load and start the image for PHP5.6 stack
vagrant init chrisandchris/amp && vagrant up
# Use the PHP7 stack
vagrant init chrisandchris/amp7 && vagrant up

See: https://atlas.hashicorp.com/chrisandchris/boxes/amp and https://atlas.hashicorp.com/chrisandchris/boxes/amp7

Specification

The boxes consist of:

  • Apache 2.4
    • Enabled both HTTP and HTTPS
    • using a self-signed certificate for ssl connections (generated on boot if not yet done)
  • PHP from ppa:ondrej/php5-5.6 with extensions
    • CURL, GD, MCRYPT, MySQL, xDebug, mbstring, PDO
    • xDebug uses idekey vagrant
    • extensive error reporting
  • or PHP 7 when using the amp7 stack
  • xDebug is pre-configured
  • Some Alias-Commands:
    • phpx for php with xDebug in CLI
    • phpunitx for phpunit with xDebug in CLI
    • the env variable HOST contains the ip of eth0 (when using private network, the host is there on .2
  • MySQL 5.5
    • in strict mode
      • NO_ZERO_IN_DATE
      • NO_ZERO_DATE
      • ONLY_FULL_GROUP_BY
      • STRICT_ALL_TABLES
    • every database gets automatically backuped into .sql/ directory on vagrant halt
      • nice feature for developing wordpress/cms content offline
      • could prevent you from data loss
  • PostgreSQL 9.4 with default configuration
    • there is a user vagrant having password vagrant having access to a database named vagrant
  • PostgreSQL 9.3 with default configuration
    • there is a user vagrant having password vagrant having access to a database named vagrant
  • Git
  • NodeJS
  • Gulp

How to improve

Submit an issue or a pull request!

About

[ABANDONED] An Apache (incl. SSL), MySQL, PHP (5.6 or 7), PgSQL-Stack for Vagrant

Resources

License

Stars

Watchers

Forks

Packages

No packages published