How to Upload a PHP/Laravel Project on cPanel Deploying a Laravel project on cPanel can seem tricky, especially if you're coming from a local development environment. But don’t worry — in this post, I’ll walk you through every step to make your Laravel application live on shared hosting via cPanel. 🛠️ Prerequisites Laravel project ready on your local machine cPanel access with PHP 8.0+ support Access to MySQL via phpMyAdmin 📁 Step 1: Prepare Your Laravel Project Run composer install --optimize-autoloader --no-dev to install only production dependencies. Run php artisan config:cache and php artisan route:cache . Zip the entire Laravel project. 📤 Step 2: Upload Project to cPanel Login to your cPanel account. Open File Manager . Navigate to the public_html directory. Upload your Laravel zip file and extract it. 🔄 Step 3: Move Folde...