Install on cPanel Hosting
cPanel is the most popular hosting control panel, making it the easiest option for most users. This guide will walk you through deploying bPass on any cPanel-based shared hosting provider.
Prerequisites
Before starting, ensure you have:
- A cPanel hosting account with PHP 8.2+ support
- MySQL database access through cPanel
- Your hosting provider has the required PHP extensions enabled
- FTP/File Manager access to upload files
Step 1: Prepare Your Files
- Download bPass: After purchase, extract the downloaded package
- Locate Application Files: You'll find the main application in
application.zip - Prepare for Upload: Keep the
application.zipfile ready for upload
Step 2: Upload to Your Server
Option A: Using cPanel File Manager (Recommended)
- Login to cPanel and open File Manager
- Navigate to Domain Root:
- For main domain: Go to
public_html - For subdomain: Go to
public_html/subdomain_name - Upload Application:
- Click Upload in the File Manager
- Select and upload
application.zip - Wait for upload to complete
- Extract Files:
- Right-click on
application.zip - Select Extract
- Choose to extract to the current directory
- Delete the zip file after extraction
Option B: Using FTP Client
- Connect via FTP using your hosting credentials
- Navigate to public_html (or subdomain folder)
- Upload application.zip to the directory
- Extract via cPanel File Manager as described above
Step 3: Set Up Domain Document Root
This is crucial for Laravel applications to work properly:
- Access cPanel's "Subdomains" or "Addon Domains"
- For Main Domain:
- Go to "Document Root" settings in cPanel
- Change document root from
public_htmltopublic_html/public - For Subdomain/Addon Domain:
- When creating the subdomain, set the document root to
public_html/subdomain_name/public
Important
The document root must point to the public directory inside your Laravel application, not the application root.
Step 4: Configure File Permissions
Set the correct permissions for Laravel to function:
- Using File Manager:
- Select all files in your application directory
- Click Permissions
- Set directories to
755 - Set files to
644 -
Make sure
storageandbootstrap/cachedirectories are writable -
Key Directories to Make Writable (755 or 777 if needed):
storage/storage/app/storage/framework/storage/logs/bootstrap/cache/
Step 5: Create MySQL Database
- Open cPanel MySQL Databases
- Create a New Database:
- Enter database name (e.g.,
bpass_db) - Click Create Database
- Create Database User:
- Enter username and strong password
- Click Create User
- Assign User to Database:
- Select the user and database
- Grant All Privileges
- Click Make Changes
- Note Your Database Details:
- Database name:
cpanel_username_bpass_db - Username:
cpanel_username_dbuser - Password: (your chosen password)
- Host:
localhost
Step 6: Run the Web Installer
- Visit Your Domain: Open your website in a browser
- Automatic Redirect: The system will automatically redirect you to
/install - Follow Installation Steps:
Step 1 - License Agreement: - Read and accept the license terms - Select your timezone - Click Next
Step 2 - System Requirements: - The installer will check if your server meets all requirements - If any requirements fail, contact your hosting provider - Click Next when all checks pass
Step 3 - File Permissions: - Verify all directories have proper write permissions - Fix any permission issues if shown - Click Next
Step 4 - Purchase Verification: - Enter your purchase code (if required) - Click Verify & Next
Step 5 - Database Configuration:
- Database Host: localhost
- Database Name: Your full database name (e.g., cpanel_username_bpass_db)
- Database Username: Your database username
- Database Password: Your database password
- Click Test Connection to verify
- Click Next when connection succeeds
Step 6 - Email Configuration: - Configure your email settings for notifications - You can use your hosting provider's SMTP or services like Mailgun - Click Next
Step 7 - Storage & Queue Settings: - Configure file storage (local storage is fine for most setups) - Set up queue driver (database driver works well for shared hosting) - Click Next
Step 8 - Final Setup: - Review your configuration - Click Install to complete the setup - Wait for the installation to finish
Step 7: Post-Installation Security
- Remove Installer Files (Important for security):
- The installer will guide you to remove installation files
-
Follow the instructions to secure your application
-
Set Up SSL Certificate:
- Enable SSL through cPanel
-
Force HTTPS redirects
-
Configure Backups:
- Set up regular database backups through cPanel
- Back up your application files regularly
Troubleshooting Common Issues
"500 Internal Server Error"
- Check file permissions (directories: 755, files: 644)
- Ensure storage directories are writable
- Contact hosting provider about PHP error logs
"Database Connection Failed"
- Verify database credentials
- Ensure database user has proper privileges
- Check if database host is correct (usually
localhost)
"Application in Debug Mode"
- This is normal during installation
- Will be resolved when installation completes
"Composer Dependencies Missing"
- Most cPanel hosts handle this automatically
- If issues persist, contact your hosting provider
Need Help?
- Hosting Issues: Contact your hosting provider's support
- Application Issues: Check the documentation or contact support
- Database Problems: Verify your database configuration in cPanel
Your bPass installation should now be complete and accessible through your domain!