{"id":16416,"date":"2025-12-02T04:15:23","date_gmt":"2025-12-02T04:15:23","guid":{"rendered":"https:\/\/kb.cloudhostgeek.com\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/"},"modified":"2026-02-09T22:53:18","modified_gmt":"2026-02-09T22:53:18","slug":"how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting","status":"publish","type":"docs","link":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/","title":{"rendered":"How to Deploy a Laravel Project on BigCloudy Shared Hosting ?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"16416\" class=\"elementor elementor-16416\" data-elementor-post-type=\"docs\">\n\t\t\t\t<div class=\"elementor-element elementor-element-36446684 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"36446684\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5302d643 elementor-widget elementor-widget-text-editor\" data-id=\"5302d643\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><strong>Introduction<\/strong><\/h2><p><span style=\"font-weight: 400;\">Deploying a Laravel application on <\/span><a href=\"http:\/\/bigcloudy.com\"><span style=\"font-weight: 400;\">BigCloudy.com<\/span><\/a><span style=\"font-weight: 400;\">, may seem tricky at first, especially without SSH access. Most shared hosting environments disable SSH for security reasons, meaning commands like php artisan serve won&#8217;t be available.<\/span><\/p><p>But don\u2019t worry, this guide will walk you step-by-step through uploading and configuring your Laravel project on BigCloudy\u2019s shared hosting platform. We offers SSH access with Laravel hosting.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cea6650 elementor-widget elementor-widget-text-editor\" data-id=\"cea6650\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Installation Process<\/b><\/h2><p><span style=\"font-weight: 400;\">Before deploying your Laravel project to BigCloudy shared hosting, make sure your application is properly installed and ready on your local machine. This avoids common runtime errors after upload.<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0b1e037 elementor-widget elementor-widget-text-editor\" data-id=\"0b1e037\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Step 1: Install and Prepare Laravel Locally<\/b><\/h2><h3><b>1) System Requirements<\/b><\/h3><p><span style=\"font-weight: 400;\">Ensure your local system meets Laravel\u2019s requirements:<\/span><\/p><ul><li data-start=\"568\" data-end=\"589\"><p data-start=\"570\" data-end=\"589\">PHP 8.0 or higher<\/p><\/li><li data-start=\"590\" data-end=\"612\"><p data-start=\"592\" data-end=\"612\">Composer installed<\/p><\/li><li data-start=\"613\" data-end=\"633\"><p data-start=\"615\" data-end=\"633\">MySQL or MariaDB<\/p><\/li><li data-start=\"634\" data-end=\"734\"><p data-start=\"636\" data-end=\"660\">Required PHP extensions:<\/p><ul data-start=\"663\" data-end=\"734\"><li data-start=\"663\" data-end=\"672\"><p data-start=\"665\" data-end=\"672\">OpenSSL<\/p><\/li><li data-start=\"675\" data-end=\"680\"><p data-start=\"677\" data-end=\"680\">PDO<\/p><\/li><li data-start=\"683\" data-end=\"693\"><p data-start=\"685\" data-end=\"693\">Mbstring<\/p><\/li><li data-start=\"696\" data-end=\"707\"><p data-start=\"698\" data-end=\"707\">Tokenizer<\/p><\/li><li data-start=\"710\" data-end=\"715\"><p data-start=\"712\" data-end=\"715\">XML<\/p><\/li><li data-start=\"718\" data-end=\"725\"><p data-start=\"720\" data-end=\"725\">Ctype<\/p><\/li><li data-start=\"728\" data-end=\"734\"><p data-start=\"730\" data-end=\"734\">JSON<\/p><\/li><\/ul><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-248b7bc elementor-widget elementor-widget-text-editor\" data-id=\"248b7bc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><b>2) Create or Install a Laravel Project<\/b><\/h3><p><span style=\"font-weight: 400;\">If you are creating a new project:<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6df59d7 elementor-widget elementor-widget-code-highlight\" data-id=\"6df59d7\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>composer create-project laravel\/laravel my-project<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9d7c548 elementor-widget elementor-widget-text-editor\" data-id=\"9d7c548\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/><span style=\"font-weight: 400;\">If you already have a Laravel project:<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-43816ef elementor-widget elementor-widget-code-highlight\" data-id=\"43816ef\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-php \">\n\t\t\t\t<code readonly=\"true\" class=\"language-php\">\n\t\t\t\t\t<xmp>composer install<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1930123 elementor-widget elementor-widget-text-editor\" data-id=\"1930123\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/>This will generate the <strong data-start=\"972\" data-end=\"982\">vendor<\/strong> directory and install all dependencies.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-06fcb35 elementor-widget elementor-widget-text-editor\" data-id=\"06fcb35\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><strong>3) Configure the Environment File (.env)<\/strong><\/h3><p>i) Duplicate the <code data-start=\"1088\" data-end=\"1102\">.env.example<\/code> file and rename it to <code data-start=\"1125\" data-end=\"1131\">.env<\/code><strong><br \/><\/strong><\/p><p>ii) Open <code data-start=\"1140\" data-end=\"1146\">.env<\/code> and update:<\/p><ul><li data-start=\"1162\" data-end=\"1174\"><p data-start=\"1164\" data-end=\"1174\"><code data-start=\"1164\" data-end=\"1174\">APP_NAME<\/code><\/p><\/li><li data-start=\"1178\" data-end=\"1189\"><p data-start=\"1180\" data-end=\"1189\"><code data-start=\"1180\" data-end=\"1189\">APP_URL<\/code><\/p><\/li><li data-start=\"1193\" data-end=\"1231\"><p data-start=\"1195\" data-end=\"1231\">Database credentials (local for now)<\/p><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-324226e elementor-widget elementor-widget-text-editor\" data-id=\"324226e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Example:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4b0b3ff elementor-widget elementor-widget-code-highlight\" data-id=\"4b0b3ff\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>APP_NAME=LaravelApp\r\nAPP_ENV=local\r\nAPP_KEY=\r\nAPP_DEBUG=true\r\nAPP_URL=http:\/\/localhost<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5eaaef1 elementor-widget elementor-widget-text-editor\" data-id=\"5eaaef1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><br \/><strong>4) Generate Application Key<\/strong><\/h3><p>Run the following command:<strong><br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-57e47a2 elementor-widget elementor-widget-code-highlight\" data-id=\"57e47a2\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>php artisan key:generate<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e45ac05 elementor-widget elementor-widget-text-editor\" data-id=\"e45ac05\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/>This step is <strong data-start=\"1446\" data-end=\"1459\">mandatory<\/strong>. Laravel will not run without a valid <code data-start=\"1498\" data-end=\"1507\">APP_KEY<\/code>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c1f099e elementor-widget elementor-widget-text-editor\" data-id=\"c1f099e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><br \/><strong>5) Run Migrations (Optional)<\/strong><\/h3><p>If your project uses migrations:<strong><br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-276a4ed elementor-widget elementor-widget-code-highlight\" data-id=\"276a4ed\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>php artisan migrate<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-478c17c elementor-widget elementor-widget-text-editor\" data-id=\"478c17c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/>You may also seed the database if required:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-904f4cb elementor-widget elementor-widget-code-highlight\" data-id=\"904f4cb\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>php artisan db:seed<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-03bb200 elementor-widget elementor-widget-text-editor\" data-id=\"03bb200\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><br \/><strong>6) Test the Application Locally<\/strong><\/h3><p>Run:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8cca9a0 elementor-widget elementor-widget-code-highlight\" data-id=\"8cca9a0\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>php artisan serve<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e8d5988 elementor-widget elementor-widget-text-editor\" data-id=\"e8d5988\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/>Visit <code data-start=\"1768\" data-end=\"1791\">http:\/\/127.0.0.1:8000<\/code> and confirm:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0ff2ee3 elementor-widget elementor-widget-text-editor\" data-id=\"0ff2ee3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li data-start=\"1807\" data-end=\"1830\">No errors are displayed<\/li><li data-start=\"1833\" data-end=\"1854\">Routes work correctly<\/li><li data-start=\"1857\" data-end=\"1890\">Database connection is successful<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5dc463b elementor-widget elementor-widget-text-editor\" data-id=\"5dc463b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"1892\" data-end=\"1996\"><br \/>Once everything works locally, your Laravel project is ready for deployment on BigCloudy<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e6214a7 elementor-widget elementor-widget-image\" data-id=\"e6214a7\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"588\" height=\"313\" src=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp\" class=\"attachment-large size-large wp-image-16419\" alt=\"\" srcset=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp 588w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database-300x160.webp 300w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database-20x11.webp 20w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database-32x17.webp 32w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-35c304a elementor-widget elementor-widget-text-editor\" data-id=\"35c304a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><strong>Step 2: Remove \/public from the URL:<\/strong><\/h2><p>Since you can\u2019t use Laravel\u2019s built-in development server (php artisan serve) on shared hosting, you\u2019ll need to remove \/public from the URL so that your app loads directly via your domain.<\/p><h4><strong>Here\u2019s how to do it:<\/strong><strong><br \/><\/strong><strong><br \/><\/strong>1)\u00a0Navigate to your Laravel project\u2019s\u00a0\/public\u00a0folder.<\/h4><p>2) Cut the\u00a0index.php\u00a0and\u00a0.htaccess\u00a0files.<\/p><p>3) Paste them into the project root (where folders like\u00a0\/app,\u00a0\/config, and\u00a0\/vendor\u00a0are located).<\/p><p>4) Open the index.php file and update the following lines:<strong><br \/><\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ddf062 elementor-widget elementor-widget-code-highlight\" data-id=\"2ddf062\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>\/\/ Replace line 24:\n\nrequire __DIR__ . \u2018\/vendor\/autoload.php\u2019;\n\n\u00a0\/\/ Replace line 38:\n\n$app = require_once __DIR__ . \u2018\/bootstrap\/app.php\u2019;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6d6a401 elementor-widget elementor-widget-text-editor\" data-id=\"6d6a401\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><br \/>5) That\u2019s it! This change allows Laravel to run directly from the root directory.<\/p><h4><strong><br \/><\/strong>Step 2: Export Your Local Database:<\/h4><p>1) Open your database via phpMyAdmin or another MySQL tool.<\/p><p>2) Select your Laravel project\u2019s database.<\/p><p>3) Use the Export option to download a .sql file of your database.<\/p><p>4) Save it locally for the next step.<\/p><h3><strong><br \/><\/strong>Step 3: Prepare Your Laravel Files:<\/h3><h4>Before uploading:<\/h4><p>1) Select all project files and folders.<\/p><p>2) Exclude directories like .git, node_modules, and vendor (you can install vendor later with Composer if you get SSH access).<\/p><p>3) Compress everything into a .zip file.<\/p><h3><strong><br \/><\/strong>Step 4: Create a New Database in cPanel:<\/h3><p>1) Log in to your BigCloudy cPanel.<\/p><p>2) Go to MySQL Databases.<\/p><p>3) Create a new database and assign a user with full privileges.<\/p><p>4) Go to phpMyAdmin, select the newly created database, click Import, and upload the .sql file you exported earlier.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-327f5c4 elementor-widget elementor-widget-image\" data-id=\"327f5c4\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"541\" height=\"474\" src=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-import-laravel.webp\" class=\"attachment-large size-large wp-image-16420\" alt=\"\" srcset=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-import-laravel.webp 541w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-import-laravel-300x263.webp 300w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-import-laravel-20x18.webp 20w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-import-laravel-32x28.webp 32w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a06709c elementor-widget elementor-widget-text-editor\" data-id=\"a06709c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><strong><br \/><\/strong>Step 5: Upload and Extract the Project Files:<\/h3><p>1)\u00a0 In cPanel, navigate to the public_html directory.<\/p><p>2) Upload the .zip file of your Laravel project.<\/p><p>3) Extract it inside public_html.<\/p><p>4) Ensure all files (including index.php, \/app, \/routes, etc.) are directly inside public_html, not in a subfolder.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ea45967 elementor-widget elementor-widget-image\" data-id=\"ea45967\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"600\" height=\"627\" src=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file.webp\" class=\"attachment-large size-large wp-image-16421\" alt=\"\" srcset=\"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file.webp 600w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file-287x300.webp 287w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file-20x20.webp 20w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file-32x32.webp 32w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file-16x16.webp 16w, https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2025\/12\/bigcloudy-extract-project-file-18x18.webp 18w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-71a4e4e elementor-widget elementor-widget-text-editor\" data-id=\"71a4e4e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div id=\"post\" class=\"doc-post-content \"><div class=\"doc-scrollable editor-content\"><div class=\"doc-content-wrap\"><h3>Step 6: Configure Database Settings:<\/h3><p>Open config\/database.php and update the MySQL connection details using the credentials from cPanel. Here\u2019s what to look for:<\/p><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cb2ed06 elementor-widget elementor-widget-code-highlight\" data-id=\"cb2ed06\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>\u2018mysql\u2019 => [\n\n\u2018driver\u2019 => \u2018mysql\u2019,\n\n\u2018url\u2019 => \u201d,\n\n\u2018host\u2019 => \u2018127.0.0.1\u2019,\n\n\u2018port\u2019 => \u20183306\u2019,\n\n\u2018database\u2019 => \u2018mydatabase\u2019,\n\n\u2018username\u2019 => \u2018mydbusername\u2019,\n\n\u2018password\u2019 => \u2018here_password\u2019,\n\n\u2018unix_socket\u2019 => \u201d,\n\n\u2018charset\u2019 => \u2018utf8mb4\u2019,\n\n\u2018collation\u2019 => \u2018utf8mb4_unicode_ci\u2019,\n\n\u2018prefix\u2019 => \u201d,\n\n\u2018prefix_indexes\u2019 => true,\n\n\u2018strict\u2019 => true,\n\n\u2018engine\u2019 => null,\n\n\u2018options\u2019 => extension_loaded(\u2018pdo_mysql\u2019) ? array_filter([\n\nPDO::MYSQL_ATTR_SSL_CA => env(\u2018MYSQL_ATTR_SSL_CA\u2019),\n\n]) : [],],<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0db6d8d elementor-widget elementor-widget-text-editor\" data-id=\"0db6d8d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3><b><br \/><\/b>Step7: Secure Your Laravel Application:<\/h3><p>To improve security, protect your sensitive files, and disable directory browsing.<\/p><p>Add the following lines to your .htaccess file in<br \/><b><br \/><\/b><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b2b1a1 elementor-widget elementor-widget-code-highlight\" data-id=\"6b2b1a1\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>#disable directory browsing\r\nOptions -Indexes\r\n\r\n#PROTECT ENV FILE\r\n<Files .env>\r\norder allow,deny\r\nDeny from all\r\n<\/Files>\r\n\r\n#PROTECT ENV FILE\r\n<Files .htaccess>\r\norder allow,deny\r\nDeny from all\r\n<\/Files>\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-28acda1 elementor-widget elementor-widget-text-editor\" data-id=\"28acda1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Done! Your Laravel App is Now Live on BigCloudy<\/b><b><br \/><\/b><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-109867e elementor-widget elementor-widget-text-editor\" data-id=\"109867e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>You should now be able to access your Laravel application directly by visiting your domain name. Everything from routing to database connections should work seamlessly, without needing command-line access.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-fcf0b5f e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-child\" data-id=\"fcf0b5f\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5fba444 elementor-widget elementor-widget-text-editor\" data-id=\"5fba444\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2 data-start=\"2364\" data-end=\"2377\"><strong>Conclusion<\/strong><\/h2><p data-start=\"130\" data-end=\"496\">Deploying a Laravel application on <strong data-start=\"165\" data-end=\"193\">BigCloudy<\/strong>\u00a0is straightforward when the correct steps are followed, even in environments without default SSH access. By preparing your project locally, configuring the public directory properly, setting up the database, and securing sensitive files, you can run your Laravel application smoothly on shared hosting.<\/p><p data-start=\"498\" data-end=\"849\">For developers who prefer command-line control, <strong data-start=\"546\" data-end=\"611\">BigCloudy also provides SSH access with Laravel hosting plans<\/strong>, allowing you to run Composer, Artisan commands, and advanced optimizations with ease. Whether you\u2019re a beginner or an experienced Laravel developer, BigCloudy offers the flexibility and support needed to deploy your project confidently.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-079caf2 elementor-widget elementor-widget-text-editor\" data-id=\"079caf2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>Need Help?\n<\/b><\/h2>\nIf you require assistance at any point while using this guide, our\u00a0<b>Support Team<\/b>\u00a0is here to help:\n<ul>\n \t<li aria-level=\"1\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f4e7.svg\" alt=\"mail\" \/>\u00a0<b>Email:<\/b>\u00a0support@bigcloudy.com<\/li>\n \t<li aria-level=\"1\"><img decoding=\"async\" class=\"emoji\" role=\"img\" draggable=\"false\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/16.0.1\/svg\/1f310.svg\" alt=\"website\" \/><a style=\"text-decoration: none; color: #a57ef5;\" href=\"https:\/\/www.bigcloudy.com\/contact-us\">\u00a0<b>Submit a support ticket<\/b><\/a><\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de9a22d elementor-widget elementor-widget-text-editor\" data-id=\"de9a22d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><b>FAQ<\/b><\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ed336a elementor-widget elementor-widget-eael-adv-accordion\" data-id=\"4ed336a\" data-element_type=\"widget\" data-widget_type=\"eael-adv-accordion.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t        <div class=\"eael-adv-accordion\" id=\"eael-adv-accordion-4ed336a\" data-scroll-on-click=\"no\" data-scroll-speed=\"300\" data-accordion-id=\"4ed336a\" data-accordion-type=\"accordion\" data-toogle-speed=\"300\">\n    <div class=\"eael-accordion-list\">\n                <div id=\"can-i-deploy-a-laravel-project-on-bigcloudy-shared-hosting-without-ssh-access\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"1\" aria-controls=\"elementor-tab-content-8261\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Can I deploy a Laravel project on BigCloudy shared hosting without SSH access?<\/span><\/div><div id=\"elementor-tab-content-8261\" class=\"eael-accordion-content clearfix\" data-tab=\"1\" aria-labelledby=\"can-i-deploy-a-laravel-project-on-bigcloudy-shared-hosting-without-ssh-access\"><p>Yes. This guide is specifically designed for shared hosting environments where SSH access is not available. By adjusting the <code data-start=\"405\" data-end=\"413\">public<\/code> directory setup and configuring files manually, Laravel can run smoothly without using commands like <code data-start=\"515\" data-end=\"534\">php artisan serve<\/code>.<\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"do-i-need-to-upload-the-vendor-folder\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"2\" aria-controls=\"elementor-tab-content-8262\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Do I need to upload the vendor folder?<\/span><\/div><div id=\"elementor-tab-content-8262\" class=\"eael-accordion-content clearfix\" data-tab=\"2\" aria-labelledby=\"do-i-need-to-upload-the-vendor-folder\"><p>If you <strong data-start=\"592\" data-end=\"618\">do not have SSH access<\/strong>, you must upload the <code data-start=\"640\" data-end=\"648\">vendor<\/code> folder generated locally using <code data-start=\"680\" data-end=\"698\">composer install<\/code>.<br data-start=\"699\" data-end=\"702\" \/>If your BigCloudy hosting plan includes SSH access, you can skip uploading <code data-start=\"777\" data-end=\"785\">vendor<\/code> and instead run <code data-start=\"802\" data-end=\"820\">composer install<\/code> directly on the server.<\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"where-should-the-laravel-files-be-placed-in-bigcloudy-hosting\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"3\" aria-controls=\"elementor-tab-content-8263\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Where should the Laravel files be placed in BigCloudy hosting?<\/span><\/div><div id=\"elementor-tab-content-8263\" class=\"eael-accordion-content clearfix\" data-tab=\"3\" aria-labelledby=\"where-should-the-laravel-files-be-placed-in-bigcloudy-hosting\"><p>All Laravel files and folders (<code data-start=\"1209\" data-end=\"1214\">app<\/code>, <code data-start=\"1216\" data-end=\"1227\">bootstrap<\/code>, <code data-start=\"1229\" data-end=\"1237\">config<\/code>, <code data-start=\"1239\" data-end=\"1247\">routes<\/code>, <code data-start=\"1249\" data-end=\"1257\">vendor<\/code>, etc.) should be placed <strong data-start=\"1282\" data-end=\"1315\">directly inside <code data-start=\"1300\" data-end=\"1313\">public_html<\/code><\/strong>, not inside a subfolder, unless you are configuring a custom document root.<\/p><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"is-it-safe-to-expose-laravel-files-in-public-html\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"4\" aria-controls=\"elementor-tab-content-8264\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">Is it safe to expose Laravel files in public_html?<\/span><\/div><div id=\"elementor-tab-content-8264\" class=\"eael-accordion-content clearfix\" data-tab=\"4\" aria-labelledby=\"is-it-safe-to-expose-laravel-files-in-public-html\"><p data-start=\"1453\" data-end=\"1473\">Yes, as long as you:<\/p><ul data-start=\"1474\" data-end=\"1648\"><li data-start=\"1474\" data-end=\"1511\"><p data-start=\"1476\" data-end=\"1511\">Protect sensitive files like <code data-start=\"1505\" data-end=\"1511\">.env<\/code><\/p><\/li><li data-start=\"1512\" data-end=\"1539\"><p data-start=\"1514\" data-end=\"1539\">Disable directory listing<\/p><\/li><li data-start=\"1540\" data-end=\"1648\"><p data-start=\"1542\" data-end=\"1648\">Use proper <code data-start=\"1553\" data-end=\"1564\">.htaccess<\/code> rules<br data-start=\"1570\" data-end=\"1573\" \/>The security steps provided in this guide help prevent unauthorized access.<\/p><\/li><\/ul><\/div>\n                <\/div><div class=\"eael-accordion-list\">\n                <div id=\"what-should-i-do-if-i-get-a-500-internal-server-error\" class=\"elementor-tab-title eael-accordion-header\" tabindex=\"0\" data-tab=\"5\" aria-controls=\"elementor-tab-content-8265\"><span class=\"eael-advanced-accordion-icon-closed\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-down\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z\"><\/path><\/svg><\/span><span class=\"eael-advanced-accordion-icon-opened\"><svg aria-hidden=\"true\" class=\"fa-accordion-icon e-font-icon-svg e-fas-angle-up\" viewBox=\"0 0 320 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z\"><\/path><\/svg><\/span><span class=\"eael-accordion-tab-title\">What should I do if I get a \u201c500 Internal Server Error\u201d?<\/span><\/div><div id=\"elementor-tab-content-8265\" class=\"eael-accordion-content clearfix\" data-tab=\"5\" aria-labelledby=\"what-should-i-do-if-i-get-a-500-internal-server-error\"><p data-start=\"1938\" data-end=\"1960\">Common causes include:<\/p><ul data-start=\"1961\" data-end=\"2143\"><li data-start=\"1961\" data-end=\"1995\"><p data-start=\"1963\" data-end=\"1995\">Missing or incorrect <code data-start=\"1984\" data-end=\"1995\">.htaccess<\/code><\/p><\/li><li data-start=\"1996\" data-end=\"2019\"><p data-start=\"1998\" data-end=\"2019\">Incorrect PHP version<\/p><\/li><li data-start=\"2020\" data-end=\"2044\"><p data-start=\"2022\" data-end=\"2044\">Wrong file permissions<\/p><\/li><li data-start=\"2045\" data-end=\"2143\"><p data-start=\"2047\" data-end=\"2143\">Invalid database credentials<br data-start=\"2075\" data-end=\"2078\" \/>Check your error logs in cPanel and reverify configuration files.<\/p><\/li><\/ul><\/div>\n                <\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction Deploying a Laravel application on BigCloudy.com, may seem tricky at first, especially without SSH access. Most shared hosting environments disable SSH for security reasons, meaning commands like php artisan serve won&#8217;t be available. But don\u2019t worry, this guide will walk you step-by-step through uploading and configuring your Laravel project on BigCloudy\u2019s shared hosting platform. We offers SSH access with Laravel hosting. Installation Process Before deploying your Laravel project to BigCloudy shared hosting, make sure your application is properly installed and ready on your local machine. This avoids common runtime errors after upload. Step 1: Install and Prepare Laravel Locally 1) System Requirements Ensure your local system meets Laravel\u2019s requirements: PHP 8.0 or higher Composer installed MySQL or MariaDB Required PHP extensions: OpenSSL PDO Mbstring Tokenizer XML Ctype JSON 2) Create or Install a Laravel Project If you are creating a new project: composer create-project laravel\/laravel my-project If you already have a Laravel project: composer install This will generate the vendor directory and install all dependencies. 3) Configure the Environment File (.env) i) Duplicate the .env.example file and rename it to .env ii) Open .env and update: APP_NAME APP_URL Database credentials (local for now) Example: APP_NAME=LaravelApp APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http:\/\/localhost 4) Generate Application Key Run the following command: php artisan key:generate This step is mandatory. Laravel will not run without a valid APP_KEY. 5) Run Migrations (Optional) If your project uses migrations: php artisan migrate You may also seed the database if required: php artisan db:seed 6) Test the Application Locally Run: php artisan serve Visit http:\/\/127.0.0.1:8000 and confirm: No errors are displayed Routes work correctly Database connection is successful Once everything works locally, your Laravel project is ready for deployment on BigCloudy Step 2: Remove \/public from the URL: Since you can\u2019t use Laravel\u2019s built-in development server (php artisan serve) on shared hosting, you\u2019ll need to remove \/public from the URL so that your app loads directly via your domain. Here\u2019s how to do it:1)\u00a0Navigate to your Laravel project\u2019s\u00a0\/public\u00a0folder. 2) Cut the\u00a0index.php\u00a0and\u00a0.htaccess\u00a0files. 3) Paste them into the project root (where folders like\u00a0\/app,\u00a0\/config, and\u00a0\/vendor\u00a0are located). 4) Open the index.php file and update the following lines: \/\/ Replace line 24: require __DIR__ . \u2018\/vendor\/autoload.php\u2019; \u00a0\/\/ Replace line 38: $app = require_once __DIR__ . \u2018\/bootstrap\/app.php\u2019; 5) That\u2019s it! This change allows Laravel to run directly from the root directory. Step 2: Export Your Local Database: 1) Open your database via phpMyAdmin or another MySQL tool. 2) Select your Laravel project\u2019s database. 3) Use the Export option to download a .sql file of your database. 4) Save it locally for the next step. Step 3: Prepare Your Laravel Files: Before uploading: 1) Select all project files and folders. 2) Exclude directories like .git, node_modules, and vendor (you can install vendor later with Composer if you get SSH access). 3) Compress everything into a .zip file. Step 4: Create a New Database in cPanel: 1) Log in to your BigCloudy cPanel. 2) Go to MySQL Databases. 3) Create a new database and assign a user with full privileges. 4) Go to phpMyAdmin, select the newly created database, click Import, and upload the .sql file you exported earlier. Step 5: Upload and Extract the Project Files: 1)\u00a0 In cPanel, navigate to the public_html directory. 2) Upload the .zip file of your Laravel project. 3) Extract it inside public_html. 4) Ensure all files (including index.php, \/app, \/routes, etc.) are directly inside public_html, not in a subfolder. Step 6: Configure Database Settings: Open config\/database.php and update the MySQL connection details using the credentials from cPanel. Here\u2019s what to look for: \u2018mysql\u2019 => [ \u2018driver\u2019 => \u2018mysql\u2019, \u2018url\u2019 => \u201d, \u2018host\u2019 => \u2018127.0.0.1\u2019, \u2018port\u2019 => \u20183306\u2019, \u2018database\u2019 => \u2018mydatabase\u2019, \u2018username\u2019 => \u2018mydbusername\u2019, \u2018password\u2019 => \u2018here_password\u2019, \u2018unix_socket\u2019 => \u201d, \u2018charset\u2019 => \u2018utf8mb4\u2019, \u2018collation\u2019 => \u2018utf8mb4_unicode_ci\u2019, \u2018prefix\u2019 => \u201d, \u2018prefix_indexes\u2019 => true, \u2018strict\u2019 => true, \u2018engine\u2019 => null, \u2018options\u2019 => extension_loaded(\u2018pdo_mysql\u2019) ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env(\u2018MYSQL_ATTR_SSL_CA\u2019), ]) : [],], Step7: Secure Your Laravel Application: To improve security, protect your sensitive files, and disable directory browsing. Add the following lines to your .htaccess file in #disable directory browsing Options -Indexes #PROTECT ENV FILE order allow,deny Deny from all #PROTECT ENV FILE order allow,deny Deny from all Done! Your Laravel App is Now Live on BigCloudy You should now be able to access your Laravel application directly by visiting your domain name. Everything from routing to database connections should work seamlessly, without needing command-line access. Conclusion Deploying a Laravel application on BigCloudy\u00a0is straightforward when the correct steps are followed, even in environments without default SSH access. By preparing your project locally, configuring the public directory properly, setting up the database, and securing sensitive files, you can run your Laravel application smoothly on shared hosting. For developers who prefer command-line control, BigCloudy also provides SSH access with Laravel hosting plans, allowing you to run Composer, Artisan commands, and advanced optimizations with ease. Whether you\u2019re a beginner or an experienced Laravel developer, BigCloudy offers the flexibility and support needed to deploy your project confidently. Need Help? If you require assistance at any point while using this guide, our\u00a0Support Team\u00a0is here to help: \u00a0Email:\u00a0support@bigcloudy.com \u00a0Submit a support ticket FAQ Can I deploy a Laravel project on BigCloudy shared hosting without SSH access? Yes. This guide is specifically designed for shared hosting environments where SSH access is not available. By adjusting the public directory setup and configuring files manually, Laravel can run smoothly without using commands like php artisan serve. Do I need to upload the vendor folder? If you do not have SSH access, you must upload the vendor folder generated locally using composer install.If your BigCloudy hosting plan includes SSH access, you can skip uploading vendor and instead run composer install directly on the server. Where should the Laravel files be placed in BigCloudy hosting? All Laravel files and folders (app, bootstrap, config, routes, vendor, etc.) should be placed directly inside public_html, not inside a subfolder, unless you are configuring a custom document root. Is it safe to expose Laravel files in public_html?<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":15571,"menu_order":11,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-16416","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.7 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Deploy a Laravel Project on BigCloudy Shared Hosting<\/title>\n<meta name=\"description\" content=\"Step-by-step guide to deploy your Laravel project on BigCloudy shared hosting for a smooth and efficient setup.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Deploy a Laravel Project on BigCloudy Shared Hosting ?\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide to deploy your Laravel project on BigCloudy shared hosting for a smooth and efficient setup.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudHostGeek Help Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BigCloudyHosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-09T22:53:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.cloudhostgeek.com\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Deploy a Laravel Project on BigCloudy Shared Hosting","description":"Step-by-step guide to deploy your Laravel project on BigCloudy shared hosting for a smooth and efficient setup.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/","og_locale":"en_US","og_type":"article","og_title":"How to Deploy a Laravel Project on BigCloudy Shared Hosting ?","og_description":"Step-by-step guide to deploy your Laravel project on BigCloudy shared hosting for a smooth and efficient setup.","og_url":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/","og_site_name":"CloudHostGeek Help Center","article_publisher":"https:\/\/www.facebook.com\/BigCloudyHosting\/","article_modified_time":"2026-02-09T22:53:18+00:00","og_image":[{"url":"https:\/\/kb.cloudhostgeek.com\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@bigcloudypvtltd","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/","name":"How to Deploy a Laravel Project on BigCloudy Shared Hosting","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/#primaryimage"},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/#primaryimage"},"thumbnailUrl":"https:\/\/kb.cloudhostgeek.com\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp","datePublished":"2025-12-02T04:15:23+00:00","dateModified":"2026-02-09T22:53:18+00:00","description":"Step-by-step guide to deploy your Laravel project on BigCloudy shared hosting for a smooth and efficient setup.","breadcrumb":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/#primaryimage","url":"https:\/\/kb.cloudhostgeek.com\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp","contentUrl":"https:\/\/kb.cloudhostgeek.com\/wp-content\/uploads\/2025\/12\/bigcloudy-local-database.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/how-to-deploy-a-laravel-project-on-bigcloudy-shared-hosting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Framework","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/"},{"@type":"ListItem","position":3,"name":"Laravel","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/docs\/framework\/laravel\/"},{"@type":"ListItem","position":4,"name":"How to Deploy a Laravel Project on BigCloudy Shared Hosting ?"}]},{"@type":"WebSite","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","name":"https:\/\/www.bigcloudy.com\/","description":"Your step-by-step guide to hosting, servers &amp; website tools.","publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bigcloudy.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization","name":"BigCloudy internt services pvt ltd.","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","contentUrl":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","width":368,"height":114,"caption":"BigCloudy internt services pvt ltd."},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BigCloudyHosting\/","https:\/\/x.com\/bigcloudypvtltd","https:\/\/www.instagram.com\/bigcloudypvtltd\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/16416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=16416"}],"version-history":[{"count":0,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/16416\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/docs\/15571"}],"wp:attachment":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=16416"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/doc_tag?post=16416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}