<?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>Laravel Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/laravel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 03 Oct 2021 23:51:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Laravel on Debian 11?</title>
		<link>https://www.osradar.com/how-to-install-laravel-debian-11/</link>
					<comments>https://www.osradar.com/how-to-install-laravel-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 08 Oct 2021 23:51:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32502</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Laravel on Debian 11. This powerful PHP framework is one of the most popular and innovative ones out there, that’s why you should know how to install it and get it ready for the start of your project. What is Laravel? Laravel is one [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-debian-11/">How to install Laravel on Debian 11?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Laravel on Debian 11. This powerful PHP framework is one of the most popular and innovative ones out there, that’s why you should know how to install it and get it ready for the start of your project.</p>



<h2 id="what-is-laravel">What is Laravel?</h2>



<p><a href="https://laravel.com/" target="_blank" rel="noreferrer noopener">Laravel </a>is one of the easiest open-source frameworks for PHP to assimilate. One of its advantages is that it has a much easier learning curve than other web and application development tools. It was created in 2011 and is heavily influenced by frameworks such as Ruby on Rails, Sinatra, and ASP.NET MVC.</p>



<p>With Laravel, we will have available other tools that together make up the power of Laravel.</p>



<ul><li>Blade: A powerful template manager where we can manage PHP variables directly in the view.</li><li>Eloquent: Laravel’s database system, for writing and retrieving data. So we don’t have to work directly with SQL code.</li><li>Routing: LAravel has its own routing system that helps us to set up the routing of our pages with GET or POST methods.</li></ul>



<p>Besides this, Laravel is one of the best-documented frameworks that exist and with an active community willing to give support to the newbie.</p>



<p>So, let’s get started.</p>



<h2 id="install-laravel-on-debian-11">Install Laravel on Debian 11</h2>



<h3 id="installing-the-laravel-requisites">Installing the Laravel requisites</h3>



<p>First, you need to install PHP and some of its modules and the <code>unzip</code> package.</p>



<pre class="wp-block-code"><code>sudo apt install php php-bcmath php-json php-mbstring php-pdo php-tokenizer php-xml php-pear php-zip php-zip unzip
</code></pre>



<h3 id="install-php-composer-on-debian-11">Install PHP Composer on Debian 11</h3>



<p>The installation of laravel can be done without problems using PHP Composer. So we have to install it and keep it up to date.</p>



<p>For that, we invite you to read our post about it:</p>



<p><a href="https://www.osradar.com/install-php-composer-debian/" target="_blank" rel="noreferrer noopener">How to install PHP Composer on Debian 11?</a></p>



<p>Once it is installed and updated, we can follow the procedures.</p>



<h3 id="install-laravel-on-debian-11-1">Install Laravel on Debian 11</h3>



<p>Now with the help of Composer, we have to install Laravel. To do this, run the following command</p>



<pre class="wp-block-preformatted">composer create-project --prefer-dist laravel/laravel [project_name]</pre>



<p>Where the last value is where you have to specify the name of your project.</p>



<p>So, Composer will start with downloading and installing all Laravel dependencies. When finished, you will see an output screen like this</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="610" height="160" src="https://www.osradar.com/wp-content/uploads/2021/10/1-1.png" alt="1.- Installing Laravel on Debian 11" class="wp-image-32571" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-1.png 610w, https://www.osradar.com/wp-content/uploads/2021/10/1-1-300x79.png 300w" sizes="(max-width: 610px) 100vw, 610px" /><figcaption>1.- Installing Laravel on Debian 11</figcaption></figure>



<p>This will create a folder with the name of your project that we need to access.</p>



<pre class="wp-block-preformatted">cd example</pre>



<p>And there will be all our Laravel working and ready for us to start creating code.</p>



<p>If you want to check how the project is running and also if you want to verify the installation, you can run</p>



<pre class="wp-block-preformatted">php artisan serve</pre>



<p>Then open a web browser and go to <code>http://localhost:8000</code> and you’ll see an image like this</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/10/3-1-1024x511.png" alt="3.- Laravel on Debian 11" class="wp-image-32569" srcset="https://www.osradar.com/wp-content/uploads/2021/10/3-1-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/3-1-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/3-1-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/3-1-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/3-1-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/3-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Laravel on Debian 11</figcaption></figure>



<p>In case Laravel has been installed on a server or another computer over the network, you can specify that it is accessible from another computer.</p>



<pre class="wp-block-preformatted">php artisan serve --host=0.0.0.0.0 --port=1234</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="808" height="156" src="https://www.osradar.com/wp-content/uploads/2021/10/2-1.png" alt="2.- Serve the Laravel project" class="wp-image-32570" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-1.png 808w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-768x148.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/2-1-696x134.png 696w" sizes="(max-width: 808px) 100vw, 808px" /><figcaption>2.- Serve the Laravel project</figcaption></figure>



<p>This way you can access the computer and with the <code>1234</code> port you can change these values to your liking.</p>



<h2 id="conclusion">Conclusion</h2>



