This repository provides an MLInvoice setup on a basic Ubuntu linux virtual machine. It can be used to easily install MLInvoice for testing or further use on any computer that supports Vagrant.
Vagrant is an application that configures a virtual machine according to the given settings. In practice an Ubuntu Linux installation is created in a Virtualbox virtual machine and MLInvoice is automatically installed into it.
All applications apart from the prerequisites are installed in the virtual machine, which means the actual machine including its operating system settings and applications is kept intact.
N.B. All the crucial files for MLInvoice and it's database are stored in data directory under the directory where this package is extracted.
- Enough disk space for the Ubuntu installation package and the actual installation. Maybe ~1.5 gigabytes.
- Internet connection so that Vagrant can download the required files. A fast connection helps for a fast installation.
- Virtualbox (VMWare should work too but hasn't been tested)
- Basic command prompt (terminal) usage
Install the prerequisites.
Download this repository as a zip file: https://github.com/emaijala/MLInvoice-Vagrant/archive/master.zip
Unpack the zip file somewhere. Note that this place will be permanent, and you need to find it in the command line. The following steps assume it's a Windows machine and the location is C:\MLInvoice.
Open Command Prompt: In Windows, bring up the Start menu and enter "command" ("komento" in Finnish) to search for it. Click when found.
Navigate to the forementioned directory by typing the following commands:
c: cd \MLInvoice
Initialize the virtual machine:
Vagrant will download required files, install the Linux box and MLInvoice and configure everything for you. This may take a good while depending on the speed of the internet connection and the computer.
When the installation is completed, navigate to http://localhost:8888/ to start using MLInvoice (default username and password is admin).
If you want to stop the virtual machine, run the following command:
You can also use Virtualbox's control panel to stop the virtual machine.
Note that every time the computer is shut down or restarted, the virtual machine needs to be started for MLInvoice to be accessible. This can be done in the control panel for Virtualbox or using the
vagrant upcommand like before.
If you want to get rid of MLInvoice, destroy the virtual machine:
Then you can remove the files and the MLInvoice directory. Please note that the data directory under the MLInvoice directory contains MLInvoice's MySQL database, which in turn contains all the data stored in MLInvoice. If this directory is deleted, all the data in MLInvoice will be lost.
While the virtual machine comes ready to go, you may need to configure some of the MLInvoice settings found in config.php file. This is especially for making sending email work properly. After the installation is complete, MLInvoice's files are found in data/mlinvoice directory. See https://www.labs.fi/mlinvoice_installation.eng.php for more information about the configuration and https://www.labs.fi/mlinvoice_usage.eng.php for information on how to get started.