Installation via Web Interface

Feature Overview

WhatsMarkSaaS includes a powerful web-based installation wizard that automates the complex setup process for your multi-tenant SaaS platform.

What it does: Provides an intuitive step-by-step installation interface that configures your SaaS platform, tenant isolation, database structure, and initial admin account without requiring manual code modifications.

Why it's essential: The web installer ensures proper multi-tenant architecture setup, handles complex Laravel configuration, and reduces installation errors by automating critical setup steps.

Key Installation Aspects

System Requirements Check

Before proceeding with the installation, it's important to review the System Requirements. This ensures your server environment is compatible with WhatsMarkSaaS and can handle multi-tenant operations.

Installation Video Tutorial

To assist you in the installation process, we provide a quick installation process in video tutorial:

Create Domain/Subdomain

Important Configuration

Ensure that the document root path of your domain/subdomain is set to the /public directory. This step is crucial for the correct functioning of the SaaS application and security.

Access cPanel:

Locate Subdomains:

Create Your Subdomain:

photo

Upload Files

IMPORTANT

Whatsmark requires a correctly set up subdomain, as explained in the previous step. Installation in a subfolder without a proper virtual host configuration will not work. If you're installing in a subfolder, consult your hosting provider to create a virtual host with the root path set to path/to/subfolder/public.

Download Release Archive

Prepare for Upload:

Create Database

TIP

For detailed guidance, refer to the installation videos above.

1. Access cPanel:

2. Navigate to Databases:

3. Create a New Database:

4. Create a Database User:

5. Assign User to Database:

Perform Install

1. Access Installation URL:

2. Check Server Requirements:

installer

installer

3. Verify Permissions:

installer

4. Setup

installer

1. App Url:

2. Application Name:

3. Country:

Configure Database

Add the database config in the installer

1. Hostname

2. Port

3. Database Name

4. Database User

5. Database Password

6. Test Connection & Configure:

5. Admin

installer

Installation Finished Page

TIP

The installation success page will be available for 1 hour after installation, after 1 hour, when you visit the same URL, a 404 error will be shown.

photo

Nginx Config

server {
    listen 80;
    server_name example.com;
    root /example.com/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}

Permissions, User And Group

Change all the directories to 755 (drwxr-xr-x)

find /var/www/example.com -type d -exec chmod 755 {} \;

Change all the files to 644 (-rw-r--r--)

find /var/www/example.com -type f -exec chmod 644 {} \;

Change the files and folders user and group

sudo chown www-data:www-data -R /var/www/example.com

TIP

Don't forget to adjust the values in the example codes according to your setup.

Next Steps

Update Installation

Configure Cron Job

Configure System Email Account

Configure Brand