Skip to content
Deployment

cPanel

Deploy BaPlay on shared hosting with file cache, database queues, and cron.

Shared-hosting layout

Point the domain or subdomain document root at BaPlay’s public/ directory. If the host requires public_html, keep application source outside the web root and map only public assets and index.php as described in scripts/cpanel-setup.md.

Conservative services

DB_CONNECTION=mysql
CACHE_STORE=file
SESSION_DRIVER=file
SESSION_ENCRYPT=true
QUEUE_CONNECTION=database

Create the database and user in cPanel, assign permissions, configure the absolute application URL, then run migrations and the storage link from Terminal or SSH.

Cron and queues

* * * * * /usr/local/bin/php /home/USERNAME/baplay/artisan schedule:run >> /dev/null 2>&1
* * * * * /usr/local/bin/php /home/USERNAME/baplay/artisan queue:work --stop-when-empty >> /dev/null 2>&1

Some hosts expose a different PHP binary. Confirm PHP 8.2+, required extensions, process limits, and cron paths before enabling media-heavy workloads.