<p>During this post, you have learned how to install laravel on Debian 11 so you can start developing cool applications that you can take to production. So, this is a powerful framework that you need to take full advantage of.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-debian-11/">How to install Laravel on Debian 11?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-laravel-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laragon on Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-laragon-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-laragon-on-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sat, 30 Jan 2021 22:49:00 +0000</pubDate>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[laragon]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28083</guid>

					<description><![CDATA[<p>Hi! We have previously discussed options for setting up a web server on Windows 10. Indeed, we discussed alternatives such as XAMP, WampServer and EasyPHP Devserver. Each of them has its advantages and disadvantages. However, a common point is that each solution incorporates the necessary elements to successfully run a web server. Well, today we [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laragon-on-windows-10/">How to install Laragon on Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi! We have previously discussed options for setting up a web server on Windows 10. Indeed, we discussed alternatives such as <a href="https://www.osradar.com/how-to-install-xampp-on-windows-10/" target="_blank" rel="noreferrer noopener">XAMP,</a> <a href="https://www.osradar.com/how-to-install-wampserver-on-windows-10/" target="_blank" rel="noreferrer noopener">WampServer</a> and <a href="https://www.osradar.com/simply-set-up-a-web-server-with-easyphp-devserver/" target="_blank" rel="noreferrer noopener">EasyPHP Devserver.</a> Each of them has its advantages and disadvantages. However, a common point is that each solution incorporates the necessary elements to successfully run a web server. Well, today we take a look at <a href="https://laragon.org/" target="_blank" rel="noreferrer noopener">Laragon.</a> As its name suggests, it was originally oriented to <a href="https://laravel.com/" target="_blank" rel="noreferrer noopener">Laravel.</a> Since its features optimize the use of this framework. However, it can be used for any PHP project. In addition, it has some features that make it unique. Read on to learn how to install Laragon on Windows 10.</p>



<h2>Main features of Laragon for Windows 10</h2>



<p>As mentioned, this toolkit has distinctive elements. First, it incorporates <strong>Apache, MariaDB, PHP, phpMyAdmin, cmder, Memcached</strong> and much more. In addition, it allows the creation of automatic Virtual Hosts for projects. That is to say, if we create a project called <em>laravel-project.dev</em>; then it is enough to enter that address in any browser to see it running. It also allows you to use pretty URLs. That is, it generates the url <em>laravel.test </em>instead of <em>localhost/larave</em>l. Therefore, it is not necessary to modify any file. Likewise, its operation is portable. Consequently, you can move the Laragon folder to another computer. You can even upload it to cloud hosting services. And continue using it on those devices. </p>



<p>It is also configured inside containers, so it runs in isolation from the rest of the system. This guarantees greater stability and lower resource usage. Additionally, it allows you to create projects (WordPress, Laravel, Drupal, etc.) with just one click. &nbsp;You can add&nbsp;<strong>git, phpmyadmin, Node.js/MongoDB, Python/Django/Flask/Postgres, Ruby, Java, Go</strong>&nbsp;using&nbsp;<em>Tools&gt;Quick add</em>.</p>



<h2>Laragon versions</h2>



<p>Laragon is an open source project available only for Windows. So its operation is optimized for this operating system. In fact, the developers claim that the Laragon Core consumes only 4 MB of RAM. So far, 3 versions of the program have been released.</p>



<ul><li>Laragon Full: Apache 2.4, Nginx, MySQL 5.7, PHP 7.2, Redis, Memcached, Node.js 11, npm, yarn, git.</li><li>Lite version: Don’t include Node.js 11, npm, yarn, git but you can add them easily using <em>Tools&gt;Quick add</em>.</li><li>Portable version: PHP 5.4, MySQL 5.1 &#8211; Good for getting started with PHP, then you can add newer versions of PHP/MySQL easily later.</li></ul>



<h2>How to download and install Laragon for Windows 10.</h2>



<p>We have seen the different versions of this tool. Well, for the purposes of this tutorial we will install the full version. You can download it for free from this <a href="https://laragon.org/download/" target="_blank" rel="noreferrer noopener">link.</a> The installation of the program is as usual as any other.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="499" height="387" src="https://www.osradar.com/wp-content/uploads/2021/01/lara.png" alt="Starting Laragon installation" class="wp-image-28085" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara.png 499w, https://www.osradar.com/wp-content/uploads/2021/01/lara-300x233.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Starting Laragon installation</figcaption></figure>



<p>From there, just follow the installation windows. However, you must check the <em>Auto virtual hosts </em>option to be able to enjoy this functionality.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="499" height="387" src="https://www.osradar.com/wp-content/uploads/2021/01/lara2.png" alt="Enabling the installation of Auto virtual hosts " class="wp-image-28087" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara2.png 499w, https://www.osradar.com/wp-content/uploads/2021/01/lara2-300x233.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Enabling the installation of Auto virtual hosts</figcaption></figure>



<p>Then wait while the installation process completes. Finally, you can launch the app.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="499" height="387" src="https://www.osradar.com/wp-content/uploads/2021/01/lara3.png" alt="Finalizing the installation of Laragon. " class="wp-image-28089" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara3.png 499w, https://www.osradar.com/wp-content/uploads/2021/01/lara3-300x233.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Finalizing the installation of Laragon.</figcaption></figure>



<h2>Adding features in Laragon.</h2>



<p>As mentioned, Laragon comes ready to use. In fact, it incorporates MySQL. It also incorporates HeidiSQL to manage it. However, you can install another MySQL manager. In this opportunity we will install PHPMyAdmin. It is a simple process that we will do with a single click. Since the tool downloads, unzips and places the file in the necessary location. Well, you just have to right-click on the app console. Then follow the following path:</p>



<pre class="wp-block-preformatted">Tools&gt;Quick add&gt;phpmyadmin</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="953" height="742" src="https://www.osradar.com/wp-content/uploads/2021/01/lara4.jpg" alt="Adding phpmyadmin to Laragon" class="wp-image-28091" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara4.jpg 953w, https://www.osradar.com/wp-content/uploads/2021/01/lara4-300x234.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara4-768x598.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara4-696x542.jpg 696w" sizes="(max-width: 953px) 100vw, 953px" /><figcaption>Adding phpmyadmin to Laragon</figcaption></figure>



<p>As mentioned above, the process is carried out automatically.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="872" height="558" src="https://www.osradar.com/wp-content/uploads/2021/01/lara5.jpg" alt="Downloading and installing phpmyadmin" class="wp-image-28092" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara5.jpg 872w, https://www.osradar.com/wp-content/uploads/2021/01/lara5-300x192.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara5-768x491.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara5-696x445.jpg 696w" sizes="(max-width: 872px) 100vw, 872px" /><figcaption>Downloading and installing phpmyadmin</figcaption></figure>



<p>After the installation is finished, we will finish the PhpMyAdmin configuration. The first thing you have to do is to start all Laragon services. With this in mind, click on <strong>Start All.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="636" height="420" src="https://www.osradar.com/wp-content/uploads/2021/01/lara6.png" alt="Starting up Laragon's services" class="wp-image-28094" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara6.png 636w, https://www.osradar.com/wp-content/uploads/2021/01/lara6-300x198.png 300w" sizes="(max-width: 636px) 100vw, 636px" /><figcaption>Starting up Laragon&#8217;s services</figcaption></figure>



<p>Then paste the following address into a web browser:</p>



<pre class="wp-block-preformatted"><code>http://localhost/phpmyadmin</code></pre>



<p>The main phpMyAdmin window will be displayed immediately. If using a local development environment, then use <em>root</em> as the username and leave the password blank.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="https://www.osradar.com/wp-content/uploads/2021/01/lara9-1024x787.png" alt="Configuring phmyadmin credentials" class="wp-image-28096" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara9-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/lara9-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara9-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara9-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/lara9-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/lara9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Configuring phmyadmin credentials</figcaption></figure>



<p>After a few moments the tool will be ready for use.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="https://www.osradar.com/wp-content/uploads/2021/01/lara10-1024x787.png" alt="phpmyadmin running on Laragon" class="wp-image-28098" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara10-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/lara10-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara10-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara10-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/lara10-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/lara10.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>phpmyadmin running on Laragon</figcaption></figure>



<p>We are ready to create our first project in Laragon.</p>



<h2>Creating a project in Laragon</h2>



<p>As mentioned, Laragon offers to create a project with a single click. It is possible to generate any PHP related server. But this time we will create a Laravel project. With this in mind, right-click on the mouse and follow this path:</p>



<pre class="wp-block-preformatted">Quick app&gt;Laravel</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="845" height="643" src="https://www.osradar.com/wp-content/uploads/2021/01/lara11.jpg" alt="Creating a new Laravel project. " class="wp-image-28101" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara11.jpg 845w, https://www.osradar.com/wp-content/uploads/2021/01/lara11-300x228.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara11-768x584.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara11-696x530.jpg 696w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption>Creating a new Laravel project.</figcaption></figure>



<p>Next, assign a name to the project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="636" height="420" src="https://www.osradar.com/wp-content/uploads/2021/01/lara12.png" alt="Assigning a name to the new project. " class="wp-image-28102" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara12.png 636w, https://www.osradar.com/wp-content/uploads/2021/01/lara12-300x198.png 300w" sizes="(max-width: 636px) 100vw, 636px" /><figcaption>Assigning a name to the new project.</figcaption></figure>



<p>Then the download, installation and configuration of the new project will start. This is done automatically. In addition, it may take a few minutes depending on the speed of the connection.</p>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="979" height="512" src="https://www.osradar.com/wp-content/uploads/2021/01/lara13.png" alt="" data-id="28103" data-full-url="https://www.osradar.com/wp-content/uploads/2021/01/lara13.png" data-link="https://www.osradar.com/?attachment_id=28103" class="wp-image-28103" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara13.png 979w, https://www.osradar.com/wp-content/uploads/2021/01/lara13-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara13-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara13-696x364.png 696w" sizes="(max-width: 979px) 100vw, 979px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="979" height="512" src="https://www.osradar.com/wp-content/uploads/2021/01/lara14.png" alt="" data-id="28104" data-full-url="https://www.osradar.com/wp-content/uploads/2021/01/lara14.png" data-link="https://www.osradar.com/?attachment_id=28104" class="wp-image-28104" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara14.png 979w, https://www.osradar.com/wp-content/uploads/2021/01/lara14-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara14-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara14-696x364.png 696w" sizes="(max-width: 979px) 100vw, 979px" /></figure></li></ul></figure>



<p>Finally, you can launch the project page. This can be done in two ways: by right-clicking the mouse and following the next path:</p>



<pre class="wp-block-preformatted">www&gt;osradar</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="845" height="578" src="https://www.osradar.com/wp-content/uploads/2021/01/lara15.jpg" alt="" class="wp-image-28105" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara15.jpg 845w, https://www.osradar.com/wp-content/uploads/2021/01/lara15-300x205.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara15-768x525.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara15-218x150.jpg 218w, https://www.osradar.com/wp-content/uploads/2021/01/lara15-696x476.jpg 696w" sizes="(max-width: 845px) 100vw, 845px" /></figure>



<p>Please remember to replace <em>osradar</em> with the name of your project. On the other hand, Laragon generated the following pretty URL. So just add it in the address bar of the web browser.</p>



<pre class="wp-block-preformatted">http://osradar.test</pre>



<p>Either way, you will see the following in the web browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="https://www.osradar.com/wp-content/uploads/2021/01/lara16-1024x787.png" alt="" class="wp-image-28107" srcset="https://www.osradar.com/wp-content/uploads/2021/01/lara16-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/lara16-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/lara16-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/lara16-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/lara16-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/lara16.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>This way we have seen how to install Laragon on Windows 10. So long!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laragon-on-windows-10/">How to install Laragon on Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-laragon-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laravel on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-laravel-ubuntu-2004/</link>
					<comments>https://www.osradar.com/install-laravel-ubuntu-2004/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 10 May 2020 22:29:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20239</guid>

					<description><![CDATA[<p>As PHP is one of the most successful and popular programming languages out there, it is logical to find many different frameworks. Some of them are more simple than others and among them stands out the one that for many is the framework of the readable code. So, in this post, you will learn how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-ubuntu-2004/">How to install Laravel on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>As PHP is one of the most successful and popular programming languages out there, it is logical to find many different frameworks. Some of them are more simple than others and among them stands out the one that for many is the framework of the readable code. So, in this post, you will learn <strong>how to install Laravel on Ubuntu 20.04</strong></p>



<p>The team responsible for the development and maintenance of <a rel="noreferrer noopener" href="https://laravel.com/" target="_blank">Laravel</a> defines it as the <strong>PHP framework for artisans</strong>. This is because Laravel respects the clear and legible syntax of the code. In addition to this, it has a huge user community that is constantly checking the source code for errors.</p>



<p>Laravel has grown so much that there is a whole ecosystem of applications and tools to continue taking advantage of the framework. So we are talking about a community PHP framework that behaves professionally.</p>



<p>In the same way, some distinctive elements of Laravel are <strong>Blade</strong> for creating the templates, <strong>Eloquent</strong> for integrating the database correctly, and <strong>Artisan</strong> as a command interpreter.</p>



<h2>Laravel Prerequisites</h2>



<p>Laravel is a PHP framework, so it is obvious that it has to be installed. But not only that, but it also requires certain modules for the execution to be complete.</p>



<p>These modules have to be present on your computer if you want Laravel to install correctly:</p>



<ul><li>BCMath PHP Extension</li><li>Ctype PHP Extension</li><li>JSON PHP Extension</li><li>Mbstring PHP Extension</li><li>OpenSSL PHP Extension</li><li>PDO PHP Extension</li><li>Tokenizer PHP Extension</li><li>XML PHP Extension</li></ul>



<p>So, let us start.</p>



<h2>Install Laravel on Ubuntu 20.04</h2>



<h3>Getting Composer on Ubuntu 20.04</h3>



<p>The safest and most recommended method to install Laravel is to use the PHP dependency manager, Composer.</p>



<p>So, to install it you can read our post:</p>



<p><a href="https://www.osradar.com/install-php-composer-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How to install PHP Composer on Ubuntu 20.04?</a></p>



<p>And if you want more information about how to use it, you can also read:</p>



<p><a href="https://www.osradar.com/using-composer-on-linux/" target="_blank" rel="noreferrer noopener">Using Composer on Linux</a></p>



<p>When Composer is ready and configured, you can continue.</p>



<h3>Installing Laravel on Ubuntu 20.04</h3>



<p>Now it&#8217;s time to install Laravel. To do this, we will use Composer.</p>



<p>So, run the following command on a terminal:</p>



<pre class="wp-block-preformatted">:~$ composer create-project --prefer-dist laravel/laravel example</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="530" src="https://www.osradar.com/wp-content/uploads/2020/05/1-5-1024x530.png" alt="1.- Installing Laravel on Ubuntu 20.04" class="wp-image-20240" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-5-1024x530.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/1-5-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-5-768x398.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-5-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/1-5-1068x553.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/1-5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Laravel on Ubuntu 20.04</figcaption></figure>



<p>You can change the word <strong>example</strong> to the name of your project.</p>



<p>Once you have typed the Composer command it will do the job. It will check each of Laravel&#8217;s dependencies and start downloading it. As well as its directory structure.</p>



<p>You can open the folder with your favorite text editor and start working.</p>



<p>To check that everything is right, you can serve the project. If you have installed Laravel on a local computer, run it:</p>



<pre class="wp-block-preformatted">:~$ cd example<br>:~$ php artisan serve</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="149" src="https://www.osradar.com/wp-content/uploads/2020/05/2-7-1024x149.png" alt="2.- Serve the Laravel Project" class="wp-image-20241" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-7-1024x149.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/2-7-300x44.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-7-768x112.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-7-696x102.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-7.png 1069w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Serve the Laravel Project</figcaption></figure>



<p>Remember that instead of example you have to put the name of your project. This will make your project available at <code>http://localhost:8000</code></p>



<p>However, if you have installed Laravel on another computer remotely, such as on a LAN, you can specify a host and port specifically.</p>



<pre class="wp-block-preformatted">:~$ php artisan serve --host=192.168.250.20 --port=1234</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="997" height="181" src="https://www.osradar.com/wp-content/uploads/2020/05/3-6.png" alt="3.- Serve the Laravel project with one specific host and port" class="wp-image-20242" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-6.png 997w, https://www.osradar.com/wp-content/uploads/2020/05/3-6-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-6-768x139.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-6-696x126.png 696w" sizes="(max-width: 997px) 100vw, 997px" /><figcaption>3.- Serve the Laravel project with one specific host and port</figcaption></figure>



<p>I have chosen these values for this post, you can change them with confidence. Also, the chosen port has to be available in the Firewall.</p>



<p>In any case, when you open your browser and go to where the Laravel project is being served, you will see the following:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2020/05/4-5-1024x502.png" alt="4.- Laravel working" class="wp-image-20243" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/4-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/4-5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/4-5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/4-5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/4-5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Laravel working</figcaption></figure>



<p>This indicates that you are ready to start developing.</p>



<h2>Conclusion</h2>



<p>Laravel is a fairly popular PHP framework with which you can create many fantastic web applications but you have to start by knowing how to install it.</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-ubuntu-2004/">How to install Laravel on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-laravel-ubuntu-2004/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laravel on CentOS 8?</title>
		<link>https://www.osradar.com/how-to-install-laravel-on-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-laravel-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 01 Oct 2019 23:05:04 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14030</guid>

					<description><![CDATA[<p>We recently talked about CakePHP on CentOS 8. It is a pretty good PHP framework and fast in terms of generating the application as such. However, it is not the only one that exists. We also have Laravel which is another framework more powerful but just as fast to generate functional applications. Well, today you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-on-centos-8/">How to install Laravel on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We recently talked about <a href="https://www.osradar.com/install-cakephp-centos-8/" target="_blank" rel="noopener noreferrer">CakePHP on CentOS 8</a>. It is a pretty good PHP framework and fast in terms of generating the application as such. However, it is not the only one that exists. We also have Laravel which is another framework more powerful but just as fast to generate functional applications. Well, today you will learn with this post step by step how to install Laravel on CentOS 8. With this combination, you will be able to develop web applications in a comfortable and stable environment.</p>
<p>The team responsible for the development and maintenance of <a href="https://laravel.com/" target="_blank" rel="noopener noreferrer">Laravel</a> defines it as the <strong>PHP framework for artisans</strong>. This is because Laravel respects the clear and legible syntax of the code. In addition to this, it has a huge user community that is constantly checking the source code for errors.</p>
<p>Laravel has grown so much that there is a whole ecosystem of applications and tools to continue taking advantage of the framework. So we are talking about a community PHP framework that behaves professionally.</p>
<p>In the same way, some distinctive elements of Laravel are <strong>Blade</strong> for creating the templates, <strong>Eloquent</strong> for integrating the database correctly and <strong>Artisan</strong> as a command interpreter.</p>
<p>Now let us install Laravel on CentOS 8.</p>


<h2>Install Laravel on CentOS 8</h2>



<p>While it is true that to start developing in Laravel is not necessary to have a web server running, it is advisable to have it. Because once we have the application ready, we can deploy it locally and know how it really works. Also, if we are going to work with a PHP framework is because we will use database and of course the language as such. So, I recommend you to install LAMP on CentOS 8 first.</p>



<p><a href="https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/" target="_blank" rel="noreferrer noopener" aria-label="How to install LAMP on CentOS 8? (opens in a new tab)">How to install LAMP on CentOS 8?</a></p>



<p>Just, install the following PHP extensions:</p>



<ul><li>BCMath PHP Extension</li><li>Ctype PHP Extension</li><li>JSON PHP Extension</li><li>Mbstring PHP Extension</li><li>OpenSSL PHP Extension</li><li>PDO PHP Extension</li><li>Tokenizer PHP Extension</li><li>XML PHP Extension</li></ul>



<p>Then, you have to continue with the rest of the steps.</p>



<h3>Install composer on Linux</h3>



<p>Similar to CakePHP, the fastest and most direct way to install Laravel is through <a href="https://getcomposer.org/" target="_blank" rel="noreferrer noopener" aria-label="Composer (opens in a new tab)">Composer</a>. Then, you have to install Composer. For this, we have a very detailed tutorial where we explain the process.</p>



<p><a href="https://www.osradar.com/how-to-install-composer-on-linux/" target="_blank" rel="noreferrer noopener" aria-label="How to install Composer on CentOS 8? (opens in a new tab)">How to install Composer on CentOS 8?</a></p>



<p>With composer running, it is time to install Composer on CentOS 8.</p>



<h3>Install Laravel on CentOS 8</h3>



<p>Now we can install Laravel, for that, we will use <g class="gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" id="4" data-gr-id="4">composer</g>. In a terminal session, run the following command as the regular user:</p>



<pre class="wp-block-preformatted">:~$ composer create-project --prefer-dist laravel/laravel example</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="555" src="https://www.osradar.com/wp-content/uploads/2019/09/1-31-1024x555.png" alt="1.- Installing Laravel on CentOS 8" class="wp-image-14096" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-31-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-31-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-31-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-31-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-31-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/1-31-775x420.png 775w, https://www.osradar.com/wp-content/uploads/2019/09/1-31.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Laravel on CentOS 8</figcaption></figure>



<p>You can change example by the name of your project.</p>



<p>To check the progress of your project you can use it. To do this, use the following command:</p>



<pre class="wp-block-preformatted">:~$ cd example
:~$ php artisan serve</pre>



<p>This will make your project available at <code>http://localhost:8000</code> but you can modify the command to specify the host and port. Remember that the port must be open in the firewall. Suppose we continue with port 8000 but with another host.</p>



<pre class="wp-block-preformatted">:~# firewall-cmd --add-port=8000/tcp --permanent --zone=public
success
:~# firewall-cmd --reload
success</pre>



<p>Again, serve the project.</p>



<pre class="wp-block-preformatted">:~$ php artisan serve --host=192.168.250.13 --port=8000</pre>



<figure class="wp-block-image"><img loading="lazy" width="947" height="148" src="https://www.osradar.com/wp-content/uploads/2019/09/2-30.png" alt="2.- Serve the project" class="wp-image-14097" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-30.png 947w, https://www.osradar.com/wp-content/uploads/2019/09/2-30-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-30-768x120.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-30-696x109.png 696w" sizes="(max-width: 947px) 100vw, 947px" /><figcaption>2.- Serve the project</figcaption></figure>



<p>Next, open your web browser and go to your host. You will see the following:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="499" src="https://www.osradar.com/wp-content/uploads/2019/09/3-27-1024x499.png" alt="3.- Laravel on CentOS 8" class="wp-image-14098" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-27-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/3-27-861x420.png 861w, https://www.osradar.com/wp-content/uploads/2019/09/3-27.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Laravel on CentOS 8</figcaption></figure>



<p>And that is it.</p>



<h2>Conclusion</h2>



<p>With Laravel you can make web applications in an elegant way with a clean and legible source code. In this sense, the ecosystem surrounding Laravel is something more complex and robust than other frameworks such as <a href="https://www.osradar.com/install-cakephp-centos-8/" target="_blank" rel="noreferrer noopener" aria-label="CakePHP (opens in a new tab)">CakePHP</a>. And as you&#8217;ve learned today, installing it on CentOS 8 is not something that should scare us.</p>



<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-on-centos-8/">How to install Laravel on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-laravel-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laravel PHP Framework on OpenSUSE 15?</title>
		<link>https://www.osradar.com/install-laravel-php-framework-opensuse-15/</link>
					<comments>https://www.osradar.com/install-laravel-php-framework-opensuse-15/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 09 Jan 2019 02:33:25 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9052</guid>

					<description><![CDATA[<p>OpenSUSE is a Linux distribution, sponsored by SUSE. It is a great new distribution, stable and with outstanding tools like Yast. That&#8217;s why more and more developers are using it as their main system, which indicates its broad functionality. So, I will teach you how to install Laravel PHP Framework on OpenSUSE 15. As you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-php-framework-opensuse-15/">How to install Laravel PHP Framework on OpenSUSE 15?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OpenSUSE is a Linux distribution, sponsored by SUSE. It is a great new distribution, stable and with outstanding tools like Yast. That&#8217;s why more and more developers are using it as their main system, which indicates its broad functionality. So, I will teach you how to install Laravel PHP Framework on OpenSUSE 15.</p>
<p>As you know, we like Laravel, and that&#8217;s why we talked about it <a href="https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/" target="_blank" rel="noopener">here</a>. In case you don&#8217;t know, <a href="https://laravel.com" target="_blank" rel="noopener">Laravel</a> is a <a href="https://www.osradar.com/tag/php/" target="_blank" rel="noopener">PHP</a> framework that pays a lot of mind to the application code. That is to say, it stands out for being very understandable to the user, without leaving aside the speed and security of the data.</p>
<p>So, let&#8217;s start to install Laravel PHP Framework on OpenSUSE 15. It&#8217;s simple.</p>
<h2>0. Prerequisites</h2>
<p>The installation of Laravel, should not cost much work, however, there are a series of minimum requirements to be able to do the procedure in the best possible way. First of all, it is necessary to know the Linux terminal.</p>
<p>On the other hand, your user must be able to use sudo because packages have to be installed and permission as root is required.</p>
<p>Finally, your computer must be able to run PHP and Apache. Don&#8217;t worry, any modern computer should.</p>
<h2>1. Upgrade OpenSUSE</h2>
<p>The first step to install Laravel PHP on OpenSUSE 15 is to upgrade the operating system. It is recommended to do this at all times.</p>
<pre class="">:~$ sudo zypper up</pre>
<p><figure id="attachment_9062" aria-describedby="caption-attachment-9062" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9062" src="https://www.osradar.com/wp-content/uploads/2019/01/1-7.png" alt="1.- Upgrade OpenSUSE" width="1365" height="260" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-7.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/1-7-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-7-768x146.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-7-1024x195.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-7-1068x203.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9062" class="wp-caption-text">1.- Upgrade OpenSUSE</figcaption></figure></p>
<p>With this your system will have the latest security patches and will be more robust.</p>
<h2>2. Install Apache web server</h2>
<p>Now you need to install Apache to be able to work more comfortably on your project. To do this, run on a terminal:</p>
<pre class="">:~$ sudo zypper in apache2</pre>
<p><figure id="attachment_9063" aria-describedby="caption-attachment-9063" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9063" src="https://www.osradar.com/wp-content/uploads/2019/01/2-6.png" alt="2.- Install Apache" width="1365" height="422" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-6.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-768x237.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-1024x317.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-1068x330.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-1359x420.png 1359w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9063" class="wp-caption-text">2.- Install Apache</figcaption></figure></p>
<p>Next, enable and start the service.</p>
<pre class="">:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2</pre>
<p><figure id="attachment_9064" aria-describedby="caption-attachment-9064" style="width: 1069px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9064" src="https://www.osradar.com/wp-content/uploads/2019/01/3-6.png" alt="3.- Start Apache" width="1069" height="187" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-6.png 1069w, https://www.osradar.com/wp-content/uploads/2019/01/3-6-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-6-768x134.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-6-1024x179.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-6-1068x187.png 1068w" sizes="(max-width: 1069px) 100vw, 1069px" /><figcaption id="caption-attachment-9064" class="wp-caption-text">3.- Start Apache</figcaption></figure></p>
<p>Set the firewall rule for Apache.</p>
<pre class="">:~$ sudo firewall-cmd --add-service=http --permanent
:~$ sudo firewall-cmd --reload</pre>
<p><figure id="attachment_9066" aria-describedby="caption-attachment-9066" style="width: 788px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9066" src="https://www.osradar.com/wp-content/uploads/2019/01/4-7.png" alt="4.- Set the firewall rule" width="788" height="178" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-7.png 788w, https://www.osradar.com/wp-content/uploads/2019/01/4-7-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-7-768x173.png 768w" sizes="(max-width: 788px) 100vw, 788px" /><figcaption id="caption-attachment-9066" class="wp-caption-text">4.- Set the firewall rule</figcaption></figure></p>
<p>Now, open your web browser and go to http://IP_SERVER. You will see this.</p>
<p><figure id="attachment_9067" aria-describedby="caption-attachment-9067" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9067" src="https://www.osradar.com/wp-content/uploads/2019/01/5-7.png" alt="5.- Apache default page" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9067" class="wp-caption-text">5.- Apache default page</figcaption></figure></p>
<p>The image says we don&#8217;t have permission to access Apache&#8217;s root. Don&#8217;t worry, that&#8217;s OpenSUSE policy and for now I won&#8217;t modify it. So, Apache is installed.</p>
<h2>2. Install MariaDB</h2>
<p>If you are going to develop in Laravel, you will need a database manager. Laravel supports several, but I will install MariaDB.</p>
<pre class="">:~$ sudo zypper in mariadb</pre>
<p><figure id="attachment_9068" aria-describedby="caption-attachment-9068" style="width: 1038px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9068" src="https://www.osradar.com/wp-content/uploads/2019/01/6-6.png" alt="6.- Install MariaDB" width="1038" height="317" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-6.png 1038w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-768x235.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-6-1024x313.png 1024w" sizes="(max-width: 1038px) 100vw, 1038px" /><figcaption id="caption-attachment-9068" class="wp-caption-text">6.- Install MariaDB</figcaption></figure></p>
<p>When the installation is complete. It is necessary to start the MariaDB service. Then, it is time to define a root password using the <code>mysql_secure_installation</code> script.</p>
<pre class="">:~$ sudo systemctl enable mariadb
:~$ sudo systemctl start mariadb</pre>
<p><figure id="attachment_9069" aria-describedby="caption-attachment-9069" style="width: 1091px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9069" src="https://www.osradar.com/wp-content/uploads/2019/01/7-6.png" alt="7.- Start the MariaDB service" width="1091" height="173" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-6.png 1091w, https://www.osradar.com/wp-content/uploads/2019/01/7-6-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-6-768x122.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-6-1024x162.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/7-6-1068x169.png 1068w" sizes="(max-width: 1091px) 100vw, 1091px" /><figcaption id="caption-attachment-9069" class="wp-caption-text">7.- Start the MariaDB service</figcaption></figure></p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_9070" aria-describedby="caption-attachment-9070" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9070" src="https://www.osradar.com/wp-content/uploads/2019/01/8-5.png" alt="8.- Using mysql_secure_installation script" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/8-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/8-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/8-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/8-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9070" class="wp-caption-text">8.- Using mysql_secure_installation script</figcaption></figure></p>
<p>After defining the root password, you will be asked some questions regarding the configuration of the MariaDB server. You can answer as you like, I did it this way.</p>
<pre class="">Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
</pre>
<h2>3. Install PHP</h2>
<p>The latest stable version of Laravel requires at least PHP 7.1. It&#8217;s a good version. In OpenSUSE 15 version 7.2 is available via official repositories. So there are no problems.</p>
<pre class="">:~$ sudo zypper in php7 php7-openssl php7-pdo php7-mbstring php7-tokenizer php7-xmlreader php7-phar php7-zip php7-xmlwriter php7-ctype php7-json php7-mysql</pre>
<p><figure id="attachment_9072" aria-describedby="caption-attachment-9072" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9072" src="https://www.osradar.com/wp-content/uploads/2019/01/9-4.png" alt="9.- Insall PHP" width="1365" height="466" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-4.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-768x262.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-1024x350.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-1068x365.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-1230x420.png 1230w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9072" class="wp-caption-text">9.- Insall PHP</figcaption></figure></p>
<p>As you can see, I have also installed some PHP modules required by Laravel.</p>
<p>Then, enable PHP module and restart Apache2.</p>
<pre class="">:~$ sudo a2enmod php7
:~$ sudo systemctl apache2</pre>
<h2>4. Install Laravel PHP Framework</h2>
<p>A simple and efficient way to install Laravel PHP Framework on any Linux distribution is with Composer.</p>
<p><a href="https://getcomposer.org" target="_blank" rel="noopener">Composer</a> is a PHP dependency manager that greatly simplifies the handling of dependencies. So, let&#8217;s install it first.</p>
<pre class="">:~$ <span class="crayon-c">curl -sS https://getcomposer.org/installer | php</span>
:~$ sudo <span class="crayon-c">mv composer.phar /usr/local/bin/composer</span>
:~$ sudo <span class="crayon-c">chmod +x /usr/local/bin/composer</span></pre>
<p><figure id="attachment_9073" aria-describedby="caption-attachment-9073" style="width: 804px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9073" src="https://www.osradar.com/wp-content/uploads/2019/01/10-4.png" alt="10.- Installing Composer" width="804" height="251" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-4.png 804w, https://www.osradar.com/wp-content/uploads/2019/01/10-4-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-4-768x240.png 768w" sizes="(max-width: 804px) 100vw, 804px" /><figcaption id="caption-attachment-9073" class="wp-caption-text">10.- Installing Composer</figcaption></figure></p>
<p>Next, create a new Laravel project.</p>
<pre class="">:~$ composer create-project --prefer-dist laravel/laravel example</pre>
<p><figure id="attachment_9074" aria-describedby="caption-attachment-9074" style="width: 899px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9074" src="https://www.osradar.com/wp-content/uploads/2019/01/11-2.png" alt="11.- Install Laravel PHP Framework" width="899" height="426" srcset="https://www.osradar.com/wp-content/uploads/2019/01/11-2.png 899w, https://www.osradar.com/wp-content/uploads/2019/01/11-2-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/11-2-768x364.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/11-2-886x420.png 886w" sizes="(max-width: 899px) 100vw, 899px" /><figcaption id="caption-attachment-9074" class="wp-caption-text">11.- Install Laravel PHP Framework</figcaption></figure></p>
<p>Of course, replace example with the name of your project.</p>
<p><figure id="attachment_9075" aria-describedby="caption-attachment-9075" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9075" src="https://www.osradar.com/wp-content/uploads/2019/01/12-2.png" alt="12.- Laravel is installed" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/12-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/12-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/12-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/12-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/12-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/12-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9075" class="wp-caption-text">12.- Laravel is installed</figcaption></figure></p>
<p>Next, serve your project.</p>
<pre class="">:~$ cd example
:~$ php artisan serve</pre>
<p>This will serve you project on <code>http://localhost:8000</code>. However, you can serve the project with a specific host and port. But you have to open the ports.</p>
<pre class="">:~$ sudo firewall-cmd --add-port=8000/tcp --permanent 
:~$ sudo firewall-cmd --add-port=8765/tcp --permanent 
:~$ sudo firewall-cmd --reload</pre>
<pre class="">:~$ cd example/
:~$ php artisan serve --host=192.168.250.3 --port=8765</pre>
<p><figure id="attachment_9076" aria-describedby="caption-attachment-9076" style="width: 800px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9076" src="https://www.osradar.com/wp-content/uploads/2019/01/13-2.png" alt="13.- Serve the project" width="800" height="175" srcset="https://www.osradar.com/wp-content/uploads/2019/01/13-2.png 800w, https://www.osradar.com/wp-content/uploads/2019/01/13-2-300x66.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/13-2-768x168.png 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption id="caption-attachment-9076" class="wp-caption-text">13.- Serve the project</figcaption></figure></p>
<p>Now, open your web browser and go to http://IP_SERVER:8765/. Or <code>http://localhost:8000</code> depending on the case.</p>
<p><figure id="attachment_9077" aria-describedby="caption-attachment-9077" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9077" src="https://www.osradar.com/wp-content/uploads/2019/01/14-2.png" alt="14.- Laravel default page" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2019/01/14-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/14-2-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9077" class="wp-caption-text">14.- Laravel default page</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>The installation of Laravel is something simple that can be achieved after a few minutes. Laravel is a very powerful framework that more and more people are using.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-php-framework-opensuse-15/">How to install Laravel PHP Framework on OpenSUSE 15?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-laravel-php-framework-opensuse-15/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Laravel on Ubuntu 18.04</title>
		<link>https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 11 Jun 2018 07:41:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[ubuntu 18.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=3923</guid>

					<description><![CDATA[<p>In this tutorial, we will get to the process of how to install Laravel on UBUNTU 18.04. However, let’s have a description What is Laravel? Laravel is a free and an open source web application framework that is compatible with PHP language. Laravel is a new generation web framework, and it is basically projected for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/">How to Install Laravel on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we will get to the process of how to install Laravel on UBUNTU 18.04. However, let’s have a description What is Laravel? Laravel is a free and an open source web application framework that is compatible with PHP language. Laravel is a new generation web framework, and it is basically projected for the development of new web applications that are in MVC. We got there major Laravel types.</p>
<ul>
<li>Horizon.</li>
<li>Dusk.</li>
<li>Echo</li>
</ul>
<p>So now what is MVC?Model view controller is an architecture that help us to differentiate an application into its three logical components. That are (Model, View and Controller). Every component is built to handle the specific development for that application. It is the most popular framework at the time and most of the projects are being implemented using this framework.</p>
<p>Before starting the tutorial, you must have some basic knowledge of Linux, like how to use shell and how to host site on VPS. Because we will use Apache2 with this Laravel framework, Therefore, at first we will install Apache server</p>
<h3>Step 1: Installing Apache2</h3>
<p>Apache web server is the most popular web server in the world, because it is well documented and has been in use for a long time in the web. However, it is also known as the default web server for hosting websites. To install Apache using Ubuntu package manager follow the instructions.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>$ sudo apt update</strong></td>
</tr>
<tr>
<td width="623"><strong>$ sudo apt install Apache2</strong></td>
</tr>
</tbody>
</table>
<p>After following the commands, you can now see the default Ubuntu web page. Which will be look like something as follows.</p>
<p><img loading="lazy" class="aligncenter wp-image-3924 size-large" src="https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-1024x505.png" alt="apache-Installed" width="696" height="343" srcset="https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed-851x420.png 851w, https://www.osradar.com/wp-content/uploads/2018/06/apache-Installed.png 1271w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>&nbsp;</p>
<h3>Step 2: Installing MySQL</h3>
<p>After installing web server now we need to store data that will be used for future operations. However, database management system is now a basic need for any website to fetch and store data. Therefore, we will now install MySQL database management system, which will be done by following the instructions given below.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>$ sudo apt install mysql-server</strong></td>
</tr>
</tbody>
</table>
<p>This will install MySQL, note that you don’t need to type <em>sudo apt update</em> command because when you install apache, then this package will be already updated along with installation of Apache2.</p>
<h3>Step 3 — Installing PHP</h3>
<p>PHP is basically the coding module of the Laravel framework, it is also a setup that will code to display the content, run scripts and connects the server to your database that it MySQL. This is needed in order to get information and process the content to your web server for further representation.To install PHP along with some packages, kindly follow the given command.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>$</strong><strong>sudo apt install php</strong><strong> libapache2-mod-php php-mbstring php</strong><strong>-xmlrpc php</strong><strong>-soap php-gd php-xml php-cli php-zip</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>In most case, when you want to modify the Apache server files whenever a directory is requested. At the time when user request a directory from server, then Apache will look for that file. We will need to tell the server to use PHP file so that it will be on first priority. So to do this just type the following command:</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>$ sudo vim /etc/apache2/mods-enabled/dir.conf</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><img loading="lazy" class="aligncenter wp-image-3929 size-large" src="https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-1024x480.png" alt="" width="696" height="326" srcset="https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-1024x480.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-768x360.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-696x326.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-1068x501.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille-896x420.png 896w, https://www.osradar.com/wp-content/uploads/2018/06/chnge-index-fille.png 1303w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<h3>Step 4 — Install Composer</h3>
<p>After installing PHP, now it’s time to install composer. To install composer, you must have curl package to be installed, in order to run the command to execute them. To install this type following command</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>$ curl -sS https://getcomposer.org/installer | sudo php &#8212; &#8211;install-dir=/usr/local/bin &#8211;filename=composer</strong></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><img loading="lazy" class="aligncenter wp-image-3928 size-large" src="https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-1024x365.png" alt="installing-composer" width="696" height="248" srcset="https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-1024x365.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-696x248.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-1068x380.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer-1180x420.png 1180w, https://www.osradar.com/wp-content/uploads/2018/06/installing-composer.png 1261w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>Now go to laravel directory and create new laravel project to do this enter these commands. Note: in my case osreader is project name you can change it by yours.</p>
<table>
<tbody>
<tr>
<td width="623">$<strong> cd /var/www/html$ sudo composer create-project laravel/laravel osreader &#8211;prefer-dist</strong></td>
</tr>
</tbody>
</table>
<h3><img loading="lazy" class="aligncenter wp-image-3927 size-full" src="https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project.png" alt="create-laravel-project" width="769" height="381" srcset="https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project.png 769w, https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project-300x149.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project-768x381.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/06/create-laravel-project-696x345.png 696w" sizes="(max-width: 769px) 100vw, 769px" /></h3>
<h3>Step 5 — Configure Apache2</h3>
<p>After installing the composer, now we need to configure Apache2 to use it with Laravel files. This file will now control that how the user will access Laravel content. To configure Apahce2 follow the instruction given accordingly.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>sudo nano /etc/aache2/sites-available/Laravel.conf</strong></td>
</tr>
</tbody>
</table>
<p>After typing the command now copy and paste the following content to the file and save it.</p>
<table>
<tbody>
<tr>
<td width="623">&lt;VirtualHost *:80&gt;</p>
<p>ServerAdmin admin@osreader.com</p>
<p>DocumentRoot /var/www/html/osreader/public</p>
<p>ServerName osreader.com</p>
<p>&lt;Directory /var/www/html/osreader/public&gt;</p>
<p>Options +FollowSymlinks</p>
<p>AllowOverride All</p>
<p>Require all granted</p>
<p>&lt;/Directory&gt;</p>
<p>ErrorLog ${APACHE_LOG_DIR}/error.log</p>
<p>CustomLog ${APACHE_LOG_DIR}/access.log combined</p>
<p>&lt;/VirtualHost&gt;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><img loading="lazy" class="aligncenter wp-image-3926 size-full" src="https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel.png" alt="configure-apache-for-laravel" width="757" height="469" srcset="https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel.png 757w, https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel-300x186.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel-696x431.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/configure-apache-for-laravel-678x420.png 678w" sizes="(max-width: 757px) 100vw, 757px" /></p>
<h3>Step 6 — Use and enable Laravel Rewrite module</h3>
<p>Now we need to use and enable the Laravel modules for further processing Just follow the instructions to do this.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>sudo a2ensite Laravel.conf</strong></td>
</tr>
<tr>
<td width="623"><strong>sudo a2enmod rewrite</strong></td>
</tr>
</tbody>
</table>
<h3>Step 7 — Restart Apache2</h3>
<p>After performing all the settings and installation, now it’s time to restart the Apache2 so that it will run after, and can be used. Now type the following command and restart the Apache2.</p>
<p><strong>Command</strong>:</p>
<table>
<tbody>
<tr>
<td width="623"><strong>sudo systemctl restart Apache2.service</strong></td>
</tr>
</tbody>
</table>
<p>After complete these steps you are ready to go with your Laravel Project.</p>
<p><img loading="lazy" class="aligncenter wp-image-3925 size-large" src="https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-1024x465.png" alt="laravel-homePage" width="696" height="316" srcset="https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-1024x465.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-300x136.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-768x349.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-696x316.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-1068x485.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage-924x420.png 924w, https://www.osradar.com/wp-content/uploads/2018/06/laravel-homePage.png 1261w" sizes="(max-width: 696px) 100vw, 696px" /><strong>Conclusion:</strong></p>
<p>After performing all the steps accordingly, we are now able to install Laravel framework to Ubuntu as well as installing and configuration of Apache2. You just need to perform steps accordingly to avoid any mistakes. However, if you still face any problem regarding this, you can contact us anytime.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/">How to Install Laravel on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-laravel-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
