Web Hosting Setup
1. Database Configuration
Creating a database through your hosting provider's control panel (hPanel) is straightforward.
Step-by-Step Guide:
- Log in to your hosting service provider
- Navigate to hPanel → Databases → MySQL Database Management
- Click on "Create New Database"
- 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)
- 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:
- Navigate to hPanel → Emails → Email Accounts
- Click "Create Email Account"
- Enter the following details:
- Select your domain (e.g., yourdomain.com)
- Email username (e.g., no-reply, info, or support)
- Strong password
- 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:
- Navigate to hPanel → Advanced → Cron Jobs
- Click "Create New Cron Job"
- 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