<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GitHub clone Laravel project server Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/github-clone-laravel-project-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/github-clone-laravel-project-server/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Mon, 09 Feb 2026 10:03:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</title>
		<link>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/</link>
					<comments>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 09 Feb 2026 10:03:25 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[deploy Laravel using htdocs]]></category>
		<category><![CDATA[GitHub clone Laravel project server]]></category>
		<category><![CDATA[how to deploy Laravel step by step]]></category>
		<category><![CDATA[install Laravel on Linux server]]></category>
		<category><![CDATA[Laravel Apache configuration]]></category>
		<category><![CDATA[Laravel application live setup]]></category>
		<category><![CDATA[Laravel composer install production]]></category>
		<category><![CDATA[Laravel deployment on Linux server]]></category>
		<category><![CDATA[Laravel deployment with GitHub]]></category>
		<category><![CDATA[Laravel environment setup production]]></category>
		<category><![CDATA[Laravel Linux hosting tutorial]]></category>
		<category><![CDATA[Laravel migration production server]]></category>
		<category><![CDATA[Laravel project hosting guide]]></category>
		<category><![CDATA[Laravel project live on server]]></category>
		<category><![CDATA[Laravel project production setup]]></category>
		<category><![CDATA[Laravel public folder setup]]></category>
		<category><![CDATA[Laravel server configuration tutorial]]></category>
		<category><![CDATA[Laravel virtual host setup]]></category>
		<category><![CDATA[Laravel XAMPP deployment Linux]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21790</guid>

					<description><![CDATA[<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 cloning it from GitHub and placing it inside the htdocs directory, which is commonly used in XAMPP or LAMP-based server setups. This tutorial is ideal for developers who prefer <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<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>



<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>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Prerequisites</h2>



<p>Before starting, ensure you have:</p>



<ul class="wp-block-list">
<li>A Linux server with SSH access</li>



<li>GitHub repository of your Laravel project</li>



<li>Apache/XAMPP or LAMP stack installed</li>



<li>PHP and Composer installed</li>



<li>Database access (MySQL/MariaDB)</li>



<li>Basic Linux command knowledge</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Connect to Your Linux Server</h2>



<p>Login via SSH from your local machine:</p>



<pre class="wp-block-code"><code>ssh username@server_ip</code></pre>



<p>Example:</p>



<pre class="wp-block-code"><code>ssh myeventadmin@your_server_ip</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Update Your Server</h2>



<p>Always update packages before setup:</p>



<pre class="wp-block-code"><code>sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Install Required Packages</h2>



<p>Install Apache, PHP, Git, Composer dependencies, and tools:</p>



<pre class="wp-block-code"><code>sudo apt install apache2 mysql-server unzip git curl -y</code></pre>



<p>Install PHP extensions required by Laravel:</p>



<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>



<p>Check PHP version:</p>



<pre class="wp-block-code"><code>php -v</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Install Composer</h2>



<pre class="wp-block-code"><code>cd ~
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer</code></pre>



<p>Verify installation:</p>



<pre class="wp-block-code"><code>composer -V</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Move to HTDOCS Directory</h2>



<p>Depending on your server setup, the htdocs directory may be located at:</p>



<pre class="wp-block-code"><code>/opt/lampp/htdocs</code></pre>



<p>or</p>



<pre class="wp-block-code"><code>/var/www/html</code></pre>



<p>Navigate to htdocs:</p>



<pre class="wp-block-code"><code>cd /opt/lampp/htdocs</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 6: Clone Laravel Project from GitHub</h2>



<pre class="wp-block-code"><code>sudo git clone https://github.com/username/project.git</code></pre>



<p>Move into project folder:</p>



<pre class="wp-block-code"><code>cd project</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 7: Set Folder Permissions</h2>



<pre class="wp-block-code"><code>sudo chown -R daemon:daemon /opt/lampp/htdocs/project
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache</code></pre>



<p><em>(If using Apache instead of XAMPP, replace daemon with www-data)</em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 8: Configure Environment File</h2>



<p>Create the environment file:</p>



<pre class="wp-block-code"><code>cp .env.example .env
nano .env</code></pre>



<p>Update important settings:</p>



<pre class="wp-block-code"><code>APP_NAME=Laravel
APP_ENV=production
APP_DEBUG=false
APP_URL=http://yourdomain.com</code></pre>



<p>Add your database credentials as well.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 9: Install Laravel Dependencies</h2>



<pre class="wp-block-code"><code>composer install</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 10: Generate Application Key</h2>



<pre class="wp-block-code"><code>php artisan key:generate</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 11: Create Database and Run Migration</h2>



<p>Login to MySQL:</p>



<pre class="wp-block-code"><code>sudo mysql</code></pre>



<p>Create database:</p>



<pre class="wp-block-code"><code>CREATE DATABASE laravel_db;
EXIT;</code></pre>



<p>Run migrations:</p>



<pre class="wp-block-code"><code>php artisan migrate</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 12: Configure Apache to Use Public Folder</h2>



<p>Edit Apache configuration:</p>



<pre class="wp-block-code"><code>sudo nano /opt/lampp/etc/extra/httpd-vhosts.conf</code></pre>



<p>Add:</p>



<pre class="wp-block-code"><code>&lt;VirtualHost *:80&gt;
    ServerName yourdomain.com
    DocumentRoot "/opt/lampp/htdocs/project/public"

    &lt;Directory "/opt/lampp/htdocs/project"&gt;
        AllowOverride All
        Require all granted
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre>



<p>Restart Apache/XAMPP:</p>



<pre class="wp-block-code"><code>sudo /opt/lampp/lampp restart</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 13: Test Laravel Application</h2>



<p>Open browser:</p>



<pre class="wp-block-code"><code>http:&#47;&#47;your_server_ip/project/public</code></pre>



<p>or</p>



<pre class="wp-block-code"><code>http:&#47;&#47;yourdomain.com</code></pre>



<p>If everything is configured properly, your Laravel website will be live.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Important Production Tips</h2>



<ul class="wp-block-list">
<li>Always set <code>APP_DEBUG=false</code></li>



<li>Never make <code>.env</code> publicly accessible</li>



<li>Ensure correct folder permissions</li>



<li>Use SSL (HTTPS) for live websites</li>



<li>Regularly pull updates from GitHub</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<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 — cloning the repository, configuring environment variables, setting permissions, and configuring Apache — you can successfully deploy your Laravel application in a production-ready environment.</p>



<p>This method is especially useful for developers who prefer traditional htdocs-based hosting environments while maintaining version control through GitHub.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
