How do I host a Laravel (PHP) application? Print

  • 0

Laravel runs well on our LiteSpeed + cPanel hosting. The key is pointing your domain at the public folder.

  1. Upload your Laravel project (above public_html if possible) or pull it via Git in Terminal.
  2. Set your domain's document root to the project's public directory, or place the contents of public in public_html and adjust index.php paths.
  3. Create a MySQL database in MySQL Databases and update .env.
  4. Run composer install and php artisan key:generate via Terminal, then set folder permissions for storage and bootstrap/cache.

Add scheduled jobs in Cron Jobs for php artisan schedule:run. For queues, Redis, or full control, a VPS is ideal. Need help? Open a ticket.


Was this answer helpful?

« Back