This repository has a Vagrant VM configuration baked in.
You'll to install:
- Vagrant
- Virtualbox
Then, put this repo somewhere appropriate, perhaps in a vagrantvms
directory on your computer.
You may customise the server for your application using the clearly marked "configurable properties" in the following files:
/Vagrantfile
- IPs and settings/manifests/default.pp
- site URLs for vhosts
Creates a virtual machine running a basic LAMP stack. In addition to the standard LAMP installation, we:
- Create a database and user, as per the settings in
/manifests/default.pp
- Install Composer globally;
- Set the correct ownership for the whole dir
Modify your /etc/hosts
file. You'll need to add your chosen development domain, as follows:
# /etc/hosts
192.168.56.107 krys.dev
This is the URL you set in /manifests/default.pp
Assuming you've added the appropriate entry to your /etc/hosts
file, you can access your site at http://krys.dev
.
To install, you'll need to run a quick shell command to get phpMyAdmin accessible in your browser:
vagrant ssh
echo 'Include /etc/phpmyadmin/apache.conf' | sudo tee -a /etc/apache2/apache2.conf
exit
vagrant reload
Then, visit http://krys.dev/phpmyadmin, to access it.
You can connect to the database using Sequel Pro (or an equivalent piece of software) using the following settings:
- Connection Type:
SSH
- MySQL Host:
127.0.0.1
- Username:
root
- Password:
root
- Database: ``
- Port:
3306
- SSH Host:
192.168.56.107
(corresponds with the IP set in theVagrantfile
) - SSH User:
vagrant
- SSH Key:
~/.vagrant.d/insecure_private_key
- SSH Port: ``
cd
to the directory comtaining this repo and run vagrant ssh
.