{"id":2310,"date":"2016-07-28T14:14:18","date_gmt":"2016-07-28T18:14:18","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2310"},"modified":"2018-01-12T13:54:38","modified_gmt":"2018-01-12T18:54:38","slug":"laravel-under-cpanel","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/","title":{"rendered":"How to Install and Use Laravel Under a cPanel Account"},"content":{"rendered":"<h1>How to Install and Use Laravel Under a cPanel Account<\/h1>\n<p>Laravel is a free web framework written in PHP. It has many features, chief among them a versatile system of modular packages called bundles used to provide extensibility. Accordingly, it&#8217;s one of the most popular web frameworks in use today. Laravel is open-source under the MIT license.<\/p>\n<h2>Getting started<\/h2>\n<p>You&#8217;ll need the following to proceed with this guide:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running a fresh cPanel account.<br \/>\n\u2022 Root access to the server<\/p>\n<h2>Tutorial<\/h2>\n<p>We&#8217;ll be using a program named Composer to install Laravel. Composer is a dependency manager for PHP, making sure that required libraries for a particular project are present and up to date.<\/p>\n<p>First, download Composer. We will be installing it as root into \/usr\/bin. This way, any user on the system will be able to use Composer to manage the dependencies in their own project.<\/p>\n<p><code>cd \/usr\/bin<br \/>\nwget https:\/\/getcomposer.org\/installer<\/code><\/p>\n<p>Using this command, check your system&#8217;s compatibility with Composer.<\/p>\n<p><code>php installer --check<\/code><\/p>\n<p>If there are no errors, then you may proceed.<\/p>\n<p>Now use the script provided to install Composer.<\/p>\n<p><code>php installer<\/code><\/p>\n<p><code class=\"gris\">-------------------<br \/>\nDownloading...<br \/>\nComposer successfully installed to: \/bin\/composer.phar<br \/>\nUse it: php composer.phar<br \/>\n-------------------<\/code><\/p>\n<p>That&#8217;s it for installation. Adjust permissions as shown below. For easy access to Composer, create a symlink.<\/p>\n<p><code>chmod +x composer.phar<br \/>\nln -s composer.phar composer<\/code><\/p>\n<p>Finally, delete the installation script.<\/p>\n<p><code>rm -rf \/usr\/bin\/installer<\/code><\/p>\n<p>With Composer installed, we can begin installing Laravel to a user account of your choosing. You need to Log in via SSH into your user account. Naturally, for this step you will need to make sure that the machine hosting your account has shell access enabled for your user.<\/p>\n<p>If it isn&#8217;t enabled, the server administrator can rectify this by going to List Accounts, expanding the specific account&#8217;s section by clicking on the small plus sign and then clicking on Modify Account. From there the Shell Access option can be enabled as follows and finally click Save. After Laravel is installed, the administrator is free to disable shell access again as it will no longer be needed.<\/p>\n<p><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png\" alt=\"Privileges\" width=\"613\" height=\"188\" class=\"aligncenter size-full wp-image-2314\" \/><\/a><\/p>\n<p>Now you can install Laravel into the account<\/p>\n<p><code>php \/usr\/bin\/composer.phar create-project laravel\/laravel --prefer-dist<\/code><\/p>\n<p>Modify the public folder in relation to the Laravel folder.<\/p>\n<p><code>rm -rf public_html<br \/>\nln -s laravel\/public\/ public_html<\/code><\/p>\n<p>All that remains is to confirm that the installation was successful. Navigate to the domain name associated to your account. If you see the following expected output, then you are good to go.<\/p>\n<p><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.47.54.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.47.54.png\" alt=\"Navigation\" width=\"1919\" height=\"1055\" class=\"aligncenter size-full wp-image-2315\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>With Laravel (and the ever-so-helpful Composer) installed, developing your new site should be a breeze. Don&#8217;t forget to check out all the bundles that are available to help you easily add features. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to Install and Use Laravel Under a cPanel Account Laravel is a free web framework written in PHP. It has many features, chief among them a versatile system of modular packages called bundles used to provide extensibility. Accordingly, it&#8217;s one of the most popular web frameworks in use today. Laravel is open-source under the<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-2310","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Use Laravel Under a cPanel Account - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install and use Laravel under you cPanel account. Read now &amp; Enjoy this popular web framework !\" \/>\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.globo.tech\/learning-center\/laravel-under-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Use Laravel Under a cPanel Account - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install and use Laravel under you cPanel account. Read now &amp; Enjoy this popular web framework !\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-28T18:14:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T18:54:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Install and Use Laravel Under a cPanel Account\",\"datePublished\":\"2016-07-28T18:14:18+00:00\",\"dateModified\":\"2018-01-12T18:54:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/\"},\"wordCount\":435,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/ss2016-07-20at07.35.24.png\",\"articleSection\":[\"Web Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/\",\"name\":\"How to Install and Use Laravel Under a cPanel Account - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/ss2016-07-20at07.35.24.png\",\"datePublished\":\"2016-07-28T18:14:18+00:00\",\"dateModified\":\"2018-01-12T18:54:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install and use Laravel under you cPanel account. Read now & Enjoy this popular web framework !\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/ss2016-07-20at07.35.24.png\",\"contentUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/ss2016-07-20at07.35.24.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/laravel-under-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Use Laravel Under a cPanel Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Use Laravel Under a cPanel Account - Globo.Tech","description":"This tutorial will show you how to install and use Laravel under you cPanel account. Read now & Enjoy this popular web framework !","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.globo.tech\/learning-center\/laravel-under-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Use Laravel Under a cPanel Account - Globo.Tech","og_description":"This tutorial will show you how to install and use Laravel under you cPanel account. Read now & Enjoy this popular web framework !","og_url":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-28T18:14:18+00:00","article_modified_time":"2018-01-12T18:54:38+00:00","og_image":[{"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png","type":"","width":"","height":""}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Install and Use Laravel Under a cPanel Account","datePublished":"2016-07-28T18:14:18+00:00","dateModified":"2018-01-12T18:54:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/"},"wordCount":435,"commentCount":0,"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png","articleSection":["Web Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/","url":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/","name":"How to Install and Use Laravel Under a cPanel Account - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png","datePublished":"2016-07-28T18:14:18+00:00","dateModified":"2018-01-12T18:54:38+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install and use Laravel under you cPanel account. Read now & Enjoy this popular web framework !","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/ss2016-07-20at07.35.24.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/laravel-under-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install and Use Laravel Under a cPanel Account"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2310"}],"version-history":[{"count":7,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2310\/revisions"}],"predecessor-version":[{"id":4068,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2310\/revisions\/4068"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}