MachForm

MachForm

MachForm Self-Hosted

Installing MachForm

A step-by-step guide for deploying MachForm Self-Hosted on a web server

Last updated on 18 Dec, 2025

This guide describes the procedures for installing the MachForm Self-Hosted edition on a web server. MachForm Self-Hosted allows organizations to retain full control over their data collection infrastructure by deploying the software within their own environment.

Before performing a manual installation, note that MachForm offers a Free Installation Service. If you prefer not to configure the server environment manually, MachForm support can complete the installation within two business days.

Prerequisites

Before beginning the installation, ensure you have the following:

  • Web Server Access: Ability to upload files to your server via FTP or a file manager.

  • Database Access: Permissions to create and manage databases on your host.

  • Installation Package: The machform.zip archive file.

Step 1: Create the Database

The MachForm installer does not automatically provision a database. You must create a database manually using your hosting control panel (e.g., cPanel, phpMyAdmin) or command-line tools prior to installation.

  1. Create a new empty database.

  2. Create a database user and grant them all privileges (create, read, write, delete) for the new database.

  3. Record the following connection details, as they are required for the configuration file:

    • Database Name

    • Database Username

    • Database User Password

    • Database Hostname (typically localhost, but this may vary depending on your hosting provider)

Step 2: Configure the config.php file

You must configure the application to communicate with your database before uploading files to the server.

  1. Locate the machform.zip archive on your local machine and extract it.

  2. Navigate to the extracted machform directory.

  3. Open the file named config.php in a text editor.

  4. Edit the database connection variables with the values recorded in Step 1.

Configuration Parameters

The config.php file contains specific variables that control the database connection. Ensure the values inside the single quotes match your database setup exactly.

Parameter

Description

MF_DB_NAME

The name of the database created for MachForm.

MF_DB_USER

The username authorized to access the database.

MF_DB_PASSWORD

The password associated with the database user.

MF_DB_HOST

The hostname or IP address of the database server.

Example Configuration:

define('MF_DB_NAME', 'machdb');
define('MF_DB_USER', 'machuser');
define('MF_DB_PASSWORD', 'g27xTuwys1sh28sdj28');
define('MF_DB_HOST', 'localhost');

Step 3: Upload Files and Set Permissions

Once the configuration file is updated, deploy the application to your web server and ensure the file system permissions allow the application to write data.

  1. Upload the entire machform folder (including the modified config.php) to the public root directory of your website (e.g., public_html or www).

  2. Locate the data folder inside the machform directory.

  3. Configure the data folder to be writable.

    • Linux/Unix: Apply chmod 644 permission to the folder.

    • FTP Clients (FileZilla, SmartFTP, etc.): Right-click the data folder, select Properties or File Attributes, and ensure the permission is set to Writable (or numeric value 644).

Important: Failure to set the correct permissions on the data folder will prevent MachForm from saving file uploads and form configuration data.

Step 4: Run the Installer Script

The installer script initializes the database tables and registers your license.

  1. Open a web browser.

  2. Navigate to the installer URL: http://<your-domain>/machform/installer.php.
    Replace <your-domain> with your actual website domain.

SCR-20251213-gzco.png
  1. Enter your Email Address and License Number in the respective fields.

  2. Click Install MachForm button to execute the setup script.

Installation Success and Default Credentials

Upon successful completion, the installer displays a confirmation screen containing your default login information.

SCR-20251213-heem.png

Default Login Credentials:

  • Email: The email address provided during installation.

  • Password: machform

Initial Login

  1. Click the Login to MachForm button to access the admin panel.

  2. Log in using the default credentials listed above.

  3. Security Action: Immediately navigate to the My Account section and change your password to secure the installation.

Warning: Failure to change the default password immediately after installation leaves your system vulnerable. It is strongly recommended to use a complex password that includes a mix of uppercase letters, lowercase letters, numbers, and special characters

Did you find this article helpful?
Previous

Upgrading MachForm

Next