<?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>PHP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 10 Jun 2022 13:19:35 +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>Install PHP Composer on Debian 11</title>
		<link>https://www.osradar.com/install-php-composer-debian/</link>
					<comments>https://www.osradar.com/install-php-composer-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 01 Oct 2021 23:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32488</guid>

					<description><![CDATA[<p>Hello friends. For many PHP Composer developers is an essential tool in their daily work. So if you are a PHP developer or you are just starting with this, you should know how to install PHP Composer on Debian 11. The process is really simple but it’s never too much to have it at hand. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-composer-debian/">Install PHP Composer 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 class="has-line-data">Hello friends. For many PHP Composer developers is an essential tool in their daily work. So if you are a PHP developer or you are just starting with this, you should know how to install PHP Composer on Debian 11. The process is really simple but it’s never too much to have it at hand.</p>



<h2 class="code-line"><a id="What_is_Composer_2"></a>What is Composer?</h2>



<p class="has-line-data"><strong><a href="https://getcomposer.org/" target="_blank" rel="noreferrer noopener">Composer </a>is a project dependency manager for PHP programming.</strong> That means that it allows us to manage, i.e. specify, download, and keep up to date, the software packages or dependencies on which our PHP project is based.</p>



<p class="has-line-data">The reason for using it is that when you develop a PHP application it requires functionality that is not in the default PHP libraries. That is, you have to add others for your project to work or to be able to be carried out.</p>



<p class="has-line-data">So, when you start the project you have to go to the page of each of the software components that you want to use, download them, copy them to the folder of your project. This is a bit torturous because at some point these libraries will be updated and then you have to start this process all over again.</p>



<p class="has-line-data">Composer was born to avoid this. Because just by defining the right dependencies, <strong>Composer will download them and add them to your project in a matter of seconds</strong>. And if they are updated, it only takes a minimal effort or command to update them. All without wasting time and in an orderly fashion.</p>



<p class="has-line-data">So, let’s get started.</p>



<h2 class="code-line"><a id="Install_PHP_Composer_on_Debian_11_14"></a>Install PHP Composer on Debian 11</h2>



<p class="has-line-data">As we can guess, one of the main requirements is to have PHP installed on the system. This shouldn’t be a problem because PHP is present in the Debian 11 repositories and is quite lightweight.</p>



<p class="has-line-data">So, open a terminal and as usual update the distribution.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Then, you can install PHP in case you don’t have it.</p>



<pre class="wp-block-preformatted">sudo apt install php</pre>



<p class="has-line-data">Note: If you don’t have <code>sudo</code> available then you have to run these commands as root. Also, you can enable it by reading our post about it.</p>



<p class="has-line-data">Now to install Composer on the system, you have to run this single command</p>



<pre class="wp-block-preformatted">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"</pre>



<p class="has-line-data">This command downloads and “compiles” the Composer installer for us.</p>



<p class="has-line-data">Then install it in a directory that is in our PATH so that we can use it throughout the system. Also, you have to give it run permissions.</p>



<pre class="wp-block-preformatted">sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo chmod +x /usr/local/bin/composer</pre>



<p class="has-line-data">Then, verify the installed version by running</p>



<pre class="wp-block-preformatted">composer --version
composer version 2.1.8 2021-09-15 13:55:14</pre>



<h3 class="code-line"><a id="Using_PHP_Composer_on_Debian_11_45"></a>Using PHP Composer on Debian 11</h3>



<p class="has-line-data">Before using Composer it is always advisable to upgrade to the latest version. This process can be done by running</p>



<pre class="wp-block-preformatted">composer self-update</pre>



<p class="has-line-data">If you already have the latest stable version, you will get an output screen like this</p>



<pre class="wp-block-preformatted">You are already using the latest available Composer version 2.1.8 (stable channel)</pre>



<p class="has-line-data">Composer works with a file called <code>composer.json</code> which is where the project dependencies are stored. To add one you can visit <a href="https://packagist.org/" target="_blank" rel="noreferrer noopener">packagist </a>to find one you need.</p>



<p class="has-line-data">For example, I will add <code>sebastian/comparator</code> with the command</p>



<pre class="wp-block-preformatted">composer require sebastian/comparator</pre>



<p class="has-line-data">Just like that, Composer recognizes the dependency, downloads it along with its dependencies, and installs them for our project that we just need to use. And so on with each of the dependencies you need.</p>



<p class="has-line-data">To update the versions of the dependencies of your project run</p>



<pre class="wp-block-preformatted">composer update</pre>



<p class="has-line-data">Or you can update a single one</p>



<pre class="wp-block-preformatted">composer update sebastian/comparator</pre>



<p class="has-line-data">Also, you can update several at once.</p>



<p class="has-line-data">To remove a dependency, just run</p>



<pre class="wp-block-preformatted">composer remove sebastian/comparator</pre>



<p class="has-line-data">So you can use Composer on Debian 11 in a basic but useful way.</p>



<h2 class="code-line"><a id="Conclusion_79"></a>Conclusion</h2>



<p class="has-line-data">In this post, we have covered the installation of PHP Composer on Debian 11 and a small introduction to its particular usage. This tool has become indispensable for many developers so it is not surprising that it is popular.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-composer-debian/">Install PHP Composer 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/install-php-composer-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install LAMP on Debian 11</title>
		<link>https://www.osradar.com/install-lamp-stack-debian-server/</link>
					<comments>https://www.osradar.com/install-lamp-stack-debian-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 23:09:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32082</guid>

					<description><![CDATA[<p>Hello friends. In this post, you will learn how to install the LAMP stack on Debian 11 The LAMP stack is a set of applications that allow us to deploy a web server efficiently and quickly. LAMP stands for Linux, Apache web server, MariaDB, and PHP. Together they can make a computer a functional web [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-debian-server/">Install LAMP 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 class="has-line-data">Hello friends. In this post, you will learn how to install the LAMP stack on Debian 11 The LAMP stack is a set of applications that allow us to deploy a web server efficiently and quickly.</p>



<p class="has-line-data">LAMP stands for Linux, Apache web server, MariaDB, and PHP. Together they can make a computer a functional web server that can run many websites and complex web applications such as <a href="https://wordpress.com/" target="_blank" rel="noreferrer noopener">WordPress</a>.</p>



<p class="has-line-data">So it is a good idea to know how to install this software stack that will serve as a base to install many other applications.</p>



<p class="has-line-data">So, let’s get started.</p>



<h2 class="code-line"><a id="Install_LAMP_on_Debian_11_8"></a>Install LAMP on Debian 11</h2>



<p class="has-line-data">To start our post, we need to start with a clean install of Debian 11 which is quite easy to install. It is also recommended that you have it updated with these commands.</p>



<pre class="wp-block-preformatted">apt update<br>apt upgrade</pre>



<p class="has-line-data">These commands are executed as the root user. But you can also<a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" target="_blank" rel="noreferrer noopener"> enable sudo on Debian 11</a>. So if you have it enabled just prefix the <code>sudo</code> command with the rest.</p>



<p class="has-line-data">With the system upgrade, we can continue the post.</p>



<h3 class="code-line"><a id="Install_Apache_and_PHP_on_Debian_11_19"></a>Install Apache and PHP on Debian 11</h3>



<p class="has-line-data">Apache is an open-source web server that is very popular around the world. On the other hand, PHP is a web programming language that, while not the only one, is one of the most popular and used by all kinds of developers.</p>



<p class="has-line-data">The installation of both tools is easy thanks to the fact that they are included in the official Debian 11 repositories. This process is detailed in our post</p>



<p class="has-line-data"><a href="https://www.osradar.com/install-apache-web-server-php-debian-linux/" target="_blank" rel="noreferrer noopener">How to install Apache on Debian 11?</a></p>



<p class="has-line-data">There you can find all the necessary information on how to install both tools.</p>



<h3 class="code-line"><a id="Install_MariaDB_on_Debian_11_29"></a>Install MariaDB on Debian 11</h3>



<p class="has-line-data">The next step is to install and properly configure <a href="http://mariadb.com/" target="_blank" rel="noreferrer noopener">MariaDB </a>which will serve as our database manager. MariaDB has many important features but the support that many web applications give to it is one of the main ones.</p>



<p class="has-line-data">For example, applications such as WordPress, GLPI, and others support MariaDB, so installing it is vital.</p>



<p class="has-line-data">For that, I invite you to read our post</p>



<p class="has-line-data"><a href="https://www.osradar.com/install-mariadb-database-debian/" target="_blank" rel="noreferrer noopener">How to install MariaDB on Debian 11?</a></p>



<p class="has-line-data">There you can not only install it but also get it ready for us to start using it.</p>



<h2 class="code-line">LAMP on Debian 11 Conclusion</h2>



<p class="has-line-data">In this post, we have shown you how to install the LAMP stack on Debian 11. To do this, we have relied on our posts where we detail the installation process of each of the components. This does not make the post longer and makes it easier to understand.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-debian-server/">Install LAMP 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/install-lamp-stack-debian-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Apache web server on Debian 11</title>
		<link>https://www.osradar.com/install-apache-web-server-php-debian-linux/</link>
					<comments>https://www.osradar.com/install-apache-web-server-php-debian-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 00:41:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31683</guid>

					<description><![CDATA[<p>Hello folks. With Debian 11 ready for download then the process of supporting it begins. So, in this short post, you will learn how to install Apache web server on Debian 11. What is Apache web server? The first thing to say is that when we talk about Apache web server, we are talking about [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-web-server-php-debian-linux/">Install Apache web server 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 class="has-line-data">Hello folks. With Debian 11 ready for download then the process of supporting it begins. So, in this short post, you will learn how to install Apache web server on Debian 11.</p>



<h2 class="code-line"><a id="What_is_Apache_web_server_2"></a>What is Apache web server?</h2>



<p class="has-line-data">The first thing to say is that when we talk about Apache web server, we are talking about <code>httpd</code> because that is what it is really called. What happens is that this project is sponsored and supported by the Apache Foundation that gives it the nickname.<br><br>You can also learn about the speed difference regarding <a href="https://cyberpanel.net/blog/apache-vs-nginx/">Apache VS NGINX</a>.</p>



<p class="has-line-data">So, according to the<a href="https://httpd.apache.org/" target="_blank" rel="noreferrer noopener"> official website</a> of <code>httpd</code> we have the following definition.</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="8" data-line-end="9">The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient, and extensible server that provides HTTP services in sync with the current HTTP standards.</p></blockquote>



<p class="has-line-data">So, it is one of the most widely used web servers in the world because it is secure, fast, and easy to administer. As expected, it is also compatible with many programming languages and therefore web applications.</p>



<p class="has-line-data">The installation and administration of Apache are possible thanks to the powerful documentation that is available to everyone. I recommend you take a look at it</p>



<h3 class="code-line"><a id="Install_Apache_web_server_on_Debian_11_14"></a>Install Apache web server on Debian 11</h3>



<p class="has-line-data">So, connect to your Debian 11 server and if you haven’t updated it, you can do it in the following way:</p>



<pre class="wp-block-preformatted">apt update
apt upgrade</pre>



<p class="has-line-data">You have to run these commands as the root user. In case you can use <code>sudo</code> then just use it before the commands I will show you</p>



<p class="has-line-data">One of the best things about Apache is that we can find it in the official repositories of many distributions including Debian.</p>



<p class="has-line-data">So, you can search the repositories as follows:</p>



<pre class="wp-block-preformatted">apt search apache2</pre>



<p class="has-line-data">And as result, you will see a lot of Apache-related packages.</p>



<p class="has-line-data">To install Apache web server on Debian 11, just run the following command:</p>



<pre class="wp-block-preformatted">apt install apache2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgdbm-compat4 liblua5.3-0 libperl5.32 mailcap mime-support
  perl perl-modules-5.32
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make
  libtap-harness-archive-perl
Recommended packages:
  ssl-cert
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgdbm-compat4 liblua5.3-0 libperl5.32 mailcap
  mime-support perl perl-modules-5.32
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,725 kB of archives.
After this operation, 55.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">This way, after accepting the installation, it will start. As it is a lightweight web server, the process should not take too long.</p>



<h3 class="code-line"><a id="Managing_the_Apache_webserver_service_and_testing_the_installation_37"></a>Managing the Apache webserver service and testing the installation</h3>



<p class="has-line-data">By default, upon completion of the Apache installation, the service will be started and enabled. In any case, you can check the status of the service by running:</p>



<pre class="wp-block-preformatted">systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-08-17 21:54:55 CEST; 22s ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 1963 (apache2)
      Tasks: 55 (limit: 2277)
     Memory: 9.1M
        CPU: 44ms
     CGroup: /system.slice/apache2.service
             ├─1963 /usr/sbin/apache2 -k start
             ├─1965 /usr/sbin/apache2 -k start
             └─1966 /usr/sbin/apache2 -k start

Aug 17 21:54:55 osradar systemd[1]: Starting The Apache HTTP Server...
Aug 17 21:54:55 osradar apachectl[1962]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName'&gt;ug 17 21:54:55 osradar systemd[1]: Started The Apache HTTP Server.</pre>



<p class="has-line-data">As you can see, the service is running correctly. If you want to stop it, run</p>



<pre class="wp-block-preformatted">systemctl stop apache2</pre>



<p class="has-line-data">And to start it:</p>



<pre class="wp-block-preformatted">systemctl start apache2</pre>



<p class="has-line-data">When making changes in the Apache configuration or some of its modules, you will have to restart the service to apply them. To do this, run</p>



<pre class="wp-block-preformatted">systemctl restart apache2</pre>



<p class="has-line-data">Now, we have to verify that the installation was successful and the best way is to use it.</p>



<p class="has-line-data">So, the normal thing is that you are using a Firewall in Debian 11, in case you are, then make sure that the ports <code>80</code> and <code>443</code> are available.</p>



<p class="has-line-data">In case you are using <code>UFW</code> then you can do it in the following way:</p>



<pre class="wp-block-preformatted">ufw allow 80
ufw allow 443</pre>



<p class="has-line-data">Now yes, you can open a web browser and visit <code>http://your-server-ip</code> and see the following screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="518" src="https://www.osradar.com/wp-content/uploads/2021/08/2-5-1024x518.png" alt="1.- Apache web server on Debian 11" class="wp-image-31724" srcset="https://www.osradar.com/wp-content/uploads/2021/08/2-5-1024x518.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/2-5-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/2-5-768x388.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/2-5-696x352.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/2-5-1068x540.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/2-5.png 1349w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Apache web server on Debian 11</figcaption></figure>



<p class="has-line-data">This way, the Apache web server is ready to use.</p>



<h2 class="code-line"><a id="Install_PHP_with_Apache_web_server_on_Debian_11_68"></a>Install PHP with Apache web server on Debian 11</h2>



<p class="has-line-data">Apache’s utility is to serve websites. If these websites are static, that is, they are not created with a programming language, then there is no need to install anything else.</p>



<p class="has-line-data">Realistically, however, the websites include functionality created in a programming language such as PHP. This language is one of the most popular and that is why it is convenient to install it together with Apache.</p>



<p class="has-line-data">So, to install PHP and the add-on module with Apache, just run the following command</p>



<pre class="wp-block-preformatted">apt install php php-cli libapache2-mod-php
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php7.4 libsodium23 php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline psmisc
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libapache2-mod-php libapache2-mod-php7.4 libsodium23 php php-cli php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline psmisc
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,490 kB of archives.
After this operation, 19.3 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">For the Apache webserver to recognize the module that allows it to work with PHP, it is necessary to restart the service.</p>



<pre class="wp-block-preformatted">systemctl restart apache2</pre>



<p class="has-line-data">And now, Apache and PHP are installed and working perfectly. To check this, create a file with PHP extension in the Apache root directory which is <code>/var/www/html/</code>.</p>



<pre class="wp-block-preformatted">nano /var/www/html/test.php</pre>



<p class="has-line-data">Inside this file, add some PHP code such as the <code>phpinfo()</code> method.</p>



<pre class="wp-block-preformatted">&lt;?php
phpinfo();
?&gt;</pre>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">Now try to open it from the web browser <code>http://your-server-ip/test.php</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="518" src="https://www.osradar.com/wp-content/uploads/2021/08/1-9-1024x518.png" alt="2.- PHP working with Apache on Debian 11" class="wp-image-31723" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-9-1024x518.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-9-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-9-768x388.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-9-696x352.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-9-1068x540.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-9.png 1349w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- PHP working with Apache on Debian 11</figcaption></figure>



<p class="has-line-data">So, the Apache web server is working correctly.</p>



<h2 class="code-line"><a id="Conclusion_98"></a>Conclusion</h2>



<p class="has-line-data">Apache web server is a very popular server whose installation allows novices to explore everything about this world. It can also be used in docker images for application deployment.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-web-server-php-debian-linux/">Install Apache web server 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/install-apache-web-server-php-debian-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Laravel on Fedora 34?</title>
		<link>https://www.osradar.com/install-laravel-fedora/</link>
					<comments>https://www.osradar.com/install-laravel-fedora/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 10 Jun 2021 01:39:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7409</guid>

					<description><![CDATA[<p>Normally to ensure the quality of web applications are developed using a Framework. Laravel is one of the best frameworks for it. So, In this article, I will show you how to install Laravel in Fedora 34. Laravel is a PHP framework that offers the possibility of developing applications quickly, agile and with a readable [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-fedora/">How to install Laravel on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Normally to ensure the quality of web applications are developed using a Framework. Laravel is one of the best frameworks for it. So, In this article, I will show you how to install Laravel in Fedora 34.</p>
<p><a href="https://www.laravel.com" rel="noopener">Laravel</a> is a PHP framework that offers the possibility of developing applications quickly, agile and with a readable source code. So, many developers use it to make their most popular applications.</p>
<p>In short, this is a nice framework to develop web applications very quickly with a beautiful source code.</p>
<p>So, let&#8217;s install Laravel on Fedora 34.</p>
<h1>1 Install PHP</h1>
<p>Since it is a PHP framework it is obvious that you must install PHP. So let&#8217;s go for it.</p>
<pre class="">:~$ sudo dnf install php php-common php-cli php-pdo php-mbstring php-zip php-xml php-cli php-json</pre>
<p><figure id="attachment_30507" aria-describedby="caption-attachment-30507" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30507 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/1_11111.png" alt="1.- Install PHP on Fedora 34" width="1365" height="716" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1_11111.png 1365w, https://www.osradar.com/wp-content/uploads/2018/11/1_11111-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1_11111-1024x537.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1_11111-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1_11111-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1_11111-1068x560.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30507" class="wp-caption-text">1.- Install PHP on Fedora 34</figcaption></figure></p>
<h2>2. Install Composer</h2>
<p><a href="https://getcomposer.org/" rel="noopener">Composer</a> is a dependencies manager for PHP. So, it is very useful to manage libraries required by our projects and is used to install Laravel.</p>
<pre class="">:~$ curl -sS https://getcomposer.org/installer | php</pre>
<p>Then, make sure that Composer can be used globally in the terminal.</p>
<pre class="">:~$ sudo mv composer.phar /usr/local/bin/composer
:~$ sudo chmod +x /usr/local/bin/composer
:~$ composer -V</pre>
<p><figure id="attachment_30508" aria-describedby="caption-attachment-30508" style="width: 700px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30508 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/2_22222.png" alt="2.- Composer on Fedora 34" width="700" height="179" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2_22222.png 700w, https://www.osradar.com/wp-content/uploads/2018/11/2_22222-300x77.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2_22222-696x178.png 696w" sizes="(max-width: 700px) 100vw, 700px" /><figcaption id="caption-attachment-30508" class="wp-caption-text">2.- Composer on Fedora 34</figcaption></figure></p>
<p>Now, you can install Laravel.</p>
<h1>5. Install Laravel</h1>
<p>It&#8217;s time to install Laravel. So, run this command.</p>
<pre class="">:~$ composer global require "laravel/installer"</pre>
<p>Once the installation is finished. You can create a new project. But, first, make Laravel executable available for the system.</p>
<pre class="">:~$ echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' &gt;&gt; ~/.bashrc</pre>
<p>Then, close the terminal and open it again. Now, create a project.</p>
<pre class="">:~$ laravel new example</pre>
<p><figure id="attachment_30509" aria-describedby="caption-attachment-30509" style="width: 1084px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30509 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/3_33333.png" alt="3.- Laravel project" width="1084" height="707" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3_33333.png 1084w, https://www.osradar.com/wp-content/uploads/2018/11/3_33333-300x196.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3_33333-1024x668.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3_33333-768x501.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3_33333-696x454.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3_33333-1068x697.png 1068w" sizes="(max-width: 1084px) 100vw, 1084px" /><figcaption id="caption-attachment-30509" class="wp-caption-text">3.- Laravel project</figcaption></figure></p>
<p>Then, start the Laravel instance.</p>
<pre class="">:~$ php artisan serve</pre>
<p><figure id="attachment_30511" aria-describedby="caption-attachment-30511" style="width: 922px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30511 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/4_444.png" alt="4.- Laravel serve" width="922" height="205" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4_444.png 922w, https://www.osradar.com/wp-content/uploads/2018/11/4_444-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4_444-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4_444-696x155.png 696w" sizes="(max-width: 922px) 100vw, 922px" /><figcaption id="caption-attachment-30511" class="wp-caption-text">4.- Laravel serve</figcaption></figure></p>
<p>As you can see, the IP address you need to go is <code>127.0.0.1:8000</code>. Also you can specify a diferent host and port. For example:</p>
<pre>:~$ php artisan serve&nbsp; --host=0.0.0.0 --port=1234</pre>
<p>Open your web browser and go to the IP address.</p>
<p><figure id="attachment_30512" aria-describedby="caption-attachment-30512" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30512 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/g.png" alt="Laravel working on Fedora 34" width="1366" height="669" srcset="https://www.osradar.com/wp-content/uploads/2018/11/g.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/g-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/g-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/g-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/g-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/g-1068x523.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-30512" class="wp-caption-text">Laravel working on Fedora 34</figcaption></figure></p>
<p>Laravel is correctly installed.</p>
<p>If you want to use MariaDB in a project with Laravel, then you need to edit the <code>.env</code> file located in the project. In it, you must specify database, port, user, and password of the user MariaDB.</p>
<h1>Conclusion</h1>
<p>As you&#8217;ve seen, installing Laravel on Fedora 34 is simple, you just have to have a basic knowledge about LAMP and that&#8217;s it.</p>
<p>So, Please share this article with your friends.</p>
<p>You can also read &#8220;<a href="https://www.osradar.com/install-yii-php-framework-debian-10/" target="_blank" rel="noopener">How to install Yii PHP Framework on Debian 10?</a>&#8220;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-laravel-fedora/">How to install Laravel on Fedora 34?</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-fedora/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the LAMP stack on Fedora 34</title>
		<link>https://www.osradar.com/install-lamp-stack-on-fedora-34/</link>
					<comments>https://www.osradar.com/install-lamp-stack-on-fedora-34/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 04 Jun 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 31]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15686</guid>

					<description><![CDATA[<p>Fedora is one of the most popular Linux distributions that exist, and is also used by developers to do their jobs. In this sense, web development is in full swing and more and more developers are focusing on these applications. But if you&#8217;re going to develop or serve web applications, it is a good idea [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-on-fedora-34/">How to install the LAMP stack on Fedora 34</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Fedora is one of the most popular Linux distributions that exist, and is also used by developers to do their jobs. In this sense, web development is in full swing and more and more developers are focusing on these applications. But if you&#8217;re going to develop or serve web applications, it is a good idea to at least have a working LAMP server. <strong>That is why, in this post, we will show you how to install LAMP stack on Fedora 34.</strong></p>
<h2>What is the LAMP stack?</h2>
<p>The <a href="https://en.wikipedia.org/wiki/LAMP_(software_bundle)" target="_blank" rel="noopener noreferrer">LAMP</a> stack is the union of several application components that allow to have a functional web server. With LAMP it is possible to develop and deploy web applications created in PHP.</p>
<h2>Installing the LAMP stack on Fedora 34</h2>
<h3>(L)inux</h3>
<p>The first component is Linux. In this case, we are using Fedora as the Linux distribution. <a href="https://www.osradar.com/fedora-31-available/" target="_blank" rel="noopener noreferrer">Fedora</a> is quite stable for these purposes, but it also serves to host applications as if it were a server.</p>
<h3>(A)pache</h3>
<p>The second component is the HTTP server. The easiest server to use and also one of the most popular is HTTPD which is the Apache project server. Fortunately, it is found in the official repositories of the distribution, which facilitates the installation.</p>
<p>To do this, open a terminal and execute the following command:</p>
<pre>:~$ sudo dnf install httpd</pre>
<p>Before you can use the server, you must initialize the service. In other words, you have to start it. To do this, we use systemd to do it.</p>
<pre>:~$ sudo systemctl start httpd</pre>
<p>If you want the service to start along with the system, then run this command:</p>
<pre>:~$ sudo systemctl enable httpd</pre>
<p>Now each time the system is started, httpd will be started.</p>
<p>However, Fedora values security very much and will not allow httpd to run if port 80 and 443 are not opened in the firewall. So let&#8217;s do it.</p>
<pre>$ sudo firewall-cmd zone=public add-service=http permanent<br>success<br>$ sudo firewall-cmd reload<br>success</pre>
<p>Now, open your web browser and go to <code>http://your-server</code> or <code>http://localhost</code> depending on where you are installing LAMP. You willl see the following:</p>
<figure id="attachment_30366" aria-describedby="caption-attachment-30366" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30366 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/1-25.png" alt="1.- Httpd running on Fedora 34" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-25.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/1-25-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-25-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/1-25-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-25-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/1-25-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-30366" class="wp-caption-text">1.- Httpd running on Fedora 34</figcaption></figure>
<p>That means Apache is functioning perfectly.</p>
<h3>Installing LAMP stack on Fedora 34 &#8211; (P)hp</h3>
<p>Now for web applications to run smoothly, you need to install PHP. PHP is one of the most popular languages for web programming. In fact, the vast majority of web applications are created with PHP. To install it along with its main modules, you have to execute the following command:</p>
<pre>:~$ sudo dnf install php php-common php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-xml</pre>
<figure id="attachment_30367" aria-describedby="caption-attachment-30367" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30367 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/2-23.png" alt="2.- Installing PHP on Fedora 34" width="1365" height="714" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-23.png 1365w, https://www.osradar.com/wp-content/uploads/2019/11/2-23-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-23-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-23-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-23-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-23-1068x559.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30367" class="wp-caption-text">2.- Installing PHP on Fedora 34</figcaption></figure>
<p>Now you have to test that PHP works properly, so you have to create a file with some php code and see if you run it.</p>
<pre>:~$ sudo nano /var/www/html/test.php</pre>
<p>And add the following:</p>
<pre>&lt;?php<br>phpinfo();<br>?&gt;</pre>
<p>If you do not have nano installed, it is better to do it with the following command:</p>
<pre>:~$ sudo dnf install nano</pre>
<p>For all this to work, you have to restart the server:</p>
<pre>:~$ sudo systemctl restart httpd</pre>
<p>And then, open it from the web browser. <code>http://your-server/test.php</code> or <code>http://localhost/test.php</code></p>
<figure id="attachment_30368" aria-describedby="caption-attachment-30368" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30368 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/3-20.png" alt="3.- Installing LAMP stack on Fedora 34" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-20.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/3-20-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-20-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-20-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-20-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-20-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-30368" class="wp-caption-text">3.- Installing LAMP stack on Fedora 34</figcaption></figure>
<p>This means that PHP and Apache are working correctly.</p>
<h3>Installing LAMP stack on Fedora 34 &#8211; (M)ariaDB</h3>
<p><a href="https://www.osradar.com/tag/mariadb/" target="_blank" rel="noopener noreferrer">MariaDB</a> is a MySQL fork. Therefore, we are in the presence of a relational database management system. It is included in most existing Linux distributions. Also, it is perfectly compatible with MySQL and its commands as well as its engines. It is the last component of LAMP.</p>
<p>Keep in mind that MariaDB is used to store the data that applications require as they are being used. That is to say, no transactional system should be executed without a database manager. So it is vital to install it.</p>
<p>To do this, run the following command:</p>
<pre>:~$ sudo dnf install mariadb-server</pre>
<figure id="attachment_30369" aria-describedby="caption-attachment-30369" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30369 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/4-15.png" alt="4.- Installing MariaDB and LAMP stack on Fedora 34" width="1365" height="715" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-15.png 1365w, https://www.osradar.com/wp-content/uploads/2019/11/4-15-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-15-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-15-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-15-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-15-1068x559.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-30369" class="wp-caption-text">4.- Installing MariaDB and LAMP stack on Fedora 34</figcaption></figure>
<p>Then, at the end of the installation, start the service as with Httpd.</p>
<pre>:~$ sudo systemctl start mariadb</pre>
<p>And if you want it to run at system startup, just run this command:</p>
<pre>:~$ sudo systemctl enable mariadb</pre>
<p>Now, you have to secure the installation with the mysql_secure_installation script. With this script you will be able to define a root password and other small configurations.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<p>After defining the root password you will be asked other configuration questions. I answered yes to everything.</p>
<pre class="">Remove anonymous users? [Y/n] Y 
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] y</pre>
<p>Now, you have the LAMP stack installed in Fedora 34 without problems.</p>
<h2>Conclusion</h2>
<p>The LAMP stack is a set of vital applications to have a basic and functional web server. It is the basis for most web applications. And it is necessary for the development of applications and to serve them. Each one of the elements of the stack can be installed without problems but its administration would give for many articles. Anyway today you have learned to deploy it in its basic form.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-on-fedora-34/">How to install the LAMP stack on Fedora 34</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-lamp-stack-on-fedora-34/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to install lighttpd on CentOS 8 / AlmaLinux?</title>
		<link>https://www.osradar.com/how-to-install-lighttpd-almalinux-centos/</link>
					<comments>https://www.osradar.com/how-to-install-lighttpd-almalinux-centos/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 03:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[almalinux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[lighhtpd]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29549</guid>

					<description><![CDATA[<p>There are many web services in Unix but we always look for the one that best suits our needs. In this case, we will show you how to install Lighttpd on AlmaLinux / CentOS 8 Lighttpd is a “secure, fast, compatible, and very flexible” web server optimized for high-performance environments. It consumes very few resources [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-almalinux-centos/">How to install lighttpd on CentOS 8 / AlmaLinux?</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 many web services in Unix but we always look for the one that best suits our needs. In this case, we will show you how to install Lighttpd on AlmaLinux / CentOS 8</p>



<p><a href="https://www.lighttpd.net/" target="_blank" rel="noreferrer noopener">Lighttpd</a> is a “secure, fast, compatible, and very flexible” web server optimized for high-performance environments. It consumes very few resources compared to other web servers and especially fast for running AJAX applications. It is also open source and uses a BSD license and works on UNIX-like systems, such as Linux or BSD.</p>



<p>A server with AlmaLinux as an operating system together with Lighttpd is a guarantee for an efficient and resource-efficient web server.</p>



<h2 id="install-lighttpd-on-almalinux-/-centos-8"><a href="#install-lighttpd-on-almalinux-/-centos-8" name="install-lighttpd-on-almalinux-/-centos-8"></a>Install Lighttpd on AlmaLinux / CentOS 8</h2>



<p>Installing Lighttpd is very easy to do but there are a few extra configurations to do.</p>



<p>Let’s start by adding the <a href="https://www.osradar.com/nable-the-epel-repository-centos-rhel-oracle-linux-8/" target="_blank" rel="noreferrer noopener"><code>EPEL</code> repository</a> to the system because that is where the lighttpd package is hosted.</p>



<pre class="wp-block-preformatted">sudo dnf install epel-release</pre>



<p>Then, you can install the program by running the following command:</p>



<pre class="wp-block-preformatted">sudo dnf install lighttpd</pre>



<p>This will install the package immediately.</p>



<p>By default, AlmaLinux does not start the service when a program is installed. Therefore we have to do it.</p>



<pre class="wp-block-preformatted">sudo systemctl start lighttpd</pre>



<p>And now make the service start with the system.</p>



<pre class="wp-block-preformatted">sudo systemctl enable lighttpd</pre>



<p>Then, you can test the operation of the service with the command</p>



<pre class="wp-block-preformatted">sudo systemctl status lighttpd</pre>



<p>Output</p>



<pre class="wp-block-preformatted">● lighttpd.service - Lightning Fast Webserver With Light System Requirements
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-04-14 16:54:29 CEST; 11s ago
 Main PID: 1247 (lighttpd)
    Tasks: 1 (limit: 12142)
   Memory: 1.1M
   CGroup: /system.slice/lighttpd.service
           └─1247 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Apr 14 16:54:29 osradar systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Apr 14 16:54:29 osradar lighttpd[1247]: 2021-04-14 16:54:29: (server.c.1404) can't have more connections than fds/2:  1024 1024
</pre>



<p>Also, you can check the installed version with the command:</p>



<pre class="wp-block-preformatted">lighttpd -v
lighttpd/1.4.55 (ssl) - a light and fast webserver</pre>



<h2 id="install-php-on-almalinux-/-centos-8"><a href="#install-php-on-almalinux-/-centos-8" name="install-php-on-almalinux-/-centos-8"></a>Install PHP on AlmaLinux / CentOS 8</h2>



<p>One way to test the performance of the webserver, you have to <a href="https://www.osradar.com/configuring-php-opcache-apache-nginx/" target="_blank" rel="noreferrer noopener">install PHP</a> and make it work with Lighttpd</p>



<pre class="wp-block-preformatted">sudo dnf install php php-mysqlnd php-pdo php-gd php-mbstring php-fpm php-fpm lighttpd-fastcgi</pre>



<p>Now we need to make it work with Lighttpd by editing some configuration files.</p>



<pre class="wp-block-preformatted">sudo nano /etc/php-fpm.d/www.conf</pre>



<p>And modify the <code>group</code> and <code>user</code> values to be <code>lighttpd</code> values.</p>



<pre class="wp-block-preformatted">user = lighttpd
group = lighttpd</pre>



<p>In this same file, modify the value of <code>listen</code> to this one</p>



<pre class="wp-block-preformatted">listen = 127.0.0.1:9000</pre>



<p>Save the changes and close the file.</p>



<p>Now edit the <code>/etc/php.ini</code> file, which also needs to be modified by one value</p>



<pre class="wp-block-preformatted">sudo nano /etc/php.ini</pre>



<p>And edit the <code>cgi.fix_pathinfo</code> value to <code>1</code>.</p>



<pre class="wp-block-preformatted">cgi.fix_pathinfo=1</pre>



<p>Now, make another change to the <code>/etc/lighttpd/modules.conf</code> file and uncomment the following line:</p>



<pre class="wp-block-preformatted">include "conf.d/fastcgi.conf"</pre>



<p>Save the changes and close the editor.</p>



<p>Finally, we have to edit another configuration file called <code>fastcgi.conf</code> where we have to add the server that will listen for PHP requests.</p>



<pre class="wp-block-preformatted">sudo nano /etc/lighttpd/conf.d/fastcgi.conf</pre>



<p>And add this to the end of the file</p>



<pre class="wp-block-preformatted">fastcgi.server += ( ".php" =>
         ((
                 "host" => "127.0.0.1",
                 "port" => "9000",
                 "broken-scriptfilename" => "enable"
         ))
 )</pre>



<p>Again, save the changes and close the editor.</p>



<p>Then, restart the <code>lighttpd</code> service and start and enable <code>php-fpm</code>.</p>



<pre class="wp-block-preformatted">sudo systemctl restart lighttpd
sudo systemctl start php-fpm.service
sudo systemctl enable php-fpm.service</pre>



<h3 id="test-lighttpd-and-php-on-almalinux-/-centos-8"><a href="#test-lighttpd-and-php-on-almalinux-/-centos-8" name="test-lighttpd-and-php-on-almalinux-/-centos-8"></a>Test Lighttpd and PHP on AlmaLinux / CentOS 8</h3>



<p>The best way to know if everything is OK is to create a PHP file and check if it is interpreted.</p>



<p>So, create a PHP file with any valid code such as the <code>phpinfo</code> method in the default root directory.</p>



<pre class="wp-block-preformatted">sudo nano /var/www/lighttpd/info.php

<code data-origin="<pre&gt;<code&gt;sudo nano /var/www/lighttpd/info.php

<?php
phpinfo();
?&gt;
</code&gt;</pre&gt;
<p&gt;">&lt;?php
phpinfo();
?>
</code></pre>



<p>Save the changes and access it from a web browser, for example <code>http://your-domain/info.php</code> or <code>http://ip-server/info.php</code>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/04/1-8-1024x506.png" alt="1.- Lighttpd working" class="wp-image-29555" srcset="https://www.osradar.com/wp-content/uploads/2021/04/1-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/04/1-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/04/1-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/04/1-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/04/1-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/04/1-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Lighttpd working</figcaption></figure>



<p>This checks that everything is working properly.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Lighttpd stands out for being very light in the execution of web applications. So it can serve us for many interesting things in our daily work on a server. Today we have learned to install it on a server with Ubuntu 20.04 and we have also added support for PHP.</p>



<p>Please share this post and join our Telegram channel.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-almalinux-centos/">How to install lighttpd on CentOS 8 / AlmaLinux?</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-lighttpd-almalinux-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install CloudPanel on Debian 10</title>
		<link>https://www.osradar.com/install-cloudpanel-debian/</link>
					<comments>https://www.osradar.com/install-cloudpanel-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 24 Mar 2021 07:41:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[cloudpanel]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29225</guid>

					<description><![CDATA[<p>Hello, friends. In this opportunity, I will show you how to install Cloud Panel on Debian 10 It is a fairly simple process but that allows us to have a simple and effective web administration panel. According to the project website: CloudPanel is a free server control panel for PHP, built for the cloud for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cloudpanel-debian/">How to install CloudPanel on Debian 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>Hello, friends. In this opportunity, I will show you how to install Cloud Panel on Debian 10 It is a fairly simple process but that allows us to have a simple and effective web administration panel.</p>



<p>According to the <a href="https://www.cloudpanel.io/" target="_blank" rel="noreferrer noopener">project website</a>:</p>



<blockquote class="wp-block-quote"><p>CloudPanel is a free server control panel for PHP, built for the cloud for maximum performance and security.</p></blockquote>



<p>It is compatible with many of the most popular cloud services such as AWS, Google Cloud, or Microsoft Azure but we can also install it on our server without any problem.</p>



<p>Some of the main features of CloudPanel are:</p>



<ul><li>CloudPanel is free. So, No Contract, hidden costs, limitations, or restrictions.</li><li>A clean and easy-to-use server control panel to get things done in no time.</li><li>Supports more than ten languages.</li><li>Free SSL Certificates for all of your domains, with one-click, automatically renewed.</li><li>Ultra-fast lightweight components like <a href="https://www.osradar.com/install-nginx-from-the-source-code-debian-ubuntu/" target="_blank" rel="noreferrer noopener">NGINX</a>, PHP-FPM, and <a href="https://www.osradar.com/install-mysql-on-debian-10/" target="_blank" rel="noreferrer noopener">MySQL</a> for maximum performance.</li></ul>



<p>So it is a very valid option for projects of all types of sizes.</p>



<h2 id="install-cloudpanel-on-debian-10"><a href="#install-cloudpanel-on-debian-10" name="install-cloudpanel-on-debian-10"></a>Install CloudPanel on Debian 10</h2>



<p>Despite being so powerful and useful, CloudPanel is only available for Debian 10 and servers with at least 2Gb of RAM and 15 Gb of disk space. Logically, the more capacity the server has, the better.</p>



<p>For this post, <strong>you need to have root access.</strong></p>



<p>So, open a terminal or connect to the server via SSH and update the system.</p>



<pre class="wp-block-preformatted">apt update
apt upgrade</pre>



<p>Then install some packages needed for the tutorial like <code>curl</code> and <code>wget</code></p>



<pre class="wp-block-preformatted">apt install curl wget</pre>



<p>Fortunately, the installation of Cloud Panel is quite simple to perform and it is all thanks to a script provided by the developers. So, the download and installation of Cloud Panel are basically summarized in this command:</p>



<pre class="wp-block-preformatted">curl -sSL https://installer.cloudpanel.io/ce/v1/install.sh | bash</pre>



<p>And there will start the whole process of installing packages, libraries, and dependencies as well as the installation of CloudPanel itself.</p>



<p>At the end, you will see an output screen similar to this one</p>



<p>Now open your web browser and go to <code>https://your-server:8443</code> and you will see the admin user creation screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/2-8-1024x506.png" alt="2.- Creating the new user" class="wp-image-29226" srcset="https://www.osradar.com/wp-content/uploads/2021/03/2-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/2-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/2-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/2-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/2-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/2-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Creating the new user</figcaption></figure>



<p>Then you will see the login screen:</p>



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



<p>Log in with your credentials and you will see the CloudPanel dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/03/4-3-1024x506.png" alt="4.- Cloud Panel" class="wp-image-29228" srcset="https://www.osradar.com/wp-content/uploads/2021/03/4-3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/03/4-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/4-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/4-3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/03/4-3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/03/4-3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Cloud Panel</figcaption></figure>



<p>So, enjoy it</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Cloudpanel is a great solution to have a PHP panel where you can deploy an application without several problems. Being free and without restrictions makes it ideal for small or educational projects without economic risk.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cloudpanel-debian/">How to install CloudPanel on Debian 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/install-cloudpanel-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Symfony on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-symfony-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-symfony-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 13 Feb 2021 01:27:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28451</guid>

					<description><![CDATA[<p>Hello, friends. Hope you are well. There are many PHP frameworks but in this post, you will learn how to install Symfony. Maybe this is one of the most advanced ones out there. Symfony is an entire web development platform that includes a framework: The leading PHP framework to create websites and web applications. Built [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-ubuntu-20-04/">How to install Symfony 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>Hello, friends. Hope you are well. There are many PHP frameworks but in this post, you will learn how to install Symfony. Maybe this is one of the most advanced ones out there.</p>



<p>Symfony is an entire web development platform that includes a framework:</p>



<blockquote class="wp-block-quote"><p>The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.</p></blockquote>



<p>One of the main advantages of Symfony is that it has an MIT license, which is the same as a permissive free software license.</p>



<p>On the other hand, <strong>it uses the Model &#8211; View &#8211; Controller</strong> pattern that is so widespread among developers. Also, it allows you to create from simple websites to macro projects and complex applications all hand in hand with a huge community of users.</p>



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



<h2 id="install-symfony-on-ubuntu-20.04"><a href="#install-symfony-on-ubuntu-20.04" name="install-symfony-on-ubuntu-20.04"></a>Install Symfony on Ubuntu 20.04</h2>



<p>Symfony can be installed via composer or from your installer which is the easiest and most feasible option.</p>



<p>So, open the terminal and upgrade Ubuntu 20.04</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Symfony is a PHP framework, so it requires PHP to work. If you already have a <a href="https://www.osradar.com/install-lamp-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">LAMP</a> or <a href="https://www.osradar.com/install-lemp-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">LEMP</a> server you do not need this step.</p>



<pre class="wp-block-preformatted">sudo apt install php php-json php-ctype php-curl php-mbstring php-xml php-zip php-tokenizer php-tokenizer libpcre3 --no-install-recommends</pre>



<p>After this, install <code>GIT</code>, <code>unzip</code> and <code>zip</code> for a successful installation</p>



<pre class="wp-block-preformatted">sudo apt install git zip unzip</pre>



<p>After that, download and install the <code>symfony-cli</code> tool</p>



<pre class="wp-block-preformatted">wget https://get.symfony.com/cli/installer -O - | bash</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="492" src="https://www.osradar.com/wp-content/uploads/2021/02/1-3-1024x492.png" alt="1.- Download Symfony Cli" class="wp-image-28452" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-3-1024x492.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-768x369.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-696x334.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-1068x513.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-3.png 1197w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Download Symfony Cli</figcaption></figure>



<p>After that, add the Symfony installation path to the <code>PATH</code> user.</p>



<pre class="wp-block-preformatted">export PATH="$HOME/.symfony/bin:$PATH".</pre>



<p>And apply the changes by running</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<p>With this, we will be able to use the tool from any location of the prompt.</p>



<p>Now configure the email and user of your user in Git.</p>



<pre class="wp-block-preformatted">git config --global user.email "angelo@osradar.com"
git config --global user.name "Angelo"</pre>



<p>Now you can create a new project by running it.</p>



<pre class="wp-block-preformatted">symfony new example --full</pre>



<p><strong>Note: You have to replace example with the name of your project.</strong></p>



<p>And now you can start working with your text editor like <a href="https://www.osradar.com/how-to-install-visual-studio-code-on-ubuntu-20-04/">Visual Studio Code</a>.</p>



<p>To start the local webserver you can run:</p>



<pre class="wp-block-preformatted">cd example
symfony server:start</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="269" src="https://www.osradar.com/wp-content/uploads/2021/02/2-1-1024x269.png" alt="2.- Serve the project" class="wp-image-28453" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-1-1024x269.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-768x202.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-696x183.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-1068x281.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/2-1.png 1213w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Serve the project</figcaption></figure>



<p>Remember to replace example with the name of your project.</p>



<p>Now you can go to <code>http://localhost:8000</code> and check your project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/3-1024x506.png" alt="3.- Symfony on Ubuntu 20.04" class="wp-image-28454" srcset="https://www.osradar.com/wp-content/uploads/2021/02/3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Symfony on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Thanks to this post, now you know how to install this framework on Ubuntu 20.04 this is the first step to start developing applications with this great framework.</p>



<p>More info: <a href="https://symfony.com/doc/current/" target="_blank" rel="noreferrer noopener">Official documentation</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-ubuntu-20-04/">How to install Symfony 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-symfony-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Drupal in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-drupal-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-drupal-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Thu, 07 Jan 2021 22:56:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[drupal for windows 10]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27225</guid>

					<description><![CDATA[<p>Hi! Today we will talk a little bit about Drupal. This is a content management system based on PHP and MySQL or PostgreSQL. In addition, it allows the administration of users, documents, discussions or news. This framework is free, multipurpose and modular. Additionally, Drupal stands out for being highly configurable and easy to use by [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-drupal-in-windows-10/">How to install Drupal 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>Hi! Today we will talk a little bit about Drupal. This is a content management system based on PHP and MySQL or PostgreSQL. In addition, it allows the administration of users, documents, discussions or news. This framework is free, multipurpose and modular. Additionally, Drupal stands out for being highly configurable and easy to use by users. Even without much computer knowledge. Well, today we will see how to install Drupal in Windows 10.</p>



<h2>Prerequisites</h2>



<ul><li>A web server such as <a href="https://www.osradar.com/how-to-install-apache-on-windows-10/" target="_blank" rel="noreferrer noopener">Apache</a>, <a href="https://www.osradar.com/how-to-install-nginx-server-on-windows-10/" target="_blank" rel="noreferrer noopener">Nginx</a> or <a href="https://www.osradar.com/how-to-enable-internet-information-services-in-windows-10/" target="_blank" rel="noreferrer noopener">Microsoft IIS</a></li><li>Any of the following databases: <a href="https://www.osradar.com/how-to-install-mysql-in-windows-10/" target="_blank" rel="noreferrer noopener">MySQL</a> &#8211; 5.5.3 (<a href="https://www.osradar.com/how-to-install-mariadb-on-windows-server-2019/" target="_blank" rel="noreferrer noopener">MariaDB</a> 5.5.20, Percona 5.5.8) or higher with an InnoDB-compatible primary storage engine. <a href="https://www.osradar.com/how-to-install-postgresql-on-windows-10/" target="_blank" rel="noreferrer noopener">PostgreSQL</a> &#8211; 9.1.2 or higher. SQLite &#8211; 3.4.2 or higher</li></ul>



<p>However, all these requirements can be met by using a program like XAMPP. See <a href="https://www.osradar.com/how-to-install-xampp-on-windows-10/" target="_blank" rel="noreferrer noopener">here</a> how to use and configure it.</p>



<h2>Downloading Drupal for Windows 10</h2>



<p>This software can be downloaded for free from <a href="https://www.drupal.org/download" target="_blank" rel="noreferrer noopener">here.</a> Please download the compressed file in .zip format. </p>



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



<h2>Creating the new database.</h2>



<p>Now it is necessary to create the new database. Indeed, this is essential to be able to use Drupal. Consequently, it opens the XAMMP control center. Once there, please click on the MySQL Configure button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="668" height="433" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp11-1.png" alt="Opening the MySQL control center." class="wp-image-27228" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp11-1.png 668w, https://www.osradar.com/wp-content/uploads/2020/12/dp11-1-300x194.png 300w" sizes="(max-width: 668px) 100vw, 668px" /><figcaption><em>Opening the MySQL control center.</em></figcaption></figure>



<p>Immediately the database manager will be deployed. Please click on New. Then assign the name you want and finally click on <strong>Create.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp-1024x787.png" alt="Creating the database." class="wp-image-27229" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the database.</figcaption></figure>



<h2>Decompressing the downloaded file.</h2>



<p>Back to the previously downloaded file, it&#8217;s time to do two steps. First decompress it and assign a simpler name to the folder. In my case <em>Drupal</em>. Then move it to the next location:</p>



<pre class="wp-block-preformatted">C:\xampp\htdocs</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp2-1024x787.png" alt="Decompress Drupal content" class="wp-image-27231" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Decompress Drupal content</figcaption></figure>



<h2>Starting the Drupal installation in Windows 10</h2>



<p>Once these previous steps are done, it is time to start the installation of Drupal. With this in mind, open the following address in your web browser.</p>



<pre class="wp-block-preformatted"><strong>http://localhost/Drupal</strong> </pre>



<p>Please note that this address may vary depending on the name of the assigned folder. The installer will be immediately deployed. First set the preferred language.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp3-1024x787.jpg" alt="Set the language for Drupal" class="wp-image-27233" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp3-1024x787.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp3-300x231.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp3-768x590.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp3-696x535.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp3-1068x821.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp3.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Set the language for Drupal</figcaption></figure>



<p>Then, the wizard offers the installation mode. Standard, minimum or a sample Demo. For the purposes of this tutorial, I selected the Standard installation</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp4-1024x787.jpg" alt="Selecting the type of installation." class="wp-image-27234" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp4-1024x787.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp4-300x231.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp4-768x590.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp4-696x535.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp4-1068x821.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp4.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Selecting the type of installation.</figcaption></figure>



<p>The assistant will then verify the requirements for running Drupal. In this case, my server needs opcache. However, this component is not essential to run the installation. Therefore, we can skip it</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp8-1024x787.jpg" alt="Checking the requirements." class="wp-image-27235" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp8-1024x787.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-300x231.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-768x590.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-696x535.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1068x821.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp8.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking the requirements.</figcaption></figure>



<p>In the next screen, please enter the parameters of the database. Please remember to enter the name of the database you just created.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp6-1024x787.jpg" alt="Setting up the database. " class="wp-image-27237" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp6-1024x787.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp6-300x231.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp6-768x590.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp6-696x535.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp6-1068x821.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp6.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Setting up the database.</figcaption></figure>



<p>Now wait a few moments while the installation of Drupal</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp9-1-1024x787.png" alt="" class="wp-image-27239" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp9-1-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-1-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-1-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-1-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-1-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-1.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Assistant installing Drupal in Windows 10</figcaption></figure>



<p>Once the installation is complete, it is time to set up the website. Please set the name and email address of the website. It is also necessary to assign a username and password. This user must also be provided with an email address. In addition to the region parameters.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp8-1-1024x787.jpg" alt="Setting up the site " class="wp-image-27240" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp8-1-1024x787.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1-300x231.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1-768x590.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1-696x535.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1-1068x821.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp8-1.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Setting up the site</figcaption></figure>



<p>Finally the installation will be finished!</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/dp9-2-1024x787.png" alt="Successful installation of Drupal in Windows 10" class="wp-image-27242" srcset="https://www.osradar.com/wp-content/uploads/2020/12/dp9-2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/dp9-2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Successful installation of Drupal in Windows 10</figcaption></figure>



<p>From now on, you just have to start the server and paste the following web address:</p>



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



<p>This way we have seen how to install Drupal in Windows 10. So you can enjoy this powerful and friendly framework. See you soon!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-drupal-in-windows-10/">How to install Drupal 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-drupal-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
