It will install the following on an Ubuntu 14.04 linux VM:
- Apache 2.4.x
- PHP 5.5.x (configurable)
- MySQL 5.5.x
- Drush latest release (configurable)
- Drupal 7.34
- Optional (installed by default):
- Memcached
- XHProf, for profiling your code
- XDebug, for debugging your code
- PHPMyAdmin, for accessing databases directly
- Solr
- Download and install VirtualBox.
- Download and install Vagrant.
- [Mac/Linux only] Install Ansible.
Note for Windows users: Ansible will be installed inside the VM, and everything will be configured internally (unlike on Mac/Linux hosts). See JJG-Ansible-Windows for more information.
- Download this project and put it wherever you want
- Get hold of a database dump and save it somewhere
- Clone the BBC Store codebase
- Open a terminal, cd to this directory (containing the
Vagrantfile
and this README file) - Edit
local.config.yml
and: * setvagrant_ip
to a unique IP address for your network * setsynced_folder
to the location of your Drupal docroot directory * setdatabase_dump
to the location of your database dump from step 2 - Install Ansible Galaxy roles required for this VM:
$ sudo ansible-galaxy install -r requirements.txt
- Run
vagrant up
, and let Vagrant do its magic.
Note: If there are any errors during the course of running vagrant up
, and it drops you back to your command prompt, just run vagrant provision
to continue building the VM from where you left off. If there are still errors after doing this a few times, post an issue to this project's issue queue on GitHub with the error.
- Edit your hosts file, and point the static ip you assigned to vagrant_ip to local.store.bbc.com.
- Open your browser and access https://local.store.bbc.com.
Files are kept in sync with a vagrant rsync file share. To start sharing run vagrant rysnc-auto
after starting the VM.
- Login to the site with an admin account
- Navigate to https://local.store.bbc.com/admin/config/search/search_api and hit the "Add server" button
- Server name can be anything
- Service class should be "Solr service"
- Set Solr Path to "/solr/bbcstore"
- Save.
- Navigate back to https://local.store.bbc.com/admin/config/search/search_api
- Click edit next to "BBC Store Index"
- Set "Server" to the server name you defined in step 3.
- Save.