This is a simple Vagrant file to run multiple PHP Version with EasyEngine. Right now this setup is using custom vagrant box ee-phpbrew, created for this project.
Note: If you are using other that Ubuntu/Debian system, then installation steps will differ, but setup steps are same.
- EasyEngine with Nginx and MySQL
- PHP 5.3, 5.4, 5.5 and 5.6
- First we will install Virtual Box and Vagrant on our system.
sudo apt-get install virtualbox
- After that download the latest version of Vagrant from http://www.vagrantup.com/downloads
- Install vagrant
sudo dpkg -i vagrant_*.deb
- You will also need to install vagrant-hostsupdater plugin for Vagrant
sudo vagrant plugin install vagrant-hostsupdater
- You can use any distribution from VagrantCloud that supports EasyEngine. By default EasyEngine-Vagrant uses ubuntu/trusty64. To change the distribution open the Vagrantfile and replace ubutnu/trusty64 with box name
git clone https://github.com/gau1991/easyengine-phpbrew.git
cd easyengine-phpbrew
- Edit
ee-hosts
file and enter domain names that should be pointed to this vagrant box
$ cat ee-hosts
example.com
- Now start Vagrant
vagrant up
- It will setup EasyEngine on Vagrant Box.
ee site create example.com --wp
- To check installation log, open another terminal and use
tail -f easyengine-vagrant/logs/*
- To switch PHP version use command
sudo ee-switch <PHP-VERSION>