{"id":485,"date":"2026-02-09T15:20:18","date_gmt":"2026-02-09T09:50:18","guid":{"rendered":"https:\/\/tutorialsmines.com\/blog\/?p=485"},"modified":"2026-02-09T15:20:19","modified_gmt":"2026-02-09T09:50:19","slug":"how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/","title":{"rendered":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide"},"content":{"rendered":"\n<p>Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project by <strong>cloning it from GitHub<\/strong> and placing it inside the <strong>htdocs directory<\/strong>, which is commonly used in XAMPP or LAMP-based server setups.<\/p>\n\n\n\n<p>This tutorial is ideal for developers who prefer using the <strong>htdocs folder structure<\/strong> instead of the traditional <code>\/var\/www<\/code> directory.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before starting, ensure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Linux server with SSH access<\/li>\n\n\n\n<li>GitHub repository of your Laravel project<\/li>\n\n\n\n<li>Apache\/XAMPP or LAMP stack installed<\/li>\n\n\n\n<li>PHP and Composer installed<\/li>\n\n\n\n<li>Database access (MySQL\/MariaDB)<\/li>\n\n\n\n<li>Basic Linux command knowledge<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Connect to Your Linux Server<\/h2>\n\n\n\n<p>Login via SSH from your local machine:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh username@server_ip<\/code><\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh myeventadmin@your_server_ip<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Update Your Server<\/h2>\n\n\n\n<p>Always update packages before setup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Install Required Packages<\/h2>\n\n\n\n<p>Install Apache, PHP, Git, Composer dependencies, and tools:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apache2 mysql-server unzip git curl -y<\/code><\/pre>\n\n\n\n<p>Install PHP extensions required by Laravel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php php-cli php-mysql php-zip php-gd php-mbstring php-curl php-xml libapache2-mod-php -y<\/code><\/pre>\n\n\n\n<p>Check PHP version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Install Composer<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\ncurl -sS https:\/\/getcomposer.org\/installer | php\nsudo mv composer.phar \/usr\/local\/bin\/composer<\/code><\/pre>\n\n\n\n<p>Verify installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer -V<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Move to HTDOCS Directory<\/h2>\n\n\n\n<p>Depending on your server setup, the htdocs directory may be located at:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/lampp\/htdocs<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/html<\/code><\/pre>\n\n\n\n<p>Navigate to htdocs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/lampp\/htdocs\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"> Step 6: Clone Laravel Project from GitHub<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo git clone https:\/\/github.com\/username\/project.git<\/code><\/pre>\n\n\n\n<p>Move into project folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd project<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Set Folder Permissions<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R daemon:daemon \/opt\/lampp\/htdocs\/project\nsudo chmod -R 775 storage\nsudo chmod -R 775 bootstrap\/cache<\/code><\/pre>\n\n\n\n<p><em>(If using Apache instead of XAMPP, replace daemon with www-data)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Configure Environment File<\/h2>\n\n\n\n<p>Create the environment file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp .env.example .env\nnano .env<\/code><\/pre>\n\n\n\n<p>Update important settings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_NAME=Laravel\nAPP_ENV=production\nAPP_DEBUG=false\nAPP_URL=http:\/\/yourdomain.com<\/code><\/pre>\n\n\n\n<p>Add your database credentials as well.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 9: Install Laravel Dependencies<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>composer install<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 10: Generate Application Key<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan key:generate<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 11: Create Database and Run Migration<\/h2>\n\n\n\n<p>Login to MySQL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysql<\/code><\/pre>\n\n\n\n<p>Create database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE laravel_db;\nEXIT;<\/code><\/pre>\n\n\n\n<p>Run migrations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 12: Configure Apache to Use Public Folder<\/h2>\n\n\n\n<p>Edit Apache configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/opt\/lampp\/etc\/extra\/httpd-vhosts.conf<\/code><\/pre>\n\n\n\n<p>Add:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80>\n    ServerName yourdomain.com\n    DocumentRoot \"\/opt\/lampp\/htdocs\/project\/public\"\n\n    &lt;Directory \"\/opt\/lampp\/htdocs\/project\">\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory>\n&lt;\/VirtualHost><\/code><\/pre>\n\n\n\n<p>Restart Apache\/XAMPP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/opt\/lampp\/lampp restart<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 13: Test Laravel Application<\/h2>\n\n\n\n<p>Open browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;your_server_ip\/project\/public<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;yourdomain.com<\/code><\/pre>\n\n\n\n<p>If everything is configured properly, your Laravel website will be live.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Important Production Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always set <code>APP_DEBUG=false<\/code><\/li>\n\n\n\n<li>Never make <code>.env<\/code> publicly accessible<\/li>\n\n\n\n<li>Ensure correct folder permissions<\/li>\n\n\n\n<li>Use SSL (HTTPS) for live websites<\/li>\n\n\n\n<li>Regularly pull updates from GitHub<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Conclusion<\/h2>\n\n\n\n<p>Deploying a Laravel project using the <strong>htdocs directory<\/strong> and <strong>GitHub cloning<\/strong> is a practical and efficient workflow for Linux servers running XAMPP or Apache environments. By following this step-by-step process \u2014 cloning the repository, configuring environment variables, setting permissions, and configuring Apache \u2014 you can successfully deploy your Laravel application in a production-ready environment.<\/p>\n\n\n\n<p>This method is especially useful for developers who prefer traditional htdocs-based hosting environments while maintaining version control through GitHub.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[689,703,701,690,696,697,694,687,693,704,699,705,698,691,688,702,700,695,692],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-deploy-laravel-using-htdocs","tag-github-clone-laravel-project-server","tag-how-to-deploy-laravel-step-by-step","tag-install-laravel-on-linux-server","tag-laravel-apache-configuration","tag-laravel-application-live-setup","tag-laravel-composer-install-production","tag-laravel-deployment-on-linux-server","tag-laravel-deployment-with-github","tag-laravel-environment-setup-production","tag-laravel-linux-hosting-tutorial","tag-laravel-migration-production-server","tag-laravel-project-hosting-guide","tag-laravel-project-live-on-server","tag-laravel-project-production-setup","tag-laravel-public-folder-setup","tag-laravel-server-configuration-tutorial","tag-laravel-virtual-host-setup","tag-laravel-xampp-deployment-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com\" \/>\n<meta property=\"og:description\" content=\"Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"tutorialsmines.com\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-09T09:50:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-09T09:50:19+00:00\" \/>\n<meta name=\"author\" content=\"Maruti_Kr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Maruti_Kr\" \/>\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:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\"},\"author\":{\"name\":\"Maruti_Kr\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e\"},\"headline\":\"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide\",\"datePublished\":\"2026-02-09T09:50:18+00:00\",\"dateModified\":\"2026-02-09T09:50:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\"},\"wordCount\":378,\"commentCount\":0,\"keywords\":[\"deploy Laravel using htdocs\",\"GitHub clone Laravel project server\",\"how to deploy Laravel step by step\",\"install Laravel on Linux server\",\"Laravel Apache configuration\",\"Laravel application live setup\",\"Laravel composer install production\",\"Laravel deployment on Linux server\",\"Laravel deployment with GitHub\",\"Laravel environment setup production\",\"Laravel Linux hosting tutorial\",\"Laravel migration production server\",\"Laravel project hosting guide\",\"Laravel project live on server\",\"Laravel project production setup\",\"Laravel public folder setup\",\"Laravel server configuration tutorial\",\"Laravel virtual host setup\",\"Laravel XAMPP deployment Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\",\"url\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\",\"name\":\"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#website\"},\"datePublished\":\"2026-02-09T09:50:18+00:00\",\"dateModified\":\"2026-02-09T09:50:19+00:00\",\"author\":{\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e\"},\"breadcrumb\":{\"@id\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorialsmines.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#website\",\"url\":\"https:\/\/tutorialsmines.com\/blog\/\",\"name\":\"tutorialsmines.com\",\"description\":\"tutorialsmines blog site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorialsmines.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e\",\"name\":\"Maruti_Kr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f034f072d7301d08343a196599eef74e13fea2b75b55086c7dab4c93efb92ec5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f034f072d7301d08343a196599eef74e13fea2b75b55086c7dab4c93efb92ec5?s=96&d=mm&r=g\",\"caption\":\"Maruti_Kr\"},\"sameAs\":[\"https:\/\/tutorialsmines.com\/blog\"],\"url\":\"https:\/\/tutorialsmines.com\/blog\/author\/maruti_kr\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com","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:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/","og_locale":"en_US","og_type":"article","og_title":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com","og_description":"Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project","og_url":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/","og_site_name":"tutorialsmines.com","article_published_time":"2026-02-09T09:50:18+00:00","article_modified_time":"2026-02-09T09:50:19+00:00","author":"Maruti_Kr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Maruti_Kr","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#article","isPartOf":{"@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/"},"author":{"name":"Maruti_Kr","@id":"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e"},"headline":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide","datePublished":"2026-02-09T09:50:18+00:00","dateModified":"2026-02-09T09:50:19+00:00","mainEntityOfPage":{"@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/"},"wordCount":378,"commentCount":0,"keywords":["deploy Laravel using htdocs","GitHub clone Laravel project server","how to deploy Laravel step by step","install Laravel on Linux server","Laravel Apache configuration","Laravel application live setup","Laravel composer install production","Laravel deployment on Linux server","Laravel deployment with GitHub","Laravel environment setup production","Laravel Linux hosting tutorial","Laravel migration production server","Laravel project hosting guide","Laravel project live on server","Laravel project production setup","Laravel public folder setup","Laravel server configuration tutorial","Laravel virtual host setup","Laravel XAMPP deployment Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/","url":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/","name":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide - tutorialsmines.com","isPartOf":{"@id":"https:\/\/tutorialsmines.com\/blog\/#website"},"datePublished":"2026-02-09T09:50:18+00:00","dateModified":"2026-02-09T09:50:19+00:00","author":{"@id":"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e"},"breadcrumb":{"@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tutorialsmines.com\/blog\/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorialsmines.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub \u2013 Complete Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/tutorialsmines.com\/blog\/#website","url":"https:\/\/tutorialsmines.com\/blog\/","name":"tutorialsmines.com","description":"tutorialsmines blog site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorialsmines.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/1bbf82fe79564d58c87f7076d970a88e","name":"Maruti_Kr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsmines.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f034f072d7301d08343a196599eef74e13fea2b75b55086c7dab4c93efb92ec5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f034f072d7301d08343a196599eef74e13fea2b75b55086c7dab4c93efb92ec5?s=96&d=mm&r=g","caption":"Maruti_Kr"},"sameAs":["https:\/\/tutorialsmines.com\/blog"],"url":"https:\/\/tutorialsmines.com\/blog\/author\/maruti_kr\/"}]}},"_links":{"self":[{"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":1,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions\/486"}],"wp:attachment":[{"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorialsmines.com\/blog\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}