This repository creates a vagrant VM with a LAMP environment. Vagrant loads a sql file to create a database and PHPMyAdmin is accesible to handle. When the machine Vagrant shuts down, it creates a backup of the database.
##Virtual Machine - Ubuntu 14.04 LTS (trusty) - Apache - MySQL - PHP - Pear - Setup TimeZone - MySQL user and database - PHPMyAdmin - mod_rewrite - mcrypt - git - composer
##Prerequisites
-
You must have vagrant installed.
-
If you want to enable automatic backups, you have to install vagrant-triggers plugin:
$ vagrant plugin install vagrant-triggers
##Config It is possible change TimeZone, database's name, user and password in bootstrap.sh and sql/dump/dump.sh
##Quick Start
- Clone the repo: git clone git://github.com/jorbriib/vagrant-lamp-phpmyadmin-load-dump-db.git
- To load a database, copy a script 'database.sql' in the 'sql' folder.
- Launch machines with command: vagrant up.
- Copy your web site in the shared folder 'www'.