{"id":224,"date":"2018-12-06T17:10:28","date_gmt":"2018-12-06T11:40:28","guid":{"rendered":"https:\/\/mediastroke.com\/blog\/?p=224"},"modified":"2022-06-06T12:02:52","modified_gmt":"2022-06-06T06:32:52","slug":"host-laravel-project","status":"publish","type":"post","link":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/","title":{"rendered":"Host laravel project on cPanel"},"content":{"rendered":"

Host Laravel project on cPanel<\/h1>\n

Step 1:-<\/strong><\/h5>\n

First of all, we have to get all the files & directories into laravel_project <\/strong>folder. open your terminal & go inside your project folder,\u00a0 And run the command\u00a0php artisan cache:clear<\/strong><\/span>. to clear your cache.<\/p>\n

then run\u00a0php artisan config:clear<\/span><\/strong> to clear the\u00a0cached version of your config file, if there is any.<\/p>\n

Now make a zip folder of your project\u2019s folder for ex. Laravel_project<\/p>\n

\"host<\/a><\/p>\n

Step 2 : – Upload your folder<\/strong><\/h5>\n

After login to your cPanel, for uploading folder go to File Manager, <\/strong>& upload your folder in root directory,\u00a0i have created laravel_project<\/strong> folder in root directory.<\/p>\n

\"deploy<\/a><\/p>\n

Step 3:-\u00a0<\/span><\/strong><\/h5>\n

\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Unzip (your project\u2019s folder)<\/span>laravel_project<\/strong>\u00a0open <\/span>laravel_project<\/strong> folder and\u00a0move all the public folder content into <\/span>public_html<\/strong> directory.\u00a0so make sure that, you do not have to keep anything in public<\/strong> folder, it should be blank.<\/span><\/p>\n

\"shared<\/a><\/p>\n

Step 4<\/strong> :-<\/h5>\n

keep .htaccess file into public_html<\/strong> & into (your created folder)laravel_project<\/strong> that is outside the public_html. Or copy .htaccess file from public folder & paste it into laravel_project.<\/p>\n

\"laravel<\/a><\/p>\n

Step 5<\/strong>:-<\/h5>\n

And Edit index.php file like following way add laravel_project<\/strong> name before \/vendor.<\/p>\n

\"laravel<\/a><\/p>\n

Step 6:-<\/strong><\/h5>\n

If you have dynamic work done into your project then create database connectivity through your .env<\/strong> file that will be available into laravel_project<\/strong> folder if it is not shown then click on settings<\/strong> on right corner of cPanel\u00a0on the Preferences window,<\/strong>\u00a0enable the checkbox show hidden files(dotfiles)<\/strong>.<\/p>\n

If you do not know how to make database connectivity then please refer this link\u00a0<\/span>\u00a0<\/span><\/span>\u00a0 \u00a0<\/span>https:\/\/mediastroke.com\/blog\/deploy-dynamic-java-project-on-java-hosting\/<\/a><\/p>\n

Step 7<\/strong>:-<\/h5>\n

At the end run your domain on the browser. Like<\/p>\n

\"upload<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Host Laravel project on cPanel Step 1:- First of all, we have to get all the files & directories into […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\nHost laravel project on cPanel -<\/title>\n<meta name=\"description\" content=\"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Host Laravel Project on cPanel\" \/>\n<meta property=\"og:description\" content=\"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mediastroke\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-06T11:40:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-06T06:32:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/HappyLiberation-Day.png\" \/>\n\t<meta property=\"og:image:width\" content=\"560\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Swati Belure\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Host Laravel Project on cPanel\" \/>\n<meta name=\"twitter:description\" content=\"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/HappyLiberation-Day.png\" \/>\n<meta name=\"twitter:creator\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:site\" content=\"@mediastrokehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Swati Belure\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\"},\"author\":{\"name\":\"Swati Belure\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/6dbbe1ade9f5ee237446d85e269e4f7c\"},\"headline\":\"Host laravel project on cPanel\",\"datePublished\":\"2018-12-06T11:40:28+00:00\",\"dateModified\":\"2022-06-06T06:32:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\"},\"wordCount\":291,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip-1024x578.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\",\"name\":\"Host laravel project on cPanel -\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip-1024x578.png\",\"datePublished\":\"2018-12-06T11:40:28+00:00\",\"dateModified\":\"2022-06-06T06:32:52+00:00\",\"description\":\"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.\",\"breadcrumb\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip.png\",\"width\":1360,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mediastroke.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Host laravel project on cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"name\":\"\",\"description\":\"Web Hosting Provider\",\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mediastroke.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\",\"name\":\"MediaStroke\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"width\":320,\"height\":50,\"caption\":\"MediaStroke\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mediastroke\",\"https:\/\/x.com\/mediastrokehost\",\"https:\/\/www.linkedin.com\/company\/mediastroke-servers\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/6dbbe1ade9f5ee237446d85e269e4f7c\",\"name\":\"Swati Belure\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e5897f60a1843911b17236ae22b743d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e5897f60a1843911b17236ae22b743d0?s=96&d=mm&r=g\",\"caption\":\"Swati Belure\"},\"sameAs\":[\"https:\/\/mediastroke.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Host laravel project on cPanel -","description":"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.","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:\/\/mediastroke.com\/blog\/host-laravel-project\/","og_locale":"en_US","og_type":"article","og_title":"Host Laravel Project on cPanel","og_description":"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.","og_url":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/","article_publisher":"https:\/\/www.facebook.com\/mediastroke","article_published_time":"2018-12-06T11:40:28+00:00","article_modified_time":"2022-06-06T06:32:52+00:00","og_image":[{"width":560,"height":315,"url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/HappyLiberation-Day.png","type":"image\/png"}],"author":"Swati Belure","twitter_card":"summary_large_image","twitter_title":"Host Laravel Project on cPanel","twitter_description":"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.","twitter_image":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/HappyLiberation-Day.png","twitter_creator":"@mediastrokehost","twitter_site":"@mediastrokehost","twitter_misc":{"Written by":"Swati Belure","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#article","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/"},"author":{"name":"Swati Belure","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/6dbbe1ade9f5ee237446d85e269e4f7c"},"headline":"Host laravel project on cPanel","datePublished":"2018-12-06T11:40:28+00:00","dateModified":"2022-06-06T06:32:52+00:00","mainEntityOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/"},"wordCount":291,"commentCount":1,"publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip-1024x578.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mediastroke.com\/blog\/host-laravel-project\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/","url":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/","name":"Host laravel project on cPanel -","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage"},"thumbnailUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip-1024x578.png","datePublished":"2018-12-06T11:40:28+00:00","dateModified":"2022-06-06T06:32:52+00:00","description":"This blog will help you to Host Laravel Project on cPanel. Go through all the steps which i have explained here then it will host on your cPanel login.","breadcrumb":{"@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mediastroke.com\/blog\/host-laravel-project\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#primaryimage","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/make_zip.png","width":1360,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/mediastroke.com\/blog\/host-laravel-project\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mediastroke.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Host laravel project on cPanel"}]},{"@type":"WebSite","@id":"https:\/\/mediastroke.com\/blog\/#website","url":"https:\/\/mediastroke.com\/blog\/","name":"","description":"Web Hosting Provider","publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mediastroke.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mediastroke.com\/blog\/#organization","name":"MediaStroke","url":"https:\/\/mediastroke.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","width":320,"height":50,"caption":"MediaStroke"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mediastroke","https:\/\/x.com\/mediastrokehost","https:\/\/www.linkedin.com\/company\/mediastroke-servers"]},{"@type":"Person","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/6dbbe1ade9f5ee237446d85e269e4f7c","name":"Swati Belure","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e5897f60a1843911b17236ae22b743d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e5897f60a1843911b17236ae22b743d0?s=96&d=mm&r=g","caption":"Swati Belure"},"sameAs":["https:\/\/mediastroke.com"]}]}},"_links":{"self":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":23,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":863,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions\/863"}],"wp:attachment":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}