MLInvoice + XAMPP Installation on a Workstation

Contents

  1. Installing XAMPP
  2. Starting XAMPP
  3. Creating a Database and a MySQL User
  4. Installing MLInvoice
  5. Creating Database Tables
  6. Loggingn in to MLInvoice and Setting up Configuration

1. Installing XAMPP

  1. Download XAMPP installation package from http://www.apachefriends.org/
  2. Install XAMPP according to its documentation. These instructions assume XAMPP is installed into c:\xampp directory.
    • If you install Apache and MySQL as services, you don't need to start them up manually when accessing MLInvoice. However, if you use MLInvoice rarely, having them up and running continuously uses up resources unnecessarily.
    • You can setup or remove the services also later in the XAMPP Control Panel with the Svc checkbox.
      N.B.! For the installation or removal of services will work, the XAMPP Control Panel has to be started as an Administrator. This can be accomplished by right-clicking the icon and selecting "Run as an Administrator".

2. Starting XAMPP

  1. Open up XAMPP Control Panel
    N.B.! If the Control Panel is closed with the X of the window, it wil remain running in the notification area of Windows. It can be brought up again by clicking the icon in the notification area.
  2. Start Apache
    • If Windows Firewall is in use, it will probably ask at this point, whether to allow access to Apache from the network. If you use MLInvoice only on this computer, it is recommended to not allow the access. In this case MLInvoice can only be accessed on the computer it is installed on. This applies to other firewall software too.
  3. Start MySQL
    • With MySQL it is recommended to disallow connections from network in any case.

3. Creating a Database and a MySQL User

  1. Click the Admin... button at MySQL in the XAMPP Control Panel so that phpMyAdmin is opened in the browser.
  2. Create a new database
    1. Click Databases tab at the top
    2. Write mlinvoice in the Create database field
    3. Select a suitable utf8-based collation, e.g. utf8_swedish_ci for a typical Nordic sort order
    4. Click the Create button
  3. Add a new user to the database
    1. Click the Privileges tab at the top
    2. Click Add user link
    3. Fill in the fields:
      • User name: mlinvoice
      • host: localhost (tai valitsepudotusvalikosta "paikallinen")
      • Password and Re-type: something suitably complex here
      • Database for user: ´╗┐Create database with same name and grant all privileges
      • Leave Global privileges empty
    4. Click the Go button

4. Installing MLInvoice

Now that XAMPP has been prepared, MLInvoice can be installed.

  1. Download the installation package from the installation page
  2. Copy the mlinvoice-x.x.x folder from the installation package to c:\xampp\htdocs folder
  3. Rename the copied folder to mlinvoice
  4. Since Windows does not show file extensions by default, are the following operations to create the configuration file done in the command prompt.
    1. Open the Command Prompt (found in the Utilities)
    2. Enter the following commands:
      c:
      cd \xampp\htdocs\mlinvoice
      copy config.php.sample config.php
      write config.php
                
    3. After the last command MLInvoice config file is opened for editing.
    4. Modify line:
      ´╗┐define('_DB_PASSWORD_', '');
                
      and change it to the password for the user you created previously in phpMyAdminissa. This is required for MLInvoice to be able to access the MySQL database.
    5. Other changes are not required, so save the file and close WordPad.

5. Creating Database Tables

Finally, the database tables need to be created.

  1. Go back to phpMyAdmin with the browser
  2. Click mlinvoice on the left column
  3. Click Import tab on the top
  4. Select file c:\xampp\htdocs\mlinvoice\create_database.sql using the button at "Browse your computer"
  5. Click the Go button

6. Logging in to MLInvoice and Setting up Configuration

.

  1. Open the address http://localhost/mlinvoice with the browser
  2. Log in with default credentials admin/admin
  3. IMPORTANT: Change admin user's password from System -> Users.
  4. Change the settings to suit your needs in Settings -> General Settings.

Keep in mind that Apache and MySQL must be running for MLInvoice to be accessible. If you did not set them up as services, they need to be started separately from the XAMPP Control Panel.