<?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>framework Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/framework/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.12</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 Yii framework on CentOS 8?</title>
		<link>https://www.osradar.com/install-yii-framework-centos-8/</link>
					<comments>https://www.osradar.com/install-yii-framework-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 14 Jan 2020 00:01:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></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[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17542</guid>

					<description><![CDATA[<p>We know that web development occupies a lot of place in today’s world. In fact, more and more business applications are made with web technology. You can use NodeJS or a programming language like PHP. PHP is perhaps the most popular language for web development although there are other technologies that are increasing in popularity [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yii-framework-centos-8/">How to install Yii framework 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 know that web development occupies a lot of place in today’s world.  In fact, more and more business applications are made with web technology. You can use NodeJS or a programming language like PHP. PHP  is perhaps the most popular language for web development although there are other technologies that are increasing in popularity at a constant rate like NodeJS. But there is no doubt that PHP is very popular. To make quality applications in PHP you have to use a framework and there are many of those, but today <strong>we will teach you how to install Yii PHP framework on <a href="https://www.osradar.com/tag/centos-8" target="_blank" rel="noreferrer noopener" aria-label="CentOS (opens in a new tab)">CentOS</a> 8.</strong></p>



<p>In order to be pragmatic and flexible, <a href="https://www.yiiframework.com/">Yii PHP</a>  was born. It is a framework for object-oriented PHP development that uses the architectural pattern MVC. What makes it ideal for developing many web applications such as forums, information sites or virtual shopping.</p>



<p>With Yii PHP you will have no licensing problems because it is open source (<a href="http://www.linfo.org/bsdlicense.html">BSD Licence</a>) which makes it ideal for community, educational or long-range projects.</p>



<h2>Install Yii PHP Framework on CentOS 8</h2>



<p>From the project&#8217;s website, we recommend using composer to perform the installation. This is because the framework has many dependencies and Composer is the best for it.</p>



<p>So the first step is to install Composer on CentOS 8</p>



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



<p>Installing Composer on CentOS 8 is quite simple, but you have to install some previous packages.</p>



<p>So, open a terminal session and run the following:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install php php-json php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip curl</pre>



<p>What have we just installed? Well, first of all, PHP so you can interpret Composer. Then, we installed a series of extensions that will also work for Yii. Finally, <a href="https://www.osradar.com/how-to-use-curl-command-linux/" target="_blank" rel="noreferrer noopener" aria-label="curl (opens in a new tab)">curl</a> is a utility that we will use to download Composer.</p>



<p>Then, we proceed to download and install it.</p>



<pre class="wp-block-preformatted">:~$ curl -sS https://getcomposer.org/installer | php</pre>



<p>Next, we will make Composer available from the terminal with the following commands:</p>



<pre class="wp-block-preformatted">:~$ sudo mv composer.phar /usr/local/bin/composer 
:~$ sudo chmod +x /usr/local/bin/composer 
:~$ source ~/.bashrc </pre>



<p>Now, you can check if everything went well with the next command: </p>



<pre class="wp-block-preformatted">:~$ composer -v </pre>



<p>If it shows you the version or helps you, it&#8217;s all right.</p>



<h3>Getting Yii framework on CentOS 8</h3>



<p>Once Composer is properly installed, we can install the Yii framework.</p>



<p>To do so, just use the following command:</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="552" src="https://www.osradar.com/wp-content/uploads/2020/01/1-6-1024x552.png" alt="1.- Installing Yii framework on CentOS 8" class="wp-image-17546" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-6-779x420.png 779w, https://www.osradar.com/wp-content/uploads/2020/01/1-6.png 1310w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Yii framework on CentOS 8</figcaption></figure>



<p>This command will download and configure the entire directory structure of Yii making it available to us. In this case, the project is called &#8220;<strong>example</strong>&#8220;, but obviously you can change this.</p>



<p>Remember that when you run this command, it will create a folder with the name of the project in the current location.</p>



<p>By default, Yii allows Composer to handle CSS/Javascript dependencies. If you want Composer not to do it and you want NPM, you have to do the following steps.</p>



<pre class="wp-block-preformatted">:~$ cd [your-project]
:~$ nano composer.json</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">"replace": {
    "bower-asset/jquery": ">=1.11.0",
    "bower-asset/inputmask": ">=3.2.0",
    "bower-asset/punycode": ">=1.3.0",
    "bower-asset/yii2-pjax": ">=2.0.0"
},</pre>



<p>As I said, it&#8217;s not mandatory.</p>



<p>To check that everything is in order, we will serve the project.</p>



<p>From the project location, run the following command:</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" width="794" height="178" src="https://www.osradar.com/wp-content/uploads/2020/01/2-5.png" alt="2.- Serve the Yii application" class="wp-image-17545" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-5.png 794w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-5-696x156.png 696w" sizes="(max-width: 794px) 100vw, 794px" /><figcaption>2.- Serve the Yii application</figcaption></figure>



<p>This will allow the project to be displayed in a web browser at <code>http:/localhost:8080</code>. Remember that this port has to be available in the firewall.</p>



<p>However, we can specify a different host and port:</p>



<pre class="wp-block-preformatted">:~$ php yii serve [Ip-address] --port=[port]</pre>



<p>Then open your browser and go to your project and you will see the following:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/01/3-5-1024x506.png" alt="3.- Yii framework on CentOS 8" class="wp-image-17547" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-5-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-5-850x420.png 850w, https://www.osradar.com/wp-content/uploads/2020/01/3-5.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Yii framework on CentOS 8</figcaption></figure>



<p>So, that is it. You are ready to start creating fantastic web applications with Yii framework.</p>



<h2>Conclusion</h2>



<p>Yii is a less popular framework than Cake or Laravel, but equally powerful. Many websites are made with this framework and the results are fantastic for the developer and the end-user.</p>



<p>On the other hand, the installation of Yii is facilitated thanks to its compatibility with Composer.</p>



<p>Please share this post and join <a rel="noreferrer noopener" aria-label="our Telegram Channel (opens in a new tab)" href="https://t.me/osradar" target="_blank">our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-yii-framework-centos-8/">How to install Yii framework 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/install-yii-framework-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Django on Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-django-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-django-on-windows-10/#comments</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 01:28:23 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python windows 10]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17623</guid>

					<description><![CDATA[<p>Hi, how are you? It&#8217;s a real pleasure to be with you again. In this opportunity, we are going to talk about a free and open-source web application framework written in Python. Indeed, I&#8217;m talking about Django. A web framework is a set of components that help to develop websites easier and faster. In other [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-django-on-windows-10/">How to install Django 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, how are you? It&#8217;s a real pleasure to be with you again. In this opportunity, we are going to talk about a free and open-source web application framework written in Python. Indeed, I&#8217;m talking about Django. A web framework is a set of components that help to develop websites easier and faster. In other words, <a href="https://www.djangoproject.com/" target="_blank" rel="noreferrer noopener" aria-label="Django (opens in a new tab)">Django</a> is a web framework designed to make applications of any complexity in a very reasonable time. In addition, its fundamental goal is to facilitate the creation of complex websites. As you can see, it is a framework of undoubted utility. Consequently, let&#8217;s see how to install Django on Windows 10.</p>



<h2>Prerequisites</h2>



<p>Django&#8217;s installation is managed from PIP.  This is a package management system used to install and manage software packages written in Python. Consequently, it is indispensable to have Python installed in Windows 10. To know how to do it, please check <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://www.osradar.com/how-to-install-python-3-in-windows-10/" target="_blank">here</a>.</p>



<h2>Preparing for installation.</h2>



<p>In the first place, creates a folder in any location. I recommend the root directory. In this folder, the projects will be saved. Likewise, assign the name you want. In this case, I&#8217;ll use <em>django</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django.jpg" alt="Create a folder with the name django and place it in the root of the directory." class="wp-image-17624" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Create a folder with the name django and place it in the root of the directory.</figcaption></figure>



<h2>Create a virtual environment for the project.</h2>



<p>In order to develop the project, it is necessary to create a virtual environment. With this in mind, open a Command Prompt and use the CD command to go to the django folder.</p>



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



<p>Once inside the folder, proceed to create the environment, typing the following command:</p>



<pre class="wp-block-preformatted">py -m venv osradar</pre>



<p>Please remember to replace <em>osradar</em> with the name you want to assign to the virtual environment.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django1.jpg" alt="Creating the virtual environment" class="wp-image-17626" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the virtual environment</figcaption></figure>



<p>Once the environment is created, all that remains is to activate it. With this in mind, please type the following command:</p>



<pre class="wp-block-preformatted">osradar\Scripts\activate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django2.jpg" alt="Activate the environment." class="wp-image-17627" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Activate the environment.</figcaption></figure>



<h2>Downloading at installing Django</h2>



<p>As we said at the beginning, in order to install Django, you need to use PIP. So, open a CMD from the project folder previously activated, and enter the following command:</p>



<pre class="wp-block-preformatted"> pip install Django==3.0.2</pre>



<p>Press enter and wait for the wizard to download and install the framework.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django3.jpg" alt="Downloading and installing Django." class="wp-image-17629" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Downloading and installing Django.</figcaption></figure>



<p>After installing Django, it&#8217;s time to verify the installation. To do so, type the following command:</p>



<pre class="wp-block-preformatted">pip freeze</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django5.jpg" alt="Testing Django's installation" class="wp-image-17631" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django5-300x137.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django5-768x351.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django5-696x318.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django5-919x420.jpg 919w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Testing Django&#8217;s installation</figcaption></figure>



<p>If everything is working correctly, the console should display the version of the installed items.</p>



<h2>Create a new project.</h2>



<p>Then create your first project in Django. With this in mind, open a Command Prompt from the virtual environment and execute this command:</p>



<pre class="wp-block-preformatted">django-admin startproject Liberator</pre>



<p>Please remember to replace the word <em>Liberator</em> with the name of your project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="558" height="52" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django7.jpg" alt="Create a new project." class="wp-image-17632" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django7.jpg 558w, https://www.osradar.com/wp-content/uploads/2020/01/django7-300x28.jpg 300w" sizes="(max-width: 558px) 100vw, 558px" /><figcaption>Create a new project.</figcaption></figure>



<h2>Running the server</h2>



<p>After the project is created, it&#8217;s time to run the server. With this in mind, open a CMD from the newly created project folder. Then execute this command:</p>



<pre class="wp-block-preformatted">python manage.py runserver</pre>



<p>Press enter, if everything is correct the server will start.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django8-1.jpg" alt="Django server running" class="wp-image-17636" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django8-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django8-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> Django server running </figcaption></figure>



<p>After starting the server, please copy the IP address to your web browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/django6.jpg" alt="Django's server running successfully." class="wp-image-17637" srcset="https://www.osradar.com/wp-content/uploads/2020/01/django6.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/01/django6-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/01/django6-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/01/django6-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2020/01/django6-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/01/django6-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Django&#8217;s server running successfully.</figcaption></figure>



<p>We&#8217;ve finally seen how to install Django on Windows 10. From now on you can use this powerful framework written in Python. That&#8217;s all for now, please share this post on your social networks. See you next time.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-django-on-windows-10/">How to install Django 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-django-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to install CakePHP in Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-cakephp-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-cakephp-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Mon, 16 Dec 2019 00:31:21 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16675</guid>

					<description><![CDATA[<p>CakePHP is a free and open-source web application development framework written in PHP. Additionally, it is built on the concepts of Ruby on rails. In other words, it is a base content that developers use to design web pages of all kinds. Like Ruby On Rails, CakePHP makes it easier for the user to interact [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cakephp-in-windows-10/">How to install CakePHP in 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>CakePHP is a free and open-source web application development framework written in PHP. Additionally, it is built on the concepts of Ruby on rails. In other words, it is a base content that developers use to design web pages of all kinds.  Like <a href="https://rubyonrails.org/" target="_blank" rel="noreferrer noopener" aria-label="Ruby On Rails (opens in a new tab)">Ruby On Rails</a>, CakePHP makes it easier for the user to interact with the database through the use of ActiveRecord. It also makes use of the Model View Controller pattern. The main objective of this framework is to work in a structured way, fast and without loss of flexibility. Being one of the most robust frameworks, let&#8217;s see how to install CakePHP in Windows 10.</p>



<h2>Prerequisites</h2>



<p>In order to install this framework, it is imperative to have the following installed:</p>



<ul><li>An HTTP server. It can be Nginx, Microsoft IIS or Apache. Here in <g class="gr_ gr_9 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Punctuation only-ins replaceWithoutSep" id="9" data-gr-id="9">osradar.com</g> we show you how to install <a rel="noreferrer noopener" aria-label="Apache (opens in a new tab)" href="https://www.osradar.com/how-to-install-composer-on-windows-10/" target="_blank">Apache</a> in Windows 10.</li><li>PHP 5.6.0 or greater. If you want to know how to install <a rel="noreferrer noopener" aria-label="PHP 7.40 (opens in a new tab)" href="https://www.osradar.com/how-to-install-php-in-windows-10/" target="_blank">PHP 7.40</a>, please read our tutorial.</li><li>A database storage engines. For more information about database managers, check out our post about <a rel="noreferrer noopener" aria-label="MySQL (opens in a new tab)" href="https://www.osradar.com/how-to-install-mysql-in-windows-10/" target="_blank">MySQL</a> in Windows 10.</li><li>Composer. If you want to know how to install it, please check our <a href="https://www.osradar.com/how-to-install-composer-on-windows-10/" target="_blank" rel="noreferrer noopener" aria-label="post (opens in a new tab)">post</a>.</li></ul>



<h2>Enabling the necessary extensions in PHP</h2>



<p>Not only is it necessary to have PHP installed, it is also indispensable to have the following extensions enabled:</p>



<ul><li> Mbstring PHP extension </li><li> Intl PHP extension </li></ul>



<p>Depending on the installation path, PHP extensions are located in this folder <strong>C:\php\ext</strong>. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake3-1.jpg" alt="Location of the extensions in PHP" class="wp-image-16678" srcset="https://www.osradar.com/wp-content/uploads/2019/12/cake3-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/cake3-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/cake3-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/cake3-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/cake3-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/cake3-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Location of the extensions in PHP</figcaption></figure>



<p>However, the fact that the extensions are present in the <em>ext</em> folder only means that you don&#8217;t have to download or compile them. To enable them, you need to edit the <strong>PHP.ini</strong> file. With this intention go to the following path: <strong>C:\php</strong>. Once there, select the file and open it with your favorite text editor.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="730" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake4-1.jpg" alt="Select the PHP.ini file" class="wp-image-16682" srcset="https://www.osradar.com/wp-content/uploads/2019/12/cake4-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/cake4-1-300x214.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/cake4-1-768x548.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/cake4-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/cake4-1-696x496.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/cake4-1-589x420.jpg 589w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> Select the PHP.ini file </figcaption></figure>



<p>Once the file is open, you only have to scroll to the list of extensions. Additionally, you can notice that the file contains all the extensions that are in the program folder. Furthermore, the extensions that are currently enabled, have a <strong>;</strong> before the name. Therefore, in order to enable any extension, just delete the <strong>;</strong> in the line. With this in mind, select <strong>mbstring</strong><em> </em>and <strong>intl</strong> to delete the <strong>;</strong> and enable them. Then save the file to set the changes.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="730" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake5.jpg" alt="Enabling PHP extensions" class="wp-image-16684" srcset="https://www.osradar.com/wp-content/uploads/2019/12/cake5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/cake5-300x214.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/cake5-768x548.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/cake5-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/cake5-696x496.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/cake5-589x420.jpg 589w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling PHP extensions</figcaption></figure>



<h2>Installing a new CakePHP project.</h2>



<p>To install  and create a new CakePHP project, please open a Command Prompt from the following path: <strong>C:\Apache24\htdocs</strong>. Next, execute the following command:</p>



<pre class="wp-block-preformatted"> composer create-project --prefer-dist cakephp/app my_app_name </pre>



<p>Please remember to replace my_app_name with the name you assigned to the project.</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="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake-1.jpg" alt="" data-id="16688" data-link="https://www.osradar.com/?attachment_id=16688" class="wp-image-16688" srcset="https://www.osradar.com/wp-content/uploads/2019/12/cake-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/cake-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/cake-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/cake-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/cake-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/cake-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake2-1.jpg" alt="" data-id="16689" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/cake2-1.jpg" data-link="https://www.osradar.com/?attachment_id=16689" class="wp-image-16689" srcset="https://www.osradar.com/wp-content/uploads/2019/12/cake2-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/cake2-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/cake2-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/cake2-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/cake2-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/cake2-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li></ul><figcaption class="blocks-gallery-caption">Project created with CakePHP</figcaption></figure>



<h2>Conclusion</h2>



<p>Ultimately we&#8217;ve seen how to install CakePHP on Windows 10. Its modular design allows designers and developers to work together, as well as quickly prototype. That&#8217;s it for now. See you soon!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cakephp-in-windows-10/">How to install CakePHP in 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-cakephp-in-windows-10/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 Symfony PHP framework on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 27 Dec 2018 22:47:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8656</guid>

					<description><![CDATA[<p>On other occasions, we have talked about various PHP frameworks. For example, I taught you how to install Cake and Yii, but today I&#8217;ll teach you how to install Symfony which is perhaps one of the most robust. Symfony PHP is a high-performance framework for developing web applications. So, it is very popular among groups [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/">How to install Symfony PHP framework 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>On other occasions, we have talked about various PHP frameworks. For example, I taught you how to install <a href="https://www.osradar.com/install-cake-php-centos-7/">Cake</a> and <a href="https://www.osradar.com/install-yii-php-framework-debian-9-ubuntu/">Yii</a>, but today I&#8217;ll teach you how to install Symfony which is perhaps one of the most robust.</p>
<p><a href="https://symfony.com/" rel="noopener">Symfony</a> PHP is a high-performance framework for developing web applications. So, it is very popular among groups of developers working on medium to large scale projects. In addition, it is one of the best-documented frameworks, with many books that teach you how to use its full potential.</p>
<p>So, let&#8217;s install Symfony on Ubuntu 18.04.</p>
<h1>1. Install Apache web server</h1>
<p>The first step is to install a web server, in this case, I will use <a href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/" rel="noopener">Apache</a> because it is easy to install and use.</p>
<pre class="">:~$ sudo apt install apache2</pre>
<p><figure id="attachment_8743" aria-describedby="caption-attachment-8743" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8743" src="https://www.osradar.com/wp-content/uploads/2018/12/1-18.png" alt="1.- Install apache web server" width="1364" height="417" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-18.png 1364w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-768x235.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-1024x313.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-1068x327.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-8743" class="wp-caption-text">1.- Install an Apache web server</figcaption></figure></p>
<p>Then, start and enable the service.</p>
<pre class="">:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2</pre>
<p><figure id="attachment_8744" aria-describedby="caption-attachment-8744" style="width: 971px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8744" src="https://www.osradar.com/wp-content/uploads/2018/12/2-17.png" alt="2.- Enabling Apache" width="971" height="177" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-17.png 971w, https://www.osradar.com/wp-content/uploads/2018/12/2-17-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-17-768x140.png 768w" sizes="(max-width: 971px) 100vw, 971px" /><figcaption id="caption-attachment-8744" class="wp-caption-text">2.- Enabling Apache</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h1>2. Install PHP</h1>
<p>Since it is a PHP framework it is obvious that you have to install the <a href="https://www.osradar.com/how-to-install-php-7-2-on-debian-9-stretch/" rel="noopener">PHP</a> language. So let&#8217;s go for it.</p>
<pre class="">:~$ sudo apt install php libapache2-mod-php php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip php-mysql php-curl</pre>
<p><figure id="attachment_8745" aria-describedby="caption-attachment-8745" style="width: 1360px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8745" src="https://www.osradar.com/wp-content/uploads/2018/12/3-17.png" alt="3.- Install PHP" width="1360" height="482" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-17.png 1360w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-300x106.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-768x272.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1024x363.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1068x379.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1185x420.png 1185w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption id="caption-attachment-8745" class="wp-caption-text">3.- Install PHP</figcaption></figure></p>
<p>Now, restart apache.</p>
<pre class="">:~$ sudo systemctl restart apache2</pre>
<h1>3. Install MariaDB</h1>
<p>If you are going to develop with a framework, it is necessary to have a database manager, so install <a href="https://www.osradar.com/password-hashing-mysql-mariadb/" rel="noopener">MariaDB</a>.</p>
<pre class="">:~$ sudo apt install mariadb-server</pre>
<p><figure id="attachment_8746" aria-describedby="caption-attachment-8746" style="width: 1304px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8746" src="https://www.osradar.com/wp-content/uploads/2018/12/4-17.png" alt="4.- Install MariaDB" width="1304" height="515" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-17.png 1304w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-300x118.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-768x303.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1024x404.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1068x422.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1063x420.png 1063w" sizes="(max-width: 1304px) 100vw, 1304px" /><figcaption id="caption-attachment-8746" class="wp-caption-text">4.- Install MariaDB</figcaption></figure></p>
<p>Then, enable and start the service.</p>
<pre class="">:~$ sudo systemctl enable mariadb
:~$ sudo systemctl start mariadb</pre>
<p><figure id="attachment_8749" aria-describedby="caption-attachment-8749" style="width: 819px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8749" src="https://www.osradar.com/wp-content/uploads/2018/12/7-777.png" alt="5.- Enabling MariaDB service" width="819" height="143" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-777.png 819w, https://www.osradar.com/wp-content/uploads/2018/12/7-777-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-777-768x134.png 768w" sizes="(max-width: 819px) 100vw, 819px" /><figcaption id="caption-attachment-8749" class="wp-caption-text">5.- Enabling MariaDB service</figcaption></figure></p>
<p>Now, set a root password for MariaDB. You can do it using the <code>mysql_secure_installtion</code> script.</p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_8748" aria-describedby="caption-attachment-8748" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8748" src="https://www.osradar.com/wp-content/uploads/2018/12/6-12-1.png" alt="6.- Setting a root password for MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-12-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8748" class="wp-caption-text">6.- Setting a root password for MariaDB</figcaption></figure></p>
<p>There you can configure other options, however, I leave it to your discretion the answers as for this tutorial are not decisive.</p>
<h1>4. Install Symfony PHP</h1>
<p>To install Symfony 4, you must first install Composer. Composer is a dependency manager for PHP.</p>
<pre class="">:~$ wget https://getcomposer.org/installer
:~$ php installer</pre>
<p><figure id="attachment_8752" aria-describedby="caption-attachment-8752" style="width: 802px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8752" src="https://www.osradar.com/wp-content/uploads/2018/12/10-10101.png" alt="10.- Composer installed" width="802" height="306" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-10101.png 802w, https://www.osradar.com/wp-content/uploads/2018/12/10-10101-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/10-10101-768x293.png 768w" sizes="(max-width: 802px) 100vw, 802px" /><figcaption id="caption-attachment-8752" class="wp-caption-text">10.- Composer installed</figcaption></figure></p>
<p>As you can see, after an initial connection error, composer is installed properly.</p>
<p>Next, make Composer a global command.</p>
<pre class="">:~$ <span class="crayon-c">sudo mv composer.phar /usr/local/bin/composer 
:~$ sudo chmod +x /usr/local/bin/composer</span></pre>
<p><figure id="attachment_8753" aria-describedby="caption-attachment-8753" style="width: 806px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8753" src="https://www.osradar.com/wp-content/uploads/2018/12/11-111.png" alt="11.- Setting Composer globally" width="806" height="131" srcset="https://www.osradar.com/wp-content/uploads/2018/12/11-111.png 806w, https://www.osradar.com/wp-content/uploads/2018/12/11-111-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/11-111-768x125.png 768w" sizes="(max-width: 806px) 100vw, 806px" /><figcaption id="caption-attachment-8753" class="wp-caption-text">11.- Setting Composer globally</figcaption></figure></p>
<h1>5. Create a new project</h1>
<p>Now it&#8217;s time to create a new Symfony project. It&#8217;s very simple.</p>
<pre class="">:~$ composer create-project symfony/website-skeleton example</pre>
<p><figure id="attachment_8754" aria-describedby="caption-attachment-8754" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8754" src="https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1.png" alt="12.- Install Symfony" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8754" class="wp-caption-text">12.- Install Symfony</figcaption></figure></p>
<p>Obviously, put the name of the project you want.</p>
<p><figure id="attachment_8756" aria-describedby="caption-attachment-8756" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8756" src="https://www.osradar.com/wp-content/uploads/2018/12/13-1333.png" alt="13.- Symfony installed" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/13-1333.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8756" class="wp-caption-text">13.- Symfony installed</figcaption></figure></p>
<p>Then, serve the project.</p>
<pre class="">:~$ cd example
:~$ php bin/console server:run
</pre>
<p><figure id="attachment_8757" aria-describedby="caption-attachment-8757" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8757" src="https://www.osradar.com/wp-content/uploads/2018/12/14-11114.png" alt="14.- Symfony running" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/14-11114.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8757" class="wp-caption-text">14.- Symfony running</figcaption></figure></p>
<p>Finally, open the web browser an go to <code>http://IP_SERVER:8000</code>. Or you can specify the IP and the port. It is useful if you are using a VM.</p>
<p><figure id="attachment_8760" aria-describedby="caption-attachment-8760" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8760" src="https://www.osradar.com/wp-content/uploads/2018/12/16-3.png" alt="16.- Symfony running on a specific IP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/16-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8760" class="wp-caption-text">16.- Symfony running on a specific IP</figcaption></figure></p>
<p><figure id="attachment_8759" aria-describedby="caption-attachment-8759" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8759" src="https://www.osradar.com/wp-content/uploads/2018/12/15-4.png" alt="15.- Symfony is alive!" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/15-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8759" class="wp-caption-text">15.- Symfony is alive!</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>While it is true that Symfony is a framework not so easy to learn, its installation on Ubuntu 18.04 is quite simple. All that&#8217;s left is for you to develop brilliant applications with it.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/">How to install Symfony PHP framework 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/install-symfony-php-framework-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Ruby on Rails on ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 11:39:39 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5499</guid>

					<description><![CDATA[<p>There are numerous specialized framework for web programming, which has PHP as its most popular language. However, today we will talk about one that stands out for its robustness and for being considered by many companies as their solution to create systems for the web: Ruby on Rails. Rails is a framework for web applications [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-18-04/">How to install Ruby on Rails 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>There are numerous specialized framework for web programming, which has PHP as its most popular language. However, today we will talk about one that stands out for its robustness and for being considered by many companies as their solution to create systems for the web: Ruby on Rails.</p>
<p>Rails is a framework for web applications that runs on the Ruby programming language. This means that you will not use PHP in this framework, so you must first learn the ruby language before using this popular framework.</p>
<p>Following the paradigm of the Model View Controller (MVC) pattern Ruby on Rails tries to combine simplicity with the possibility of developing real-world applications by writing less code than with other frameworks and with a minimum of configuration.</p>
<h2>Let&#8217;s get to work!</h2>
<h3>1.- Upgrading the system</h3>
<p>To install Ruby on Rails on Ubuntu 18.04 we will use RVM (ruby version manager) which will help us to install it more easily. First we will open a terminal emulator and proceed to update the system. Doing so is highly recommended to maintain optimal operating system performance. As root user, write:</p>
<pre class="">:~$ sudo -i
:~# apt update &amp;&amp; apt upgrade</pre>
<p><figure id="attachment_5500" aria-describedby="caption-attachment-5500" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5500" src="https://www.osradar.com/wp-content/uploads/2018/08/1-9.png" alt="1.- Upgrading the operating system" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/1-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/1-9-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5500" class="wp-caption-text">1.- Upgrading the operating system</figcaption></figure></p>
<p>After the process of updating the operating system is finished, we must install node and curl, two tools necessary to continue with the tutorial.</p>
<pre class="">:~# apt install nodejs curl</pre>
<p><figure id="attachment_5501" aria-describedby="caption-attachment-5501" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5501" src="https://www.osradar.com/wp-content/uploads/2018/08/2-9.png" alt="2.- installing required packages" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/2-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/2-9-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5501" class="wp-caption-text">2.- installing required packages</figcaption></figure></p>
<p>Next, import the signature key to verify the download we will do with RVM.</p>
<pre class="">:~# curl -sSL https://rvm.io/mpapis.asc | gpg --import -</pre>
<p><figure id="attachment_5502" aria-describedby="caption-attachment-5502" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5502" src="https://www.osradar.com/wp-content/uploads/2018/08/3-9.png" alt="3.- importing signature key" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/3-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/3-9-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5502" class="wp-caption-text">3.- importing signature key</figcaption></figure></p>
<p>Next we have to install RVM and the stable version of Ruby</p>
<pre class="">:~#  curl -sSL https://get.rvm.io | bash -s stable --ruby</pre>
<p><figure id="attachment_5503" aria-describedby="caption-attachment-5503" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5503" src="https://www.osradar.com/wp-content/uploads/2018/08/4-8.png" alt="4.- Getting Ruby" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/4-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/4-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5503" class="wp-caption-text">4.- Getting Ruby</figcaption></figure></p>
<p>We proceed to update the shell to be able to use RVM:</p>
<pre class="">:~# source /usr/local/rvm/scripts/rvm</pre>
<p><figure id="attachment_5504" aria-describedby="caption-attachment-5504" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5504" src="https://www.osradar.com/wp-content/uploads/2018/08/5-9.png" alt="5.- updating the shell" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/5-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/5-9-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5504" class="wp-caption-text">5.- updating the shell</figcaption></figure></p>
<p>And then we&#8217;ll install rails.</p>
<pre class="">:~# gem install rails</pre>
<p><figure id="attachment_5505" aria-describedby="caption-attachment-5505" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5505" src="https://www.osradar.com/wp-content/uploads/2018/08/6-8.png" alt="6.- installing rails gem" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/6-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/6-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5505" class="wp-caption-text">6.- installing rails gem</figcaption></figure></p>
<p>Optionally we can choose a specific version of Rails, the syntax would be:</p>
<pre class="">:~# gem install rails -v x.x</pre>
<p>replace x.x with the version of your choice. I repeat, this is optional.</p>
<p>now, We verify the installation done:</p>
<pre class="">:~# ruby -v
:~# rails -v</pre>
<p><figure id="attachment_5506" aria-describedby="caption-attachment-5506" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5506" src="https://www.osradar.com/wp-content/uploads/2018/08/7-9.png" alt="7.- Showing installed version" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/7-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/7-9-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5506" class="wp-caption-text">7.- Showing installed version</figcaption></figure></p>
<p>now to verify the installation, we must create a new project.</p>
<pre class="">:~# cd /home/angelo/
:~# rails new example</pre>
<p><figure id="attachment_5508" aria-describedby="caption-attachment-5508" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5508" src="https://www.osradar.com/wp-content/uploads/2018/08/8-7.png" alt="8.- Creating a new project" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/8-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/8-7-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5508" class="wp-caption-text">8.- Creating a new project</figcaption></figure></p>
<p>We enter the project folder:</p>
<pre class="">:~# cd example</pre>
<p>And finally we must start the rails WEBrick server:</p>
<pre class="">:~# rails s -b 0.0.0.0</pre>
<p>And finally we go to the web browser and access the project created with our ip address through port 3000.</p>
<p>http:IP:3000/</p>
<p><figure id="attachment_5509" aria-describedby="caption-attachment-5509" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5509" src="https://www.osradar.com/wp-content/uploads/2018/08/9-9.png" alt="9.- Installation success" width="1354" height="677" srcset="https://www.osradar.com/wp-content/uploads/2018/08/9-9.png 1354w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-768x384.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-1024x512.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-696x348.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-1068x534.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/9-9-840x420.png 840w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-5509" class="wp-caption-text">9.- Installation success</figcaption></figure></p>
<p>And that&#8217;s all there is to it! The main advantage of installing Ruby on Rails with this method is that we can use specific versions of the framework.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-18-04/">How to install Ruby on Rails 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-ruby-on-rails-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
