#Installation * [Vagrant](https://www.vagrantup.com/downloads.html) * [VirtualBox](https://www.virtualbox.org/wiki/Downloads) * Useful Vagrant’s plugins * [Hosts Updater](https://github.com/cogitatio/vagrant-hostsupdater) * [vbguest](https://github.com/dotless-de/vagrant-vbguest)
vagrant up && vagrant sshIf you need to rerun provisioning
vagrant provisionUnix users
sh reinstall.shWindows users
sh reinstall.sh --windowsBy default your site will be accessible by using this url.
http://drupal.192.168.56.132.xip.io/If not working - create row withxip.io
192.168.56.132 drupal.192.168.56.132.xip.ioin or just use another ServerName in apache.yml/etc/hosts
If you have Vagrant HostUpdater plugin, your hosts file will be automatically updated.
For automatic update additions within guest, please install proper plugin
vagrant plugin install vagrant-vbguest-
XDebug
-
Drush
-
Selenium 2
-
Composer
-
Adminer
-
XHProf
-
PHP Daemon
-
PHP, SASS, JS sniffers/lints/hints
Adminer for mysql administration (credentials drupal:drupal and root:root)
http://192.168.56.132.xip.io/adminer.phpIt is installed by default, but to use it as Devel module integration use:
drush en devel -y
drush vset devel_xhprof_enabled 1
drush vset devel_xhprof_directory '/usr/share/php' && drush vset devel_xhprof_url '/xhprof_html/index.php'
ln -s /usr/share/php/xhprof_html xhprof_htmlAfter vset devel_xhprof_enabled it could return an error about "Class 'XHProfRuns_Default' not found" - ignore it.
Install [Cygwin](https://servercheck.in/blog/running-ansible-within-windows) according to provided steps.
Run Cygwin as Administrator user.
Use default flow to up Vagrant but run sh reinstall.yml --windows
##Windows troubleshooting
If you will see error liek during …[error 26] file is busy… modify that line:sh reinstall.sh
before
name: Stage File Proxy settings
sudo: yes
lineinfile: dest='sites/default/settings.php' line='$conf[\"stage_file_proxy_origin\"] = \"{{ stage_file_proxy_url }}";'after:
name: Copy settings.php
sudo: yes
shell: cp sites/default/settings.php /tmp/reinstall_settings.php
name: Stage File Proxy settings
sudo: yes
lineinfile: dest='sites/default/settings.php' line='$conf[\"stage_file_proxy_origin\"] = \"{{ stage_file_proxy_url }}\";'
name: Restore settings.php
sudo: yes
shell: cp /tmp/reinstall_settings.php sites/default/settings.phpInstall vagrant
https://www.vagrantup.com/downloads.htmlInstall Virtualbox from here:
https://www.virtualbox.org/wiki/Downloadscd to project folder
vagrant up && vagrant sshYou will be logged into virtual machine.
Go to this path
/vagrant/docrootand run the script
sh reinstall.shfor drupal reinstall from scratch.
Configure Stage File Proxy to use the files from the correct source.