Web Hosting Setup

1. Database Configuration

Creating a database through your hosting provider's control panel (hPanel) is straightforward.

Step-by-Step Guide:

  1. Log in to your hosting service provider
  2. Navigate to hPanel → Databases → MySQL Database Management
  3. Click on "Create New Database"
  4. Fill in the required fields:
    • Database Name (e.g., myproject_db)
    • Database Username (e.g., dbuser)
    • Password (use a strong password or the generate button)
  5. Click the "Create" button

Info: You can use these credentials to set up your LaraForum installation.

Accessing phpMyAdmin

You can access phpMyAdmin from the same page to manage tables and import SQL files.

2. Email Configuration

Most shared hosting plans include free email accounts.

Configuration Steps:

  1. Navigate to hPanel → Emails → Email Accounts
  2. Click "Create Email Account"
  3. Enter the following details:
    • Select your domain (e.g., yourdomain.com)
    • Email username (e.g., no-reply, info, or support)
    • Strong password
  4. Click "Create"

Info: Use these email credentials to configure the email sending functionality in LaraForum.

3. Cron Job Configuration

Cron jobs automate tasks such as backups and email sending.

Setup Instructions:

  1. Navigate to hPanel → Advanced → Cron Jobs
  2. Click "Create New Cron Job"
  3. Enter the following command:
* * * * * /usr/bin/php /home/u177733046/public_html/artisan queue --stop-when-empty
Component Description
* * * * * Runs the command every minute
/usr/bin/php Path to PHP executable on the server
/home/u177733046/public_html/artisan Path to Laravel's artisan CLI tool
queue:work --stop-when-empty Laravel command to process queued jobs and stop when complete

What This Cron Job Does:

  • Runs the Laravel queue worker every minute
  • Processes all queued jobs (emails, notifications, background tasks)
  • Automatically stops when no jobs remain

4. PHP Configuration

⚠️ Warning: LaraForum requires PHP 8.1 or later.

Configure PHP settings through hPanel:

  • Select PHP 8.1 or the latest available version
  • Enable required PHP extensions through the same interface