{"id":228,"date":"2023-10-06T08:39:39","date_gmt":"2023-10-06T08:39:39","guid":{"rendered":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?p=228"},"modified":"2023-10-09T11:41:39","modified_gmt":"2023-10-09T11:41:39","slug":"How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel","status":"publish","type":"post","link":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html","title":{"rendered":"How to upload Laravel Project on Shared Hosting With cPanel?"},"content":{"rendered":"<div class=\"kb-article-content\">\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Uploading a Laravel project to a shared hosting platform like cPanel can be difficult. You may already have tried doing so and failed. This is mainly because most shared hosting platforms don\u2019t provide an SSH terminal which is crucial to run PHP artisan commands like; PHP artisan cache: clear, PHP artisan storage: link, etc. And cPanel is one of them. <\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Enough about the problem; let us look at the solution and upload your Laravel project step-by-step. <\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step I:<\/strong> Remove the public from the URL<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">First, you\u2019ll have to remove the public word from the URL in our Laravel project so that you don\u2019t need the PHP artisan command to access your Laravel project and access it as a normal&nbsp; PHP project. It is a simple task to perform; you just have to: <\/span><\/p>\n<ul style=\"list-style-type: circle;\">\n<li><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Move the index.php and .htaccess files from the project public folder to the project root directory. <\/span><\/li>\n<li><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Open the index.php file and change line 24 to \u201crequire _DIR_.\u2018\/vendor\/autoload.php\u2019;\u201d&nbsp; and line 38 to \u201c$app = require_once _DIR_.\u2018\/bootstrap\/app.php\u2019;\u201d <\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">As the public word has been removed from the URL, we have added the public word in the asset helper method where the CSS, JS, or image file is linked. For Example, asset(\u2018css\/style.css\u2019) will&nbsp; become an asset(\u2018public\/css\/style.css\u2019) <\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/226\/What-is-FTP-and-How-to-Create-an-FTP-Account-In-cPanel.html\"><strong>What is FTP &amp; How to Create an FTP Account In cPanel?<\/strong><\/a><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step II: <\/strong><span style=\"font-weight: 400;\">Open your database using your MySQL client, export it, and save it to your PC. <\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step III: <\/strong>Compress your Laravel project files into a ZIP file. If git, node_modules folders exist in your Laravel project, be sure not to add them in the zip file. <\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/224\/How-to-Add-a-New-Domain-To-Cpanel.html\">How to Add a New Domain To Cpanel?<\/a><\/strong><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong><em>Step IV: <\/em><\/strong><span style=\"font-weight: 400;\">Login to your cPanel <\/span><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/114_image2.png\" alt=\"Login to your cPanel\"><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Create a database &amp; user. (Make sure to save the database name,&nbsp; user, and password into a text file in a safe place.) <\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/115_image6.png\" alt=\"Create a database\"><\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Add New User<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/116_image9.png\" alt=\"Add New User\"><\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Add User to Database<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/117_image7.png\" alt=\"add user to database\"><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step V: <\/strong><span style=\"font-weight: 400;\">Go to the phpMyAdmin tab and select the database we have created in \u2018Step IV\u2019. Now go to the import tab and import the database file we have exported in \u2018Step II\u2019. <\/span><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/118_image4.png\" alt=\"import \"><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/120_image8.png\" alt=\"import the database file\"><\/span><\/p>\n<p>&nbsp;<\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong><a href=\"https:\/\/www.hostitsmart.com\/blog\/how-to-install-wordpress-on-vps-hosting\/\">How To Install WordPress On VPS Hosting<\/a><\/strong><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step VI: <\/strong><span style=\"font-weight: 400;\">Open your File Manager in cPanel and upload the ZIP file of your Laravel project into the&nbsp; public_html directory and extract the ZIP file. The ZIP file should be uploaded and extracted directly in the public_html folder and not inside any subfolder.&nbsp; <\/span><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/121_image1.png\" alt=\"File Manager\"><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong><a href=\"https:\/\/www.hostitsmart.com\/blog\/how-to-install-wordpress-on-vps-hosting\/\">M<\/a><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/68\/move-an-email-account-from-one-cPanel-server-to-another.html\">ove an email account from one cPanel server to another<\/a><\/strong><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Step VII: <\/strong><span style=\"font-weight: 400;\">Now update your database details into the config file by opening the database.php file from the config folder and updating your database name, username and password into the database.php file. Now save the file. (Any sensitive credentials should not be uploaded in&nbsp; the env file in shared hosting.)<\/span><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/122_image3.png\" alt=\"database.php\"><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Copy this &amp; modify the details:<\/strong><\/span><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&#8216;mysql&#8217; =&gt; [<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;driver&#8217; =&gt; &#8216;mysql&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;url&#8217; =&gt; &#8221;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;host&#8217; =&gt; &#8216;255.255.255.255&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;port&#8217; =&gt; &#8216;123&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;database&#8217; =&gt; &#8216;yourdatabase&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;username&#8217; =&gt; &#8216;yourusername&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;password&#8217; =&gt; &#8216;your_p@$$word&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;unix_socket&#8217; =&gt; &#8221;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;charset&#8217; =&gt; &#8216;utf8mb4&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;collation&#8217; =&gt; &#8216;utf8mb4_unicode_ci&#8217;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;prefix&#8217; =&gt; &#8221;,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;prefix_indexes&#8217; =&gt; true,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;strict&#8217; =&gt; true,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;engine&#8217; =&gt; null,<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&#8216;options&#8217; =&gt; extension_loaded(&#8216;pdo_mysql&#8217;) ? array_filter([<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PDO::MYSQL_ATTR_SSL_CA =&gt; env(&#8216;MYSQL_ATTR_SSL_CA&#8217;),<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&nbsp;&nbsp;&nbsp;&nbsp;]) : [],<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">],<\/span><\/em><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Congratulations, You have successfully uploaded your Laravel project to your cPanel.&nbsp;&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">To make your project secure and protect your .htaccess and .env files, open the .htaccess file from the&nbsp; public_html folder and write the following code to disable direct access and directory browsing:<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><img decoding=\"async\" style=\"max-width: 100%;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/123_image5.png\" alt=\".htaccess and .env files\"><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Copy this:<\/strong><\/span><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">#disable directory browsing&nbsp;&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Options \u2013 Indexes&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">#PROTECT ENV FILE&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&lt;Files .env&gt;&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Order allow,deny&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Deny from all&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&lt;\/Files&gt;&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">#PROTECT ENV FILE&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&lt;Files .htaccess&gt;&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Order allow,deny&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Deny from all&nbsp;<\/span><\/em><\/p>\n<p><em><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">&lt;\/Files&gt;&nbsp;<\/span><\/em><\/p>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">You have successfully deployed your Laravel Project to cPanel and secured it from direct access and directory browsing.&nbsp; <\/span><\/p>\n<h2><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Conclusion <\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-family: tahoma, arial, helvetica, sans-serif;\">Uploading a Laravel project on a shared hosting platform can be difficult, but it is not impossible. In this article, we have successfully uploaded your first Laravel project to cPanel.<\/span><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Uploading a Laravel project to a shared hosting platform like cPanel can be difficult. You may already have tried doing so and failed. This is mainly because most shared hosting platforms don\u2019t provide an SSH terminal which is crucial to run PHP artisan commands like; PHP artisan cache: clear, PHP artisan storage: link, etc. And [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to upload Laravel Project on Shared Hosting With cPanel?<\/title>\n<meta name=\"description\" content=\"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upload Laravel Project on Shared Hosting With cPanel?\" \/>\n<meta property=\"og:description\" content=\"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-06T08:39:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-09T11:41:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/114_image2.png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\"},\"headline\":\"How to upload Laravel Project on Shared Hosting With cPanel?\",\"datePublished\":\"2023-10-06T08:39:39+00:00\",\"dateModified\":\"2023-10-09T11:41:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\"},\"wordCount\":794,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"articleSection\":[\"cPanel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\",\"name\":\"How to upload Laravel Project on Shared Hosting With cPanel?\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"datePublished\":\"2023-10-06T08:39:39+00:00\",\"dateModified\":\"2023-10-09T11:41:39+00:00\",\"description\":\"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\",\"name\":\"Host IT Smart Knowledge base\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":240,\"height\":80,\"caption\":\"Host IT Smart Knowledge base\"},\"image\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upload Laravel Project on Shared Hosting With cPanel?","description":"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.","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:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html","og_locale":"en_US","og_type":"article","og_title":"How to upload Laravel Project on Shared Hosting With cPanel?","og_description":"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.","og_url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2023-10-06T08:39:39+00:00","article_modified_time":"2023-10-09T11:41:39+00:00","og_image":[{"url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/114_image2.png"}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html#article","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html"},"author":{"name":"Admin","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9"},"headline":"How to upload Laravel Project on Shared Hosting With cPanel?","datePublished":"2023-10-06T08:39:39+00:00","dateModified":"2023-10-09T11:41:39+00:00","mainEntityOfPage":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html"},"wordCount":794,"commentCount":0,"publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"articleSection":["cPanel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html","name":"How to upload Laravel Project on Shared Hosting With cPanel?","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website"},"datePublished":"2023-10-06T08:39:39+00:00","dateModified":"2023-10-09T11:41:39+00:00","description":"Have you tried uploading your Laravel project but failed? It can be due to the absence of an SSH. Let us help you in uploading your Laravel project on cPanel.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/228\/How-to-upload-Laravel-Project-on-Shared-Hosting-With-cPanel.html"]}]},{"@type":"WebSite","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization","name":"Host IT Smart Knowledge base","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":240,"height":80,"caption":"Host IT Smart Knowledge base"},"image":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":1,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":557,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/228\/revisions\/557"}],"wp:attachment":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}