{"id":704,"date":"2019-08-06T16:11:34","date_gmt":"2019-08-06T16:11:34","guid":{"rendered":"https:\/\/www.jetorbit.com\/panduan\/?p=704"},"modified":"2024-03-22T15:13:16","modified_gmt":"2024-03-22T08:13:16","slug":"cara-upload-laravel-ke-hosting-jetorbit-dengan-mudah","status":"publish","type":"post","link":"https:\/\/www.jetorbit.com\/panduan\/cara-upload-laravel-ke-hosting-jetorbit-dengan-mudah\/","title":{"rendered":"Cara Upload Laravel ke Hosting Jetorbit Dengan Mudah"},"content":{"rendered":"\n<p>Bagi anda yang ingin mengupload project laravel di <a href=\"https:\/\/www.jetorbit.com\/web-hosting\">hosting<\/a> jetorbit bisa ikuti tutorial yang kami sampaikan.<\/p>\n\n\n\n<p>Hal pertama adalah, kita akan mengelompokan folder <a href=\"https:\/\/www.jetorbit.com\/blog\/laravel-atau-codeigniter-pilih-mana-nih\/\">laravel<\/a> (selain folder public) didalam satu foder bernama&nbsp;<strong>framework.<\/strong><\/p>\n\n\n\n<p>Langkah untuk hosting laravel sebagai berikut<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Buat folder\u00a0dengan nama <strong>framework<\/strong> atau nama lain di dalam folder root domain anda, misalkan didalam folder public_html. Sehingga menjadi : <strong>public_html\/framework<\/strong><\/li>\n\n\n\n<li>Masukkan folder dan file <em><strong>selain<\/strong>&nbsp;<\/em>folder <span style=\"text-decoration: underline;\">public<\/span> kedalam folder <strong>framework<\/strong>.<\/li>\n\n\n\n<li>Pindahkan semua isi folder\u00a0<strong>public<\/strong> ke luar. Dalam hal ini ke dalam folder <em><strong>public_html<\/strong><\/em><\/li>\n\n\n\n<li>Ubah file index.php (yang tadi berasal dari folder public) dengan menambahkan(mengubah) path framework seperti berikut<br><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/05\/upload-laravel-ke-hosting-jetorbit.png\" alt=\"upload laravel ke hosting jetorbit\" width=\"696\" height=\"501\" srcset=\"https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/05\/upload-laravel-ke-hosting-jetorbit.png 696w, https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/05\/upload-laravel-ke-hosting-jetorbit-300x216.png 300w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/li>\n\n\n\n<li>Save lah file index.php dan saatnya mencoba aplikasi laravel kamu!<\/li>\n<\/ol>\n\n\n\n<p>Lain lain.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pastikan DB_HOST kamu adalah&nbsp;<strong>localhost<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Jika anda menginstall pada subdomain<\/strong> maka Pastikan bahwa require __DIR dan $app = require_once __DIR mengarah pada subdomain tersebut, Sebagai contoh kami mengupload pada sub jet. Maka<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"html\" class=\"language-html\">require __DIR__.'\/..\/jet\/bootstrap\/autoload.php';<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"html\" class=\"language-html\">$app = require_once __DIR__.'\/..\/jet\/bootstrap\/app.php';<\/code><\/pre>\n\n\n\n<p><strong>Jika anda Menggunakan Addon domain<\/strong> anda bisa mengubah root document di domain addon dengan menggunakan fungsi domain pada fitur cpanel. kemudian Edit pada New document Root, dan pastikan mengarah ke Sub Publich html seperti berikut ini :<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"300\" height=\"179\" src=\"https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/08\/laravek-jet-300x179.jpg\" alt=\"\" class=\"wp-image-9035\" srcset=\"https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/08\/laravek-jet-300x179.jpg 300w, https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/08\/laravek-jet-768x458.jpg 768w, https:\/\/www.jetorbit.com\/panduan\/wp-content\/uploads\/2019\/08\/laravek-jet.jpg 878w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>Sekian tutorial singkat ini, jika ada kendala atau tambahan silahkan hubungi kami melalui komentar di bawah.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bagi anda yang ingin mengupload project laravel di hosting jetorbit bisa ikuti tutorial yang kami sampaikan. Hal pertama adalah, kita akan mengelompokan folder laravel (selain folder public) didalam satu foder bernama&nbsp;framework. Langkah untuk hosting laravel sebagai berikut Lain lain. Jika anda menginstall pada subdomain maka Pastikan bahwa require __DIR dan $app = require_once __DIR mengarah [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":7416,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[148,147,146],"class_list":["post-704","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","tag-hosting-laravel","tag-upload-laravel-hosting","tag-upload-laravel-ke-hosting-jetorbit"],"_links":{"self":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":7,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":9542,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/704\/revisions\/9542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/media\/7416"}],"wp:attachment":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}