Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

These are some useful vagrant related notes from me.


Performance


We all know that vagrant boot up is a bit slow, especially provisioning so you should do your best to increase the performance inside and outside. You can play with RAM and CPU configs in Vagrantfile. On top of that you can use vagrant-cachier tool.


Most used commands


To read what commands below do in more detail, visit CLI page.



Some notes



phpMyAdmin settings


Where phpMyAdmin GUI settings are.


/etc/phpmyadmin/config-db.php

Where phpMyAdmin GUI settings above are originated from.


/etc/dbconfig-common/phpmyadmin.conf

Cannot find a question


If you get errors like below when running any vagrant commands, run $ sudo /usr/share/debconf/fix_db.pl command in vagrant box.


==> default: error: Cannot find a question for phpmyadmin/dbconfig-install
==> default: error: Cannot find a question for phpmyadmin/app-password-confirm
==> default: error: Cannot find a question for phpmyadmin/mysql/admin-pass
==> default: error: Cannot find a question for phpmyadmin/mysql/app-pass

$ sudo /usr/share/debconf/fix_db.pl
debconf: template "phpmyadmin/app-password-confirm" claims to be used by nonexistant question "phpmyadmin/app-password-confirm"; removing that.
debconf: template "phpmyadmin/mysql/admin-user" claims to be used by nonexistant question "phpmyadmin/mysql/admin-user"; removing that.
debconf: template "phpmyadmin/mysql/app-pass" claims to be used by nonexistant question "phpmyadmin/mysql/app-pass"; removing that.
debconf: template "phpmyadmin/dbconfig-install" claims to be used by nonexistant question "phpmyadmin/dbconfig-install"; removing that.
debconf: template "phpmyadmin/mysql/admin-pass" claims to be used by nonexistant question "phpmyadmin/mysql/admin-pass"; removing that.