{"id":45250,"date":"2023-05-08T12:30:00","date_gmt":"2023-05-08T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=45250"},"modified":"2023-06-02T03:47:42","modified_gmt":"2023-06-02T08:47:42","slug":"how-to-install-laravel-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/","title":{"rendered":"How to Install Laravel on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp\" alt=\"install laravel on debian 11\" class=\"wp-image-45612\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>In this blog post, we will explain in step-by-step detail how to install Laravel on Debian 11 OS.<\/p>\n\n\n\n<p>Laravel is an open-source PHP framework that uses the famous MVC (Model-View-Controller) architectural pattern. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Taylor Otwell writes the <a href=\"https:\/\/www.rosehosting.com\/laravel-hosting\/\">Laravel framework<\/a>, and its usage is increasing on a daily basis for building from the simplest to the most complex websites. In this post, we will install Laravel with the LAMP stack.<\/p>\n\n\n\n<p>Installing Laravel on Debian 11 is straightforward and may take up to 15 minutes. Let&#8217;s get things done!<\/p>\n\n\n\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-69fd095b934e6\" 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-69fd095b934e6\"  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-debian-11\/#Prerequisites\" >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-debian-11\/#Step-1-Update-the-System\" >Step 1. Update the System<\/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-debian-11\/#Step-2-Install-LAMP-Stack\" >Step 2. Install LAMP Stack<\/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-debian-11\/#Step-4-Install-Composer\" >Step 4. Install 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-debian-11\/#Step-5-Install-Laravel\" >Step 5. 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-debian-11\/#Step-6-Create-Apache-Virtual-Host-File\" >Step 6. Create Apache Virtual Host File<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server with Debian 11 as OS<\/li>\n\n\n\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n\n\n\n<li>A valid domain with pointed A record to the server IP address<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we start installing the LAMP stack and Laravel, we will update the system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Install-LAMP-Stack\"><\/span>Step 2. Install LAMP Stack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, we will install the <b>Apache Web server<\/b>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install apache2 -y<\/pre>\n\n\n\n<p>Once installed, start and enable the service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl enable apache2 &amp;&amp; sudo systemctl start apache2<\/pre>\n\n\n\n<p>Check if the service is up and running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status apache2<\/pre>\n\n\n\n<p>You should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# sudo systemctl status apache2\n\u25cf apache2.service - The Apache HTTP Server\n     Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\n     Active: active (running) since Fri 2023-03-31 09:18:02 CDT; 1h 37min ago\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\n   Main PID: 498 (apache2)\n      Tasks: 7 (limit: 4675)\n     Memory: 22.9M\n        CPU: 661ms\n     CGroup: \/system.slice\/apache2.service\n<\/pre>\n\n\n\n<p>First, add the GPG key and the repo because, in the default repository of Debian 11, they do not exist. To install the <b>PHP<\/b> along with its extensions, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt -y install lsb-release apt-transport-https ca-certificates \n\nwget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg\n\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | tee \/etc\/apt\/sources.list.d\/php.list\n\nsudo apt-get update -y\n<\/pre>\n\n\n\n<p>Once the PHP key and repo are added, you can install the PHP with extensions using this long command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install php8.1 php8.1-common php8.1-curl libapache2-mod-php php8.1-imap php8.1-redis php8.1-cli php8.1-snmp php8.1-xml php8.1-zip php8.1-mbstring php8.1-gd php8.1-xml php8.1-mysql php-mbstring -y<\/pre>\n\n\n\n<p>sudo apt-get install php8.1 php8.1-cli php8.1-common php8.1-imap php8.1-redis php8.1-snmp php8.1-xml php8.1-zip php8.1-mbstring php8.1-curl<\/p>\n\n\n\n<p>After successful installation, check the PHP version:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php -v<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# php -v\nPHP 8.2.4 (cli) (built: Mar 16 2023 14:37:38) (NTS)\nCopyright (c) The PHP Group\nZend Engine v4.2.4, Copyright (c) Zend Technologies\n    with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies\n<\/pre>\n\n\n\n<p>p&gt;The last of the LAMP stack is the <b>MariaDB<\/b> database service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install mariadb-server -y<\/pre>\n\n\n\n<p>Start and enable the mariadb.service with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl start mariadb &amp;&amp; sudo systemctl enable mariadb<\/pre>\n\n\n\n<p>Check the status of the mariadb.service<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status mariadb<\/pre>\n\n\n\n<p>You should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# sudo systemctl status mariadb\n\u25cf mariadb.service - MariaDB 10.5.18 database server\n     Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\n     Active: active (running) since Fri 2023-03-31 11:01:41 CDT; 15s ago\n       Docs: man:mariadbd(8)\n             https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\n   Main PID: 20668 (mariadbd)\n     Status: \"Taking your SQL requests now...\"\n      Tasks: 19 (limit: 4675)\n     Memory: 67.6M\n        CPU: 497ms\n     CGroup: \/system.slice\/mariadb.service\n             \u2514\u250020668 \/usr\/sbin\/mariadbd\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-4-Install-Composer\"><\/span>Step 4. Install Composer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We need to install the Composer responsible for installing all the Laravel components.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sS https:\/\/getcomposer.org\/installer | php -- --install-dir=\/usr\/bin --filename=composer<\/pre>\n\n\n\n<p>Check the Composer installation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">composer<\/pre>\n\n\n\n<p>You should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# composer\nDo not run Composer as root\/super user! See https:\/\/getcomposer.org\/root for details\nContinue as root\/super user [yes]? yes\n   ______\n  \/ ____\/___  ____ ___  ____  ____  ________  _____\n \/ \/   \/ __ \\\/ __ `__ \\\/ __ \\\/ __ \\\/ ___\/ _ \\\/ ___\/\n\/ \/___\/ \/_\/ \/ \/ \/ \/ \/ \/ \/_\/ \/ \/_\/ (__  )  __\/ \/\n\\____\/\\____\/_\/ \/_\/ \/_\/ .___\/\\____\/____\/\\___\/_\/\n                    \/_\/\nComposer version 2.5.5 2023-03-21 11:50:05\n\nUsage:\n  command [options] [arguments]\n\nOptions:\n  -h, --help                     Display help for the given command. When no command is given display help for the list command\n  -q, --quiet                    Do not output any message\n  -V, --version                  Display this application version\n      --ansi|--no-ansi           Force (or disable --no-ansi) ANSI output\n  -n, --no-interaction           Do not ask any interactive question\n      --profile                  Display timing and memory usage information\n      --no-plugins               Whether to disable plugins.\n      --no-scripts               Skips the execution of all scripts defined in composer.json file.\n  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.\n      --no-cache                 Prevent use of the cache\n  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-5-Install-Laravel\"><\/span>Step 5. Install Laravel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We will install Laravel with the composer in the default apache2 document root location:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/\n\ncomposer create-project laravel\/laravel \"ProjectName\"\n<\/pre>\n\n\n\n<p>After successful installation, you should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">59 package suggestions were added by new dependencies, use `composer suggest` to see details.\nGenerating optimized autoload files\n&gt; Illuminate\\Foundation\\ComposerScripts::postAutoloadDump\n&gt; @php artisan package:discover --ansi\n\n   INFO  Discovering packages.\n\n  laravel\/sail ................................................................................................................................ DONE\n  laravel\/sanctum ............................................................................................................................. DONE\n  laravel\/tinker .............................................................................................................................. DONE\n  nesbot\/carbon ............................................................................................................................... DONE\n  nunomaduro\/collision ........................................................................................................................ DONE\n  nunomaduro\/termwind ......................................................................................................................... DONE\n  spatie\/laravel-ignition ..................................................................................................................... DONE\n\n80 packages you are using are looking for funding.\nUse the `composer fund` command to find out more!\n&gt; @php artisan vendor:publish --tag=laravel-assets --ansi --force\n\n   INFO  No publishable resources for tag [laravel-assets].\n\nNo security vulnerability advisories found\n&gt; @php artisan key:generate --ansi\n\n   INFO  Application key set successfully\n<\/pre>\n\n\n\n<p>Set the right permissions to Laravel&#8217;s document root<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/\"ProjectName\"\n\nchown -R www-data:www-data .\n\nchmod -R 775 storage\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-6-Create-Apache-Virtual-Host-File\"><\/span>Step 6. Create Apache Virtual Host File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Go into the Apache directory where the configuration files are stored and create a configuration file for the Laravel application.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/etc\/apache2\/sites-available\/\n\ntouch laravel.conf\n<\/pre>\n\n\n\n<p>Paste the following lines of code, save the file and close it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\nServerName <b>yourdomain.com<\/b>\nDocumentRoot \/var\/www\/html\/ProjectName\/public\n\n&lt;Directory \/var\/www\/html\/ProjectName&gt;\nAllowOverride All\n&lt;\/Directory&gt;\n\nErrorLog ${APACHE_LOG_DIR}\/error.log\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n&lt;\/VirtualHost&gt;\n\n<\/pre>\n\n\n\n<p>Enable the Apache configuration for Laravel.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2ensite laravel.conf\n<\/pre>\n\n\n\n<p>Check the syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apachectl -t<\/pre>\n\n\n\n<p>You should receive the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@vps:~# apachectl -t\nSyntax OK\n<\/pre>\n\n\n\n<p>If the syntax is OK, restart the Apache service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl reload apache2\n<\/pre>\n\n\n\n<p>Once the Apache service is restarted, you can access the Laravel website at <b>http:\/\/yourdomain.com<\/b><\/p>\n\n\n\n<p>That&#8217;s it! You successfully installed Laravel PHP Framework on Debian 11 with Composer and Apache as a web server.<\/p>\n\n\n\n<p>If you do not know how to install and configure Laravel on Debian 11, feel free to contact our technical support. <a href=\"https:\/\/www.rosehosting.com\/support\/\">We are available 24\/7<\/a> and will help you with any aspect of configuring your server.<\/p>\n\n\n\n<p>If you liked this post on how to install Laravel on Debian 11, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, we will explain in step-by-step detail how to install Laravel on Debian 11 OS. Laravel is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Laravel on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#more-45250\" aria-label=\"Read more about How to Install Laravel on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":45612,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1712],"tags":[48,2047,176],"class_list":["post-45250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-web-frameworks","tag-debian","tag-lamp-stack","tag-laravel","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 Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!\" \/>\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-debian-11\/\" \/>\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 Debian 11\" \/>\n<meta property=\"og:description\" content=\"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/\" \/>\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=\"2023-05-08T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-02T08:47:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp\" \/>\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\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Laravel on Debian 11\" \/>\n<meta name=\"twitter:description\" content=\"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!\" \/>\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=\"6 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-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Laravel on Debian 11\",\"datePublished\":\"2023-05-08T17:30:00+00:00\",\"dateModified\":\"2023-06-02T08:47:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/\"},\"wordCount\":515,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/install-laravel-on-debian-11.webp\",\"keywords\":[\"debian\",\"lamp stack\",\"laravel\"],\"articleSection\":[\"Tutorials\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/\",\"name\":\"How to Install Laravel on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/install-laravel-on-debian-11.webp\",\"datePublished\":\"2023-05-08T17:30:00+00:00\",\"dateModified\":\"2023-06-02T08:47:42+00:00\",\"description\":\"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/install-laravel-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/install-laravel-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"install laravel on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-laravel-on-debian-11\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Laravel on Debian 11\"}]},{\"@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 Debian 11 | RoseHosting","description":"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!","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-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Laravel on Debian 11","og_description":"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-05-08T17:30:00+00:00","article_modified_time":"2023-06-02T08:47:42+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Laravel on Debian 11","twitter_description":"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Laravel on Debian 11","datePublished":"2023-05-08T17:30:00+00:00","dateModified":"2023-06-02T08:47:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/"},"wordCount":515,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp","keywords":["debian","lamp stack","laravel"],"articleSection":["Tutorials","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/","name":"How to Install Laravel on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp","datePublished":"2023-05-08T17:30:00+00:00","dateModified":"2023-06-02T08:47:42+00:00","description":"Check out our in-depth tutorial and find out how to install Laravel on Debian 11. Read on and find out more!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/install-laravel-on-debian-11.webp","width":742,"height":372,"caption":"install laravel on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-laravel-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Laravel on Debian 11"}]},{"@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\/45250","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=45250"}],"version-history":[{"count":10,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45250\/revisions"}],"predecessor-version":[{"id":46072,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45250\/revisions\/46072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/45612"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=45250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=45250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=45250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}