{"id":23332,"date":"2017-09-12T09:00:41","date_gmt":"2017-09-12T14:00:41","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=23332"},"modified":"2022-12-09T05:20:36","modified_gmt":"2022-12-09T11:20:36","slug":"how-to-install-laravel-on-a-cpanel-server","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/","title":{"rendered":"How to install Laravel on cPanel"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure id=\"attachment_27964\" aria-describedby=\"caption-attachment-27964\" style=\"width: 732px\" class=\"wp-caption alignnone\"><img decoding=\"async\" class=\"wp-image-27964 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg\" alt=\"How to Install Laravel on cPanel\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><figcaption id=\"caption-attachment-27964\" class=\"wp-caption-text\">How to Install Laravel on cPanel<\/figcaption><\/figure>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28672\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/Install-Laravel-on-cPanel.jpg\" alt=\"Install Laravel on cPanel\" width=\"120\" height=\"120\" \/>We will show you, <strong>how to install Laravel on cPanel<\/strong>. Laravel is the most starred PHP framework on Github and also the most preferred framework of PHP developers. This guide should work on other Linux VPS systems as well but was tested and written for a <a title=\"cPanel VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">cPanel VPS<\/a>. Let&#8217;s get started with the installation of Laravel on your cPanel server.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f5adf4e37e1\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f5adf4e37e1\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#1-Prerequisites\" >1. Prerequisites:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#2-Login-to-your-VPS-via-SSH\" >2. Login to your VPS via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#3-Update-the-system-and-install-necessary-packages\" >3. Update the system and install necessary packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#4-Install-the-composer\" >4. Install the composer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#4-Install-Laravel\" >4. Install Laravel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#5-Configure-cPanel\" >5. Configure cPanel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#6-Change-Document-Root-for-a-Primary-domain\" >6. Change Document Root for a Primary domain<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Prerequisites\"><\/span>1. Prerequisites:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This guide assumes that you already have:<\/p>\n<ul>\n<li>PHP 5.6.4 or later (PHP 7 is highly recommended)<\/li>\n<li>OpenSSL, Mbstring, PDO, Tokenizer, PHP and XML Extensions<\/li>\n<li>Apache<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"2-Login-to-your-VPS-via-SSH\"><\/span>2. Login to your VPS via SSH<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>ssh root@my_server<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Update-the-system-and-install-necessary-packages\"><\/span>3. Update the system and install necessary packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>yum update\r\nyum install git curl<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-the-composer\"><\/span>4. Install the composer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The composer is a dependency manager for PHP with which you can install packages. The composer will pull in all the required libraries and dependencies you need for your project.<\/p>\n<pre>curl -sS https:\/\/getcomposer.org\/installer | php\r\nmv composer.phar \/usr\/local\/bin\/composer<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-Laravel\"><\/span>4. Install Laravel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Installing Laravel is a\u00a0pretty straightforward process, in this post we will install Laravel using the composer create-project command.<\/p>\n<p>Switch to the domain root directory:<\/p>\n<pre>cd \/home\/USERNAME\/public_html\/<\/pre>\n<p>and install Laravel using the composer <code>create-project<\/code> command (<small class=\"st\">Be sure to include the dot (.) at the end of the command.<\/small>):<\/p>\n<pre>composer create-project --prefer-dist laravel\/laravel .<\/pre>\n<p>If you are logged in as a root or another sudo user you will need to set the correct ownership and permissions:<\/p>\n<pre>chown -R USERNAME:USERNAME \/home\/USERNAME\/public_html\/<\/pre>\n<p><small>Do not forget to change &#8216;USERNAME&#8217; with the actual username.<\/small><\/p>\n<h2><span class=\"ez-toc-section\" id=\"5-Configure-cPanel\"><\/span>5. Configure cPanel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We need to edit the default web server document root and change it from <code>public_html<\/code> to <code>public<\/code> as required by Laravel.<\/p>\n<h4>Change Document Root for an Addon domain<\/h4>\n<p>Login to your cPanel at: <code>https:\/\/YOUR_SERER_IP:2083<\/code> and in the &#8216;Domains&#8217; section click on the &#8216;Addon Domains&#8217;. In the new window, you will see a list of all your addon domains, click on the edit icon next to the domain&#8217;s document root path and enter the new path, for example <code>\/public_html\/laravel-addon-domain.com\/public<\/code>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Change-Document-Root-for-a-Primary-domain\"><\/span>6. Change Document Root for a Primary domain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To change the main\/primary domain Document Root you need to have SSH root access to your server. Open the following file:<\/p>\n<pre>nano \/var\/cpanel\/userdata\/USERNAME\/MY_LARAVEL_DOMAIN.COM<\/pre>\n<p>and change the <code>documentroot<\/code> value, just add <code>public<\/code> at the end of the path, for example:<\/p>\n<pre>documentroot: \/home\/USERNAME\/public_html\/public<\/pre>\n<p>If you have an SSL certificate for your domain you also need to edit the <code>documentroot<\/code> value in the following file:<\/p>\n<pre>\/var\/cpanel\/userdata\/USERNAME\/MY_LARAVEL_DOMAIN.COM_SSL<\/pre>\n<p><small>Do not forget to change &#8216;USERNAME&#8217; with the actual username and MY_LARAVEL_DOMAIN.COM with the actual domain.<\/small><\/p>\n<p>Finally save the file and rebuild the Apache configuration:<\/p>\n<pre>\/scripts\/rebuildhttpdconf &amp;&amp; service httpd restart<\/pre>\n<hr \/>\n<p>That\u2019s it. You have successfully <strong>installed and configured Laravel on your cPanel<\/strong>. For more information about Laravel, please refer to the official <a title=\"Laravel\" href=\"https:\/\/laravel.com\/docs\/5.4\" target=\"_blank\" rel=\"noopener noreferrer\"> Laravel documentation <\/a> and for more information about cPanel please refer to the official cPanel documentation .<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27965\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/installing-laravel-on-cpanel.jpg\" alt=\"installing laravel on cpanel\" width=\"200\" height=\"137\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/installing-laravel-on-cpanel.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/installing-laravel-on-cpanel-150x103.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>Of course, you don\u2019t have to to install Laravel on a cPanel Server, by yourself if you use our <a href=\"https:\/\/www.rosehosting.com\/laravel-hosting.html\">Laravel Hosting<\/a>, in which case you can simply ask our expert Linux admins to to install Laravel on a cPanel Server\u00a0 for you. They are available 24&#215;7 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on\u00a0<strong>installing Laravel on a cPanel Server<\/strong> please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will show you, how to install Laravel on cPanel. Laravel is the most starred PHP framework on Github and &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install Laravel on cPanel\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#more-23332\" aria-label=\"Read more about How to install Laravel on cPanel\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27964,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1708,1712],"tags":[46,176,50,18],"class_list":["post-23332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-web-frameworks","tag-cpanel","tag-laravel","tag-php","tag-vps","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install Laravel on cPanel | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to install Laravel on cPanel | RoseHosting\" \/>\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.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Laravel on cPanel\" \/>\n<meta property=\"og:description\" content=\"How to install Laravel on cPanel | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-12T14:00:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T11:20:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install Laravel on cPanel\",\"datePublished\":\"2017-09-12T14:00:41+00:00\",\"dateModified\":\"2022-12-09T11:20:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/\"},\"wordCount\":525,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/How-to-Install-Laravel-on-cPanel.jpg\",\"keywords\":[\"cPanel\",\"laravel\",\"php\",\"vps\"],\"articleSection\":[\"Control Panels\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/\",\"name\":\"How to install Laravel on cPanel | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/How-to-Install-Laravel-on-cPanel.jpg\",\"datePublished\":\"2017-09-12T14:00:41+00:00\",\"dateModified\":\"2022-12-09T11:20:36+00:00\",\"description\":\"How to install Laravel on cPanel | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/How-to-Install-Laravel-on-cPanel.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/How-to-Install-Laravel-on-cPanel.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Laravel on cPanel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-a-cpanel-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Laravel on cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install Laravel on cPanel | RoseHosting","description":"How to install Laravel on cPanel | RoseHosting","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.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/","og_locale":"en_US","og_type":"article","og_title":"How to install Laravel on cPanel","og_description":"How to install Laravel on cPanel | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-09-12T14:00:41+00:00","article_modified_time":"2022-12-09T11:20:36+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install Laravel on cPanel","datePublished":"2017-09-12T14:00:41+00:00","dateModified":"2022-12-09T11:20:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/"},"wordCount":525,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg","keywords":["cPanel","laravel","php","vps"],"articleSection":["Control Panels","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/","name":"How to install Laravel on cPanel | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg","datePublished":"2017-09-12T14:00:41+00:00","dateModified":"2022-12-09T11:20:36+00:00","description":"How to install Laravel on cPanel | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/09\/How-to-Install-Laravel-on-cPanel.jpg","width":742,"height":372,"caption":"How to Install Laravel on cPanel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-a-cpanel-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Laravel on cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=23332"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23332\/revisions"}],"predecessor-version":[{"id":43930,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/23332\/revisions\/43930"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27964"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=23332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=23332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=23332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}