Skip to main content

Installation Wizard

LeadHub installs entirely through your web browser. There is no command line, no terminal, no SSH. You upload the files, open a URL, and follow five simple steps. This guide walks you through the entire process from start to finish.

Total time: approximately 10โ€“20 minutes.


Before You Beginโ€‹

Make sure your server meets the requirements listed in the Server Requirements guide. In particular, confirm that:

  • PHP 8.3 or higher is active for your domain
  • You have a MySQL database (or MariaDB) available โ€” or you can create one (instructions below)
  • Your storage/ and bootstrap/cache/ directories are writable
  • You have around 500 MB of free disk space

Step 1 โ€” Upload the LeadHub Files to Your Serverโ€‹

Download the packageโ€‹

After purchasing LeadHub, download the ZIP package from your purchase confirmation email or from the Envato Downloads page. The file will be named something like leadhub-v1.0.0.zip.

Inside the ZIP you will find everything LeadHub needs โ€” including the vendor/ folder (all PHP dependencies), pre-compiled CSS and JavaScript, and the installer itself. You do not need to install anything separately.

Upload via cPanel File Manager (easiest method)โ€‹

This is the recommended approach for most users on shared hosting.

  1. Log in to your cPanel account.
  2. Click File Manager in the Files section.
  3. Navigate to the folder where you want to install LeadHub. This is typically:
    • public_html/ if you want LeadHub at your main domain (e.g., https://yourdomain.com)
    • A subdirectory like public_html/leadhub/ if you want it at a path
    • A dedicated addon domain folder if you set up an addon domain (recommended โ€” see Shared Hosting Guide for details)
  4. Click Upload in the toolbar.
  5. Upload the leadhub-v1.0.0.zip file.
  6. After the upload finishes, go back to File Manager, right-click the ZIP file, and choose Extract.
  7. Extract it into the correct folder.

Upload via FTPโ€‹

If you prefer FTP (using a program like FileZilla or Cyberduck):

  1. Connect to your server using your FTP credentials (host, username, password, port 21).
  2. Navigate to the destination folder on your server (the right panel in FileZilla).
  3. Drag the unzipped leadhub folder from your computer into the server folder.
  4. Wait for all files to finish uploading. This may take 5โ€“15 minutes depending on your connection speed โ€” there are many files in the vendor/ directory.

Tip: It is faster to upload the ZIP file via File Manager and extract it on the server than to upload thousands of individual files over FTP.


Step 2 โ€” Set File Permissionsโ€‹

LeadHub needs to be able to write to certain folders. "Permissions" are settings that control who is allowed to read, write, or run files. You need to set the following folders to permission level 755 (sometimes shown as rwxr-xr-x).

In cPanel File Manager:โ€‹

  1. Open File Manager and navigate to your LeadHub folder.
  2. Right-click on the storage folder and choose Change Permissions.
  3. Set it to 755 and make sure the "Recurse into subdirectories" checkbox is ticked.
  4. Click Change Permissions.
  5. Repeat this for the bootstrap/cache folder (set to 755).

That is all you need to do. The installer will also attempt to fix permissions automatically if it finds any issues.


Step 3 โ€” Open the Installer in Your Browserโ€‹

Open your web browser and visit:

https://yourdomain.com/install

Replace yourdomain.com with your actual domain name. If you installed LeadHub in a subdirectory, include that in the path (e.g., https://yourdomain.com/leadhub/install).

The installer will load and take you through five steps. Each step is a simple form โ€” fill it in and click Next.

If you see a 404 "Page Not Found" error: Double-check that your files are in the right folder and that the public/.htaccess file was uploaded correctly. On cPanel, also confirm that mod_rewrite is enabled (it is enabled by default on virtually all shared hosts).

If you see a blank white page: PHP is probably not enabled for that folder, or the PHP version is too old. Go back to cPanel โ†’ MultiPHP Manager and confirm PHP 8.3 is selected for your domain.


Installer Step 1 โ€” Welcome and Requirements Checkโ€‹

The first page of the installer is the Requirements Check. LeadHub automatically scans your server and shows you a checklist of everything it needs.

You will see green checkmarks next to the things that are working correctly and red warnings next to anything that needs attention. Here is what each section checks:

  • PHP Version โ€” must be 8.3 or higher
  • PHP Extensions โ€” checks all 13 required extensions (pdo, pdo_mysql, mbstring, openssl, tokenizer, xml, ctype, json, bcmath, fileinfo, curl, zip, gd)
  • Directory Permissions โ€” checks that storage/ and bootstrap/cache/ are writable

What to do if something failsโ€‹

PHP version too low: Go to cPanel โ†’ MultiPHP Manager โ†’ change your domain to PHP 8.3. Come back and refresh the installer page.

A PHP extension is missing: Go to cPanel โ†’ Select PHP Version โ†’ find the missing extension in the list โ†’ tick the checkbox โ†’ Save. Come back and refresh the installer page.

A directory is not writable: Go to cPanel โ†’ File Manager โ†’ right-click the storage or bootstrap/cache folder โ†’ Change Permissions โ†’ set to 755 and recurse into subdirectories. Come back and refresh.

Once everything shows a green checkmark, click the "Next: Database" button to proceed.


Installer Step 2 โ€” Database Configurationโ€‹

This step connects LeadHub to your MySQL database. You will need to fill in four fields:

FieldWhat to enter
Database HostUsually localhost or 127.0.0.1 โ€” leave as the default unless your host tells you otherwise
PortUsually 3306 โ€” this is the standard MySQL port. Leave it as-is.
Database NameThe name of the MySQL database you created (see below)
Database UsernameThe MySQL user you created (see below)
Database PasswordThe password for that MySQL user

After filling these in, the installer will test the connection immediately when you click "Next: Admin Account". If the connection fails, it will tell you on this page so you can correct the details.

How to create a MySQL database in cPanelโ€‹

If you have not created a database yet, here is how to do it:

  1. In cPanel, look for MySQL Databases (in the Databases section).
  2. Under "Create New Database", type a name for your database (e.g., leadhub) and click Create Database. Note: cPanel will prefix your username to the database name automatically (e.g., myuser_leadhub). Make a note of the full name.
  3. Scroll down to "MySQL Users" and under "Add New User", create a new username (e.g., leadhub_user) and a strong password. Click Create User. Make a note of this username and password.
  4. Scroll down to "Add User to Database". Select the user you just created and the database you just created, then click Add.
  5. A page will appear asking which permissions to grant. Tick "All Privileges" and click Make Changes.

You now have a database ready. Go back to the installer and fill in the database name (the full prefixed name, e.g., myuser_leadhub), username, and password.


Installer Step 3 โ€” Admin Accountโ€‹

This step creates the first administrator account for LeadHub. Fill in:

FieldWhat to enter
Your NameYour full name (e.g., "Jane Smith")
Email AddressYour email address โ€” this will be your login username
PasswordA strong password (at least 8 characters)
Confirm PasswordSame password again
Workspace NameThe name of your organization or workspace

What is a Workspace?

A workspace is your organization's account within LeadHub. Everything in LeadHub โ€” leads, pipelines, team members, automations โ€” belongs to a workspace. When you first install LeadHub, one workspace is created automatically for you. You are set as its owner with full Super Admin permissions.

Think of a workspace like your company's account. The workspace name you enter here will appear throughout the admin panel (e.g., in the sidebar header, email footers, and reports).

Click "Next: License" when done.


Installer Step 4 โ€” Licenseโ€‹

This step lets you enter your Envato purchase code to activate your license. This is the license key you receive when you purchase LeadHub on CodeCanyon (Envato Market).

To find your purchase code:

  1. Log in to your Envato Market / CodeCanyon account.
  2. Go to your profile โ†’ Downloads.
  3. Find LeadHub in your list of purchases.
  4. Click "Download" โ†’ "License certificate & purchase code".
  5. Copy the purchase code (it looks like: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Paste it into the License Key field and click "Next: Finish".

You can also skip this step by leaving the field blank and clicking Next. LeadHub will install without a license. You can add your license key later in Settings โ†’ License from within the admin panel. Some features may be limited or display license reminders without an active license.


Installer Step 5 โ€” Finishโ€‹

This is the final step. You will see a summary of your configuration choices before installation begins. Click "Install LeadHub" to start.

The installer will now do the following โ€” all automatically, with no input needed from you:

  1. Write the configuration file (.env) โ€” stores your database connection, app key (a random security code), and basic settings. Session driver is set to file by default, which works on all shared hosting.
  2. Run database migrations โ€” creates all the database tables that LeadHub needs (leads, users, pipelines, automations, etc.).
  3. Seed the database โ€” inserts the default roles (super admin, admin, manager, agent, viewer) and permissions.
  4. Create your admin account โ€” creates your account with the details you provided in Step 3, assigned the Super Admin role.
  5. Create your workspace โ€” sets up your workspace with you as the owner.
  6. Link the storage folder โ€” creates a link so uploaded files (logos, avatars, imports) are accessible from the browser.
  7. Cache configuration โ€” speeds up the application by caching settings.

This process takes approximately 30โ€“90 seconds. You will see a progress indicator. When it is complete, you will see a success message and be automatically redirected to /admin where you can log in with the email and password you created in Step 3.

Installation is complete.


Post-Installation Checklistโ€‹

After the wizard finishes and you are logged in, do these things immediately:

1. Set up the Cron Job (CRITICAL)โ€‹

Without the cron job, your automations will not run, lead source webhooks will queue up unprocessed, and email notifications will not send.

The only cron job you need to add is:

php /home/yourusername/leadhub/cron.php >> /dev/null 2>&1

This should run every minute. See the Shared Hosting Guide for exact step-by-step instructions on adding this cron job in cPanel, Plesk, and DirectAdmin.

2. Configure Emailโ€‹

Go to Settings โ†’ Email in the admin panel. Enter your SMTP server details (host, port, username, password, encryption). Click "Send Test Email" to verify it works before relying on it. Without this step, no emails will be sent by LeadHub.

3. Upload Your Logo and Set Your Brandingโ€‹

Go to Settings โ†’ Branding. Upload your logo, set your application name (replacing "LeadHub" with your own brand if desired), and choose your primary and accent colors. This affects how the admin panel looks, what appears on the login page, and what is shown in outbound emails.

4. Create Your First Pipelineโ€‹

Go to Pipelines in the sidebar. Create a pipeline and add stages to it (e.g., "New", "Contacted", "Qualified", "Proposal", "Won", "Lost"). Leads need a pipeline to move through.

5. Connect Your First Lead Sourceโ€‹

Go to Lead Sources in the sidebar. Connect your first source โ€” this might be Facebook Lead Ads, a Google Ads form, a web form, or manual entry.


How to Re-Run the Installerโ€‹

If something goes wrong during installation, or if you need to start over, you can re-run the installer by deleting the installation lock file.

In cPanel File Manager, navigate to your LeadHub folder, then go into storage/. Delete the file named installed.lock. Then visit https://yourdomain.com/install again in your browser.

Warning: Re-running the installer after a complete installation will overwrite your .env file and re-run migrations. Your existing data should survive because migrations use "create if not exists" logic, but it is safest to back up your database first if you are re-installing on an existing database.


Troubleshootingโ€‹

ProblemLikely CauseSolution
"Page not found" when visiting /installFiles not in the correct folder, or mod_rewrite not workingCheck that files are uploaded to the right location; confirm public/.htaccess was uploaded; contact host about mod_rewrite
Blank white pagePHP error or wrong PHP versionSwitch to PHP 8.3 in cPanel MultiPHP Manager
"Cannot connect to database" on Step 2Wrong database credentialsDouble-check the database name (include the cPanel prefix), username, and password; make sure the user has all privileges on that database
Requirements page shows red warnings for extensionsPHP extensions not enabledGo to cPanel โ†’ Select PHP Version, enable the missing extensions, refresh installer
"storage is not writable" warningPermissions not set correctlySet storage/ to 755 recursively in cPanel File Manager
Installer hangs on "Installing..."PHP memory limit too low or database issueTry refreshing; check PHP memory limit in cPanel (needs to be at least 128 MB, preferably 256 MB)
Redirected to /admin but can't log inSession not savingCheck that storage/framework/sessions/ exists and is writable
"installation failed" error on final stepDatabase connection lost or file write errorCheck your database credentials; check that .env can be written (storage/ and project root must be writable)