<?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>Apache Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/apache/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 Apache Subversion on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-subversion-ubuntu-control-version-programming/</link>
					<comments>https://www.osradar.com/install-subversion-ubuntu-control-version-programming/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 25 Aug 2021 23:03:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31677</guid>

					<description><![CDATA[<p>Hello, friends. Although Git is the most popular version control system out there, some projects are maintained using Subversion. So, in this post, you will learn how to install Apache Subversion on UBuntu 20.04. Brief introduction to Apache Subversion According to the website of this program: Subversion is an open-source version control system. Founded in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-subversion-ubuntu-control-version-programming/">How to install Apache Subversion 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 class="has-line-data">Hello, friends. Although Git is the most popular version control system out there, some projects are maintained using Subversion. So, in this post, you will learn how to install Apache Subversion on UBuntu 20.04.</p>



<h2 class="code-line"><a id="Brief_introduction_to_Apache_Subversion_2"></a>Brief introduction to Apache Subversion</h2>



<p class="has-line-data">According to <a href="https://subversion.apache.org/" target="_blank" rel="noreferrer noopener">the website</a> of this program:</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="6" data-line-end="7">Subversion is an open-source version control system. Founded in 2000 by CollabNet, Inc. the Subversion project and software have seen incredible success over the past decade. Subversion has enjoyed and continues to enjoy widespread adoption in both the open-source arena and the corporate world.</p></blockquote>



<p class="has-line-data">With the advent of Git, it has indeed fallen in use, but it is still important to many developers and projects worldwide. That’s why learning how to install it can be quite useful.</p>



<p class="has-line-data">What does Subversion pretend to be? Subversion exists to be universally recognized and adopted as an open-source, centralized version control system characterized by its reliability as a haven for valuable data; the simplicity of its model and usage; and its ability to support the needs of a wide variety of users and projects, from individuals to large-scale enterprise operations.</p>



<p class="has-line-data">So now we can get started.</p>



<h2 class="code-line"><a id="Install_Apache_Subversion_on_Ubuntu_2004_14"></a>Install Apache Subversion on Ubuntu 20.04</h2>



<p class="has-line-data">So, before we start, update your entire Linux distribution as follows:</p>



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



<p class="has-line-data">Then, install Apache and the <code>apache2-utils</code> package</p>



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



<p class="has-line-data">Check the status of the Apache service for any errors</p>



<pre class="wp-block-preformatted">sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-08-12 17:24:56 CEST; 7s ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 1872 (apache2)
      Tasks: 55 (limit: 2286)
     Memory: 5.6M
     CGroup: /system.slice/apache2.service
             ├─1872 /usr/sbin/apache2 -k start
             ├─1873 /usr/sbin/apache2 -k start
             └─1874 /usr/sbin/apache2 -k start

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



<p class="has-line-data">If everything is OK, then you can install the modules required by Subversion.</p>



<pre class="wp-block-preformatted">sudo apt install libapache2-mod-svn subversion-tools libsvn-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libapr1-dev libaprutil1-dev libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libldap2-dev libsctp-dev libsctp1 libserf-1-1 libsvn1 libutf8proc2 linux-libc-dev
  subversion uuid-dev
Suggested packages:
  db5.3-util python glibc-doc manpages-dev lksctp-tools libserf-dev libsvn-doc zlib1g-dev ruby-svn svn2cl
Recommended packages:
  manpages-dev default-mta | mail-transport-agent libconfig-inifiles-perl libsvn-perl liburi-perl python-subversion
The following NEW packages will be installed:
  libapache2-mod-svn libapr1-dev libaprutil1-dev libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libldap2-dev libsctp-dev libsctp1 libserf-1-1 libsvn-dev libsvn1
  libutf8proc2 linux-libc-dev subversion subversion-tools uuid-dev
0 upgraded, 18 newly installed, 0 to remove and 29 not upgraded.
Need to get 9,473 kB of archives.
After this operation, 63.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">And then Subversion itself:</p>



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



<p class="has-line-data">After that, enable the apache modules for Subversion</p>



<pre class="wp-block-preformatted">sudo a2enmod dav
sudo a2enmod dav_svn</pre>



<p class="has-line-data">In my case, they were already enabled, but better be sure.</p>



<h3 class="code-line"><a id="Configuring_Subversion_for_the_first_use_44"></a>Configuring Subversion for the first use</h3>



<p class="has-line-data">Subversion is already installed and running, but it is convenient to make some previous configurations.</p>



<p class="has-line-data">The first thing to do is to create a username and password to secure access from the web.</p>



<p class="has-line-data">To do this, run the following command:</p>



<pre class="wp-block-preformatted">sudo htpasswd -cm /etc/apache2/dav_svn.passwd admin
New password:
Re-type new password:
Adding password for user admin</pre>



<p class="has-line-data">You can replace <code>admin</code> with any username you want. The above command will prompt for the password of this new user.</p>



<p class="has-line-data">Apply the changes by restarting Apache</p>



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



<p class="has-line-data">Now, you have to modify the configuration file of one of the Subversion modules for Apache</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/mods-enabled/dav_svn.conf</pre>



<p class="has-line-data">And replace the content with the following:</p>



<pre class="wp-block-preformatted">Alias /svn /var/www/svn
&lt;Location /svn&gt;

    DAV svn
    SVNParentPath /var/www/svn

    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    Require valid-user

&lt;/Location&gt;</pre>



<p class="has-line-data"><strong>Note: It is advisable then, to make a backup before</strong></p>



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



<p class="has-line-data">Now create a new folder for Subversion projects.</p>



<pre class="wp-block-preformatted">sudo mkdir /var/www/svn</pre>



<p class="has-line-data">Next, it is necessary to initialize the Subversion project.</p>



<pre class="wp-block-preformatted">sudo sudo svnadmin create /var/www/svn/[project-name]</pre>



<p class="has-line-data">Remember that you have to replace <code>[project-name]</code> with the name of your project as this will generate a folder.</p>



<p class="has-line-data">Make Apache the owner of the project folder.</p>



<pre class="wp-block-preformatted">sudo chown -R www-data:www-data /var/www/svn</pre>



<p class="has-line-data">And assign the correct permissions:</p>



<pre class="wp-block-preformatted">sudo chmod -R 775 /var/www/svn</pre>



<p class="has-line-data">Now yes, you can see the change from apache and a web browser at the address <code>http://ip-server/svn/project</code>, and from now on you can work with Subversion.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="511" src="https://www.osradar.com/wp-content/uploads/2021/08/1-8-1024x511.png" alt="1.- Apache Subversion working on Ubuntu 20.04" class="wp-image-31685" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-8-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-8-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1-8.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Apache Subversion working on Ubuntu 20.04</figcaption></figure>



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



<p class="has-line-data">Git is the clear market dominator but Subversion is a useful tool that adapts to other needs. So it is always convenient to know how to install it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-subversion-ubuntu-control-version-programming/">How to install Apache Subversion 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-subversion-ubuntu-control-version-programming/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 enable the Brotli compression on Apache and Debian 10</title>
		<link>https://www.osradar.com/enable-the-brotli-compression-apache-debian-10/</link>
					<comments>https://www.osradar.com/enable-the-brotli-compression-apache-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 23:45:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31266</guid>

					<description><![CDATA[<p>Hello, friends. On a website, the speed and size of the files are vital to avoid possible crashes on the server. So today in this post, you will learn how to enable Brotli compression on Apache on Debian 10. It’s a simple process but it can help a lot. Why do it? The algorithm that [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-the-brotli-compression-apache-debian-10/">How to enable the Brotli compression on Apache and 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 class="has-line-data">Hello, friends. On a website, the speed and size of the files are vital to avoid possible crashes on the server. So today in this post, you will learn how to enable Brotli compression on Apache on Debian 10. It’s a simple process but it can help a lot.</p>



<h2 class="code-line"><a id="Why_do_it_2"></a>Why do it?</h2>



<p class="has-line-data">The algorithm that <a href="https://github.com/google/brotli" target="_blank" rel="noreferrer noopener">Brotli </a>uses is more efficient at compressing files than other compression methods. Therefore we will be able to notice how the files on our server will weigh less and this will influence the load of the files.</p>



<p class="has-line-data">In general, you can expect files to be 15% to 25% smaller. So it is always a good idea to do it even if GZIP is the most popular among them. For a while, Brotli lacked the browser support that would allow it to be used in the same way as GZIP, but that changed and nowadays they are all supported.</p>



<p class="has-line-data">So, in this post, you will learn how to enable it in Apache using Debian 10 as an example.</p>



<h2 class="code-line">Enabling Brotli compression on Apache</h2>



<p class="has-line-data">One of the first things we have to do is to access the server or open a terminal.</p>



<p class="has-line-data">Then proceed to update the whole system.</p>



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



<p class="has-line-data">Fortunately, Brotli is available from the official Debian repositories so installation becomes quite easy.</p>



<p class="has-line-data">So to install it, run the following command:</p>



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



<p class="has-line-data">This way, we already have the program installed. Now we need to link it with Apache so that they can do the job together.</p>



<p class="has-line-data">First, enable the module in Apache. We can do this because recent versions of Apache include this module. In case you have manually installed apache, you have to rebuild it together with the module.</p>



<pre class="wp-block-preformatted">sudo a2enmod brotli </pre>



<p class="has-line-data">Now in the virtualhost of your site, you have to add the following lines for the site to be processed with brotli.</p>



<pre class="wp-block-preformatted">&lt;IfModule mod_brotli.c>
    AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript
&lt;/IfModule></pre>



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



<p class="has-line-data">And to apply the changes, you have to completely restart Apache.</p>



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



<p class="has-line-data">This is enough, but if you want to verify the process, you have to run the following command:</p>



<pre class="wp-block-preformatted">curl -I -H 'Accept-Encoding: br' [your-domain]</pre>



<p class="has-line-data">If on the output screen the value of <code>Content-Encoding</code> is similar to <code>Content-Encoding: br</code>, then the whole process has been successful.</p>



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



<p class="has-line-data">In a web server, web server enhancement tools are essential for everything to work. The compression Brotli helps a lot in this task and with Apache, it can be useful.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-the-brotli-compression-apache-debian-10/">How to enable the Brotli compression on Apache and 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/enable-the-brotli-compression-apache-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</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>Install PHP 8 on FreeBSD</title>
		<link>https://www.osradar.com/install-php-8-on-freebsd/</link>
					<comments>https://www.osradar.com/install-php-8-on-freebsd/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 25 Mar 2021 04:48:00 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29220</guid>

					<description><![CDATA[<p>Hello, friends. Every day more and more people make the jump from Linux to FreeBSD and it is a good time to help them with this post where you will learn how to install PHP 8 on FreeBSD 12 along with Apache. Recently a new version of PHP has been released which is a major [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-8-on-freebsd/">Install PHP 8 on FreeBSD</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. Every day more and more people make the jump from Linux to FreeBSD and it is a good time to help them with this post where you will learn how to install PHP 8 on FreeBSD 12 along with Apache.</p>



<p><a href="https://www.php.net/releases/8.0/en.php" target="_blank" rel="noreferrer noopener">Recently a new version of PHP</a> has been released which is a major release promising many things like improved performance. This makes it an attractive release and already many open source applications have started to support it. So it is also the case of FreeBSD which is already leaping.</p>



<h2 id="install-php-8-on-freebsd-12"><a href="#install-php-8-on-freebsd-12" name="install-php-8-on-freebsd-12"></a>Install PHP 8 on FreeBSD 12</h2>



<p>In this post, we will use Apache so that together with FreeBSD we have a small server where we will be able to test the operation of the same one. Also, we will run the commands with the root user but if your user has <a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noreferrer noopener">sudo access</a>, you can use it too.</p>



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



<h3 id="install-apache-on-freebsd"><a href="#install-apache-on-freebsd" name="install-apache-on-freebsd"></a>Install Apache on FreeBSD</h3>



<p>First of all, you have to install the Apache webserver from the official repositories, just run:</p>



<pre class="wp-block-preformatted">pkg install apache24
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	apache24: 2.4.46_2
	apr: 1.7.0.1.6.1_1
	ca_root_nss: 3.58
	curl: 7.74.0
	db5: 5.3.28_7
	expat: 2.2.10
	gdbm: 1.18.1_1
	jansson: 2.13.1
	libnghttp2: 1.42.0
	libxml2: 2.9.10_2
	pcre: 8.44
	perl5: 5.32.1_1
	readline: 8.0.4

Number of packages to be installed: 13

The process will require 157 MiB more space.
36 MiB to be downloaded.

Proceed with this action? [y/N]: </pre>



<p>The command will also install several dependencies that are necessary to install Apache.</p>



<p>After installing it, make it start with the system, this is recommended.</p>



<pre class="wp-block-preformatted">sysrc apache24_enable=yes</pre>



<p>After that, start the service:</p>



<pre class="wp-block-preformatted">service apache24 start</pre>



<p>This way we will have Apache on FreeBSD. Do not forget to open ports <code>80</code> and <code>443</code> of your Firewall so that it can run correctly.</p>



<h3 id="install-php-8-on-freebsd"><a href="#install-php-8-on-freebsd" name="install-php-8-on-freebsd"></a>Install PHP 8 on FreeBSD</h3>



<p>Now it is the turn of PHP 8, which fortunately is already in the official repositories. So we will be able to install it without any problems &#8211; some of the PHP modules will have to be installed from ports or by compiling the source code but they are few.</p>



<p>So run the following command to install PHP 8 and some of its main modules</p>



<pre class="wp-block-preformatted">pkg install php80 mod_php80 php80-mbstring php80-zlib php80-curl php80-gd php80-gd
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 18 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	fontconfig: 2.13.92_2,1
	freetype2: 2.10.4
	giflib: 5.2.1
	jbigkit: 2.1_1
	jpeg-turbo: 2.0.6
	libargon2: 20190702
	libgd: 2.3.1,1
	mod_php80: 8.0.3
	oniguruma: 6.9.6
	pcre2: 10.36
	php80: 8.0.3
	php80-curl: 8.0.3
	php80-gd: 8.0.3
	php80-mbstring: 8.0.3
	php80-zlib: 8.0.3
	png: 1.6.37
	tiff: 4.2.0
	webp: 1.1.0

Number of packages to be installed: 18

The process will require 66 MiB more space.
12 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>



<p>With Apache and PHP installed, we have to make some configurations to get them working.</p>



<h3 id="configuring-apache-to-work-with-php"><a href="#configuring-apache-to-work-with-php" name="configuring-apache-to-work-with-php"></a>Configuring Apache to work with PHP</h3>



<p>The configuration we have to do is quite simple. In the <code>/usr/local/etc/apache24/Includes/</code> directory we have to add a file where PHP support is added.</p>



<p>In my case, I like nano so I have installed it.</p>



<pre class="wp-block-preformatted">pkg install nano</pre>



<p>And with it create and edit the file:</p>



<pre class="wp-block-preformatted">nano /usr/local/etc/apache24/Includes/php.conf</pre>



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



<pre class="wp-block-preformatted">&lt;IfModule dir_module>
         DirectoryIndex index.php index.html
    
         &lt;FilesMatch "\.php$">
                  SetHandler application/x-httpd-php
         &lt;/FilesMatch>

         &lt;FilesMatch "\.phps$">
                  SetHandler application/x-httpd-php-source
         &lt;/FilesMatch>
&lt;/IfModule></pre>



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



<p>To verify if everything went well, it is necessary to make a sample file with some PHP code in the default Apache DocumentRoot.</p>



<pre class="wp-block-preformatted">nano /usr/local/www/apache24/data/info.php</pre>



<p>And add</p>



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



<p>Save the changes and close the editor. To apply all changes made, restart Apache.</p>



<pre class="wp-block-preformatted">service apache24 restart</pre>



<p>Now open your web browser and go to <code>http://your-server/info.php</code> and you will see the following</p>



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



<p>So, PHP 8 is ready for work.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-php-8-on-freebsd/">Install PHP 8 on FreeBSD</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-8-on-freebsd/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Spark on Debian 10</title>
		<link>https://www.osradar.com/install-apache-spark-debian-10/</link>
					<comments>https://www.osradar.com/install-apache-spark-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 02 Mar 2021 09:49:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spark]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28812</guid>

					<description><![CDATA[<p>Hello, folks. Many companies are looking at Apache Spark as a component that can serve to somehow not depend so much on Elasticsearch. That’s why in this post, I’ll show you how to install Apache Spark on Debian 10. According to the project website: Apache Spark is a unified analytics engine for large-scale data processing. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-spark-debian-10/">How to install Apache Spark 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, folks. Many companies are looking at Apache Spark as a component that can serve to somehow not depend so much on Elasticsearch. That’s why in this post, I’ll show you how to install Apache Spark on Debian 10.</p>



<p>According to <a href="https://spark.apache.org/">the project website</a>:</p>



<blockquote class="wp-block-quote"><p>Apache Spark is a unified analytics engine for large-scale data processing.</p></blockquote>



<p>Also, we can count on its maintenance and evolution to be carried out by prestigious working groups, and there will be great flexibility and interconnection with other Apache modules such as Hadoop, Hive, or Kafka.</p>



<p>Spark is used by a wide range of organizations to process large datasets. In fact, Since 2009, more than 1200 developers have contributed to Spark!</p>



<p><strong>Learning Apache Spark is easy</strong> whether you come from a Java, Scala, Python, R, or SQL background.</p>



<h2 id="install-apache-spark-on-debian-10"><a href="#install-apache-spark-on-debian-10" name="install-apache-spark-on-debian-10"></a>Install Apache Spark on Debian 10</h2>



<p>The installation of Apache Spark is quite simple and easier than you might think.</p>



<h3 id="install-some-required-packages"><a href="#install-some-required-packages" name="install-some-required-packages"></a>Install some required packages</h3>



<p>So, connect via <a href="https://www.osradar.com/manages-ssh-connections-from-windows-10-with-putty/" target="_blank" rel="noreferrer noopener">SSH</a> to your server or open a terminal. To make sure there are no problems, update the distribution completely.</p>



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



<p>After that, install Java on Debian 10.</p>



<pre class="wp-block-preformatted">sudo apt install default-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java default-jdk-headless default-jre default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libfontconfig1
  libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libjpeg62-turbo liblcms2-2 libllvm7 libnspr4 libnss3 libpciaccess0 libpcsclite1
  libsensors-config libsensors5 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxi6 libxrender1 libxshmfence1 libxtst6 libxxf86vm1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
  x11-common
Suggested packages:
  libasound2-plugins alsa-utils cups-common liblcms2-utils pciutils pcscd lm-sensors openjdk-11-demo openjdk-11-source visualvm libnss-mdns fonts-dejavu-extra
  fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
Recommended packages:
  libxt-dev libatk-wrapper-java-jni fonts-dejavu-extra
The following NEW packages will be installed:
  ca-certificates-java default-jdk default-jdk-headless default-jre default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libfontconfig1
  libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libjpeg62-turbo liblcms2-2 libllvm7 libnspr4 libnss3 libpciaccess0 libpcsclite1
  libsensors-config libsensors5 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxi6 libxrender1 libxshmfence1 libxtst6 libxxf86vm1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
  x11-common
0 upgraded, 61 newly installed, 0 to remove and 0 not upgraded.
Need to get 294 MB of archives.
After this operation, 642 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>And verify that everything went well by displaying the installed version.</p>



<pre class="wp-block-preformatted">java --version
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)</pre>



<p>With Java running correctly, it’s time to install the Scala package on Debian 10.</p>



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



<p>Check the version of Scala to make sure it was installed correctly.</p>



<pre class="wp-block-preformatted">scala -version
Scala code runner version 2.11.12 -- Copyright 2002-2017, LAMP/EPFL</pre>



<p>With this, we are done with the Apache Spark dependencies.</p>



<h3 id="download-and-install-apache-spark-on-debian-10"><a href="#download-and-install-apache-spark-on-debian-10" name="download-and-install-apache-spark-on-debian-10"></a>Download and install Apache Spark on Debian 10</h3>



<p>Now we can download the Apache Spark binary.</p>



<p>So, navigate to the /tmp/ folder and from there with the wget command to perform the download</p>



<pre class="wp-block-preformatted">cd /tmp
wget -c https://archive.apache.org/dist/spark/spark-3.0.2/spark-3.0.2-bin-hadoop2.7.tgz</pre>



<p>then decompress it and move it to a safe location such as <code>/opt/.</code></p>



<pre class="wp-block-preformatted">tar -xvzf spark-3.0.2-bin-hadoop2.7.tgz
sudo mv spark-3.0.2-bin-hadoop2.7/ /opt/spark</pre>



<p>To use Apache Spark seamlessly from any location at the prompt, you need to add this path to the <code>.bashrc</code> file</p>



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



<p>At the end of the file, add the following lines:</p>



<pre class="wp-block-preformatted">export SPARK_HOME=/opt/spark
export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin</pre>



<p>Save the changes and close the editor. To apply the changes run:</p>



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



<p>Now start Apache Spark with these commands, one of which is the master of the cluster</p>



<pre class="wp-block-preformatted">start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /opt/spark/logs/spark-angelo-org.apache.spark.deploy.master.Master-1-osradar.out</pre>



<p>And the slave, which in this case will be the same localhost, but you can replace it with the IP address or Domain of the computer.</p>



<pre class="wp-block-preformatted">start-slave.sh spark://localhost:7077
starting org.apache.spark.deploy.worker.Worker, logging to /opt/spark/logs/spark-angelo-org.apache.spark.deploy.worker.Worker-1-osradar.out</pre>



<p>Now you can open a web browser and access the web interface via <code>http://your-server:8080</code>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/1-9-1024x502.png" alt="1.- Apache Spark on Debian 10" class="wp-image-28843" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-9-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-9.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Apache Spark on Debian 10</figcaption></figure>



<p>So, Apache Spark is working properly…</p>



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



<p>Apache Spark is easy to install on Debian 10 but so powerful that you can hardly believe it. With this tool, you can do a lot of things with a lot of data.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-spark-debian-10/">How to install Apache Spark 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-apache-spark-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install CouchDB on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-couchdb-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-couchdb-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 15 Dec 2020 06:29:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26754</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Apache CouchDB on Ubuntu 20.04. It will be easy to follow step by step guide. CouchDB is a database manager for the web. It takes care of saving and storing NoSQL type data for server-side applications. It is widely used and its learning curve is very low. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-couchdb-ubuntu-20-04/">How to install CouchDB 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. In this post, you will learn how to install Apache CouchDB on Ubuntu 20.04. It will be easy to follow step by step guide.</p>



<p><a href="http://couchdb.apache.org/">CouchDB</a> is a database manager for the web. It takes care of saving and storing <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noreferrer noopener">NoSQL</a> type data for server-side applications. It is widely used and its learning curve is very low.</p>



<p>On the other hand, CouchDB places a lot of emphasis on data replication as a persistent way to obtain data. That is, we will be able to connect multiple nodes and from there do the replication.</p>



<p>Of course, there are a lot of features and reasons&nbsp;<a href="http://docs.couchdb.org/en/stable/intro/why.html">why this project</a>&nbsp;of the Apache Foundation is so important today.</p>



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



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



<p>Apache CouchDB although it is an open-source application is not in the official Ubuntu repositories. But the installation is not complicated since there is a dedicated repository for Ubuntu.</p>



<p>So, open a terminal or start an SSH session on your server.</p>



<p>Then, update your entire distribution:</p>



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



<p>Next, you can install some packages needed to complete this tutorial.</p>



<p>sudo apt-get install software-properties-common curl</p>



<p>Then, download and import the GPG key from the CouchDB repository.</p>



<pre class="wp-block-preformatted">curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add</pre>



<p>Then we can add the repository:</p>



<pre class="wp-block-preformatted">echo "deb https://apache.bintray.com/couchdb-deb focal main" | sudo tee -a /etc/apt/sources.list</pre>



<p>Then refresh <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT</a> to load the added repository:</p>



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



<p>Now you can install CouchDB by running the following command:</p>



<pre class="wp-block-preformatted">sudo apt install couchdb
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   libmozjs-68-0
 The following NEW packages will be installed:
   couchdb libmozjs-68-0
 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
 Need to get 31.5 MB of archives.
 After this operation, 63.0 MB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<p>During the installation, you will see some configuration screens.</p>



<p>The first one will ask you how to install CouchDB. It can be a single server or in the form of a Cluster. In this case, I will choose the first option:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="538" src="https://www.osradar.com/wp-content/uploads/2020/12/1-4-1024x538.png" alt="1.- Configuring Apache CouchDB on Ubuntu 20.04" class="wp-image-26755" srcset="https://www.osradar.com/wp-content/uploads/2020/12/1-4-1024x538.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/1-4-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/1-4-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/1-4-696x366.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/1-4-1068x561.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/1-4.png 1363w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Configuring Apache CouchDB on Ubuntu 20.04</figcaption></figure>



<p>Then you will have to configure the IP address where CouchDB will listen. As I am working with a remote server it is convenient to use either the IP address of the server or <strong>0.0.0.0</strong> to make it accessible from all interfaces.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="537" src="https://www.osradar.com/wp-content/uploads/2020/12/2-3-1024x537.png" alt="2.- Installing Apache CouchDB on Ubuntu 20.04" class="wp-image-26756" srcset="https://www.osradar.com/wp-content/uploads/2020/12/2-3-1024x537.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/2-3-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/2-3-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/2-3-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/2-3-1068x560.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/2-3.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Installing Apache CouchDB on Ubuntu 20.04</figcaption></figure>



<p>Then configure a login password for the CouchDB user. You will have to enter it twice.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2020/12/3-4-1024x536.png" alt="3.- Create the admin password" class="wp-image-26757" srcset="https://www.osradar.com/wp-content/uploads/2020/12/3-4-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/3-4-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/3-4-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/3-4-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/3-4-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/3-4.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Create the admin password</figcaption></figure>



<p>Afterward, the installation will be completed.</p>



<p>After the installation, you can check the status of the service.</p>



<pre class="wp-block-preformatted">sudo systemctl status couchdb
 ● couchdb.service - Apache CouchDB
      Loaded: loaded (/lib/systemd/system/couchdb.service; enabled; vendor preset: enabled)
      Active: active (running) since Mon 2020-12-14 15:29:45 CET; 25s ago
    Main PID: 2092 (beam.smp)
       Tasks: 36 (limit: 2286)
      Memory: 34.4M
      CGroup: /system.slice/couchdb.service
              ├─2092 /opt/couchdb/bin/../erts-9.3.3.14/bin/beam.smp -K true -A 16 -Bd -- -root /opt/couchdb/bin/.. -progname couchdb -- -home /opt/couchdb -- -boot /opt/>
              ├─2109 /opt/couchdb/bin/../erts-9.3.3.14/bin/epmd -daemon
              ├─2127 erl_child_setup 65536
              ├─2149 inet_gethost 4
              └─2150 inet_gethost 4
 Dec 14 15:29:45 test systemd[1]: Started Apache CouchDB.</pre>



<h2>Access to the Apache CouchDB web interface</h2>



<p>Now open your web browser and go to <code>http://your-server:5984/_utils</code></p>



<p><strong>Note: You have to open port 5984 in your firewall for this to work.</strong></p>



<p>The next thing you will see is the log in screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="550" height="657" src="https://www.osradar.com/wp-content/uploads/2020/12/4-3.png" alt="4.- Apache CouchDB login page" class="wp-image-26758" srcset="https://www.osradar.com/wp-content/uploads/2020/12/4-3.png 550w, https://www.osradar.com/wp-content/uploads/2020/12/4-3-251x300.png 251w" sizes="(max-width: 550px) 100vw, 550px" /><figcaption>4.- Apache CouchDB login page</figcaption></figure>



<p>The user is admin and the password is the one you defined during the installation.</p>



<p>When you log in you will see the entire CouchDB dashboard where you can create new databases and manage them.</p>



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



<h2>Conclusion</h2>



<p>Apache CouchDB is a database manager clearly focused on the professional environment, but this does not prevent it from being used in learning and personal environments. So today you have learned how to install it on a server with Ubuntu 20.04.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-couchdb-ubuntu-20-04/">How to install CouchDB 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-couchdb-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAPP (Apache + PHP + PostgreSQL) on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Nov 2020 16:32:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[lapp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25196</guid>

					<description><![CDATA[<p>There are many combinations of programs and servers in Linux. Of all of them, the LAMP or LEMP stack is one of the most known and popular but some prefer PostgreSQL over MariaDB / MySQL. So, in this post, you will learn how to install the LAPP stack on Ubuntu 20.04 This stack also provides [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/">How to install LAPP (Apache + PHP + PostgreSQL) 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>There are many combinations of programs and servers in Linux. Of all of them, the LAMP or LEMP stack is one of the most known and popular but some prefer PostgreSQL over MariaDB / MySQL. So, in this post, you will learn how to install the LAPP stack on Ubuntu 20.04</p>



<p>This stack also provides us with a functional server but with a different database manager like PostgreSQL. This database handler is maybe the most powerful in the world in open source. So it is normal that many want to make the change.</p>



<p>So, let&#8217;s start.</p>



<h2>How to install LAPP on Ubuntu 20.04</h2>



<h3>1.- Install Apache web server on Ubuntu 20.04</h3>



<p>The first step is to install the Apache webserver which is one of the most secure and reliable servers within Linux. Together with <a href="https://www.osradar.com/redirect-all-traffic-from-http-to-https-using-nginx/" target="_blank" rel="noreferrer noopener">Nginx</a>, they are one of the most popular in the world.</p>



<p>So, open a terminal or SSH session and run it:</p>



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



<p>Then, start the service and enable it to start with the system:</p>



<p>sudo systemctl start apache2<br>sudo systemctl enable apache2</p>



<p>Finally, you can open a web browser and go to the following address <code>http://your-server</code> or <code>http://ip-server</code> and you will see Apache&#8217;s default page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="505" src="https://www.osradar.com/wp-content/uploads/2020/04/3-14-1024x505.png" alt="Apache Default page on Ubuntu 20.04" class="wp-image-19873" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-14-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/3-14-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/3-14.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Apache Default page on Ubuntu 20.04</figcaption></figure>



<p>This indicates that the installation has been successful.</p>



<h3>2.- Install PHP on Ubuntu 20.04</h3>



<p>Now the next component is PHP which is a very popular programming language in the web environment. Therefore, it must be installed along with some of its fundamental modules.</p>



<pre class="wp-block-preformatted">php7.4 libapache2-mod-php7.4 openssl php-imagick php7.4-common php7.4-curl php7.4-gd php7.4-imap php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-pgsql php-ssh2 php7.4-xml php7.4-zip unzip</pre>



<p>Now to prove that PHP and Apache are working properly, let&#8217;s make a test file.</p>



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



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



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



<p>Then restart Apache:</p>



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



<p>Then open it from your web browser, for example <code>http://your-server/test.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/2020/04/7-9-1024x506.png" alt="PHPinfo method" class="wp-image-19919" srcset="https://www.osradar.com/wp-content/uploads/2020/04/7-9-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/7-9-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/7-9.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>PHPinfo method</figcaption></figure>



<p>If you manage to see a page with the PHP information, then both are working correctly.</p>



<h3>3.- Install PostgreSQL on  Ubuntu 20.04</h3>



<p><a href="https://www.postgresql.org/">PostgreSQL</a> is one of the most advanced and modern relational database managers out there. It is always shown as the immediate competitor of <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and <a href="https://www.osradar.com/tag/mysql/">MariaDB</a> in the segment of open source and community database managers.</p>



<p>One of the main advantages of using PostgreSQL is that it has extensive documentation and supports powerful features. All this in an open-source and free application.</p>



<p>Installing PostgreSQL is quite simple and we explain it in detail in this post:</p>



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



<p>And so you have the LAPP stack ready to work.</p>



<h2>Conclusion</h2>



<p>The LAMP stack is one of the popular and famous ones that exist but it is not the only one. Now we present you an alternative that changes to MySQL / MariaDB by PostgreSQL in a fast and easy way and forming the LAPP stack that is quite used too</p>



<p>Thanks for reading</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lapp-stack-on-ubuntu-20-04/">How to install LAPP (Apache + PHP + PostgreSQL) 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/how-to-install-lapp-stack-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy Apache Tomcat with Docker Compose</title>
		<link>https://www.osradar.com/deploy-apache-tomcat-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-apache-tomcat-docker-compose/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 31 Oct 2020 02:52:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24801</guid>

					<description><![CDATA[<p>Hello friends, in this post, you will learn how to deploy Apache Tomcat using Docker compose. So you can deploy your applications quickly and easily in any system supported by Docker. Apache Tomcat Java and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-apache-tomcat-docker-compose/">Deploy Apache Tomcat with Docker Compose</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 deploy Apache Tomcat using Docker compose. So you can deploy your applications quickly and easily in any system supported by Docker.</p>



<h2>Apache Tomcat</h2>



<p><a href="https://www.osradar.com/tag/java/">Java</a> and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it gets to the point where you have to deploy it. To do this, it requires a server that can interpret that Java code. Remember that we are talking about web applications. And to deploy and serve it, nothing like <a href="https://tomcat.apache.org/">Apache Tomcat</a>.</p>



<p>Estricatemente speaking Tomcat is not a server but transforms the caught JPS into servlets that can serve the application in question.</p>



<p>On the other hand, Apache Tomcat is open source and can be installed on any system running Java.</p>



<h2>Deploy Apache Tomcat with Docker Compose</h2>



<h3>1.- Install Docker on Linux</h3>



<p>The first step is to have Docker installed in the system, obviously.</p>



<ul><li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li><li>Or Ubuntu 20.04: <a href="https://www.osradar.com/install-docker-ubuntu-20-04-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 20.04?</a></li><li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li><li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li><li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li><li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li></ul>



<p>And using your distribution’s package manager, you can install Docker Compose. For example:</p>



<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>



<p>For Debian, Ubuntu, and derivatives.</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install docker-compose</pre>



<p>Or, for RHEL, CentOS and derivatives.</p>



<h3>2.- Create the docker-compose file</h3>



<p>Spreading Apache Tomcat using the official Docker image is quite easy. In this case, we will use the latest version available but we will also add a MariaDB image so that if your application requires it you can use it without problems.</p>



<p>So, create the file called <code>docker-compose.yml</code> and add the following content:</p>



<pre class="wp-block-preformatted">version: '2'
services:
      tomcat:
         image: 'tomcat:9.0.39'
         restart: on-failure:3
         ports:
             - '8080:8080'
         volumes:
             - './tomcat-users.xml:/opt/bitnami/tomcat/conf/tomcat-users.xml:rw'
             - './context.xml:/usr/local/tomcat/conf/Catalina/localhost/manager.xml:rw'
             - './context.xml:/usr/local/tomcat/conf/Catalina/localhost/host-manager.xml:rw'
             - '.[.war_path]:/usr/local/tomcat/webapps/project.war
             - '.[project_folder_path]:/usr/local/tomcat/webapps/myproject

      mariadb:
         image: mariadb:latest
         restart: unless-stopped
         environment:
             - MYSQL_ROOT_PASSWORD= angelo
             - MYSQL_DATABASE= tomcat
         volumes:
             - /home/angelo/mysql:/var/lib/mysql

volumes:
tomcat_data:
driver: local</pre>



<p>And let&#8217;s explain some things.</p>



<p>First, we will expose port <code>8080</code> of the host for Tomcat to use. That remains the same. But in <em>Volume</em>, we can define our local configuration files to be read by Tomcat. This is optional but can be useful.</p>



<p>Also inside the <em>Volume</em> section, you can reference the war file of your project as well as the project folder.</p>



<p>Replace each value with your own, for example, paths and filenames. As well as the port you want to expose.</p>



<p>In the case of MariaDB, everything is even simpler, because the configuration is very clear. In the end, replace the directory <code>/home/angelo/mysql</code> with the one you want to have access to the data.</p>



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



<p>Before running it, you have to create the necessary directories and files.</p>



<p>If you don&#8217;t have the file <code>tomcat-users.xml</code>, create it</p>



<pre class="wp-block-preformatted">nano tomcat-users.xml</pre>



<p>And add:</p>



<pre class="wp-block-preformatted">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0"&gt;
&lt;role rolename="manager-gui"/&gt;
&lt;role rolename="admin-gui"/&gt;
&lt;user username="admin" password="angelo123" roles="manager-gui,admin-gui"/&gt;
&lt;/tomcat-users&gt;</pre>



<p>Replace username and password with your own.</p>



<p>Also, the folder for MariaDB data:</p>



<pre class="wp-block-preformatted">mkdir /home/angelo/mysql</pre>



<p>Again, replace it with yours.</p>



<h3>3.- Running Docker Compose</h3>



<p>Now yes, with everything ready we can perform docker compose.</p>



<pre class="wp-block-preformatted">sudo docker-compose up -d</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="950" height="637" src="https://www.osradar.com/wp-content/uploads/2020/10/2-16.png" alt="Deploy Apache Tomcat with Docker Compose" class="wp-image-24968" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-16.png 950w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-768x515.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-16-696x467.png 696w" sizes="(max-width: 950px) 100vw, 950px" /><figcaption>Deploy Apache Tomcat with Docker Compose</figcaption></figure>



<p>And then, you can open your browser and access your applications <code>http://your-server:8080</code></p>



<p>If you do not upload any project, you will see the following screen:</p>



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



<p>This is not an error, it just indicates that there is no project uploaded. This means that Apache Tomcat is ready for you to deploy applications.</p>



<h2>Conclusion</h2>



<p>With Docker we can do wonders quickly and easily thanks to docker compose. So today you have learned how to deploy Apache Tomcat.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-apache-tomcat-docker-compose/">Deploy Apache Tomcat with Docker Compose</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/deploy-apache-tomcat-docker-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Tomcat on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-apache-tomcat-ubuntu-debian/</link>
					<comments>https://www.osradar.com/install-apache-tomcat-ubuntu-debian/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 29 Oct 2020 02:39:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12786</guid>

					<description><![CDATA[<p>Even though Python is the most popular programming language actually, there is still confidence in Java. So you probably needed to make applications with this veteran language. Especially in the web environment that there are so many good languages and tools, Java still resists. So, to deploy web applications made in Java is Tomcat. With [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-ubuntu-debian/">How to install Apache Tomcat on Ubuntu 20.04 / 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>Even though Python is the most popular programming language actually, there is still confidence in Java. So you probably needed to make applications with this veteran language. Especially in the web environment that there are so many good languages and tools, Java still resists. So, to deploy web applications made in Java is Tomcat. With the main objective that you learn how to install Apache Tomcat on Ubuntu 20.04 / Debian 10 is that this post has been written. Let us get started.</p>
<h2>Apache Tomcat</h2>
<p><a href="https://www.osradar.com/tag/java/" rel="noopener">Java</a> and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it gets to the point where you have to deploy it. To do this, it requires a server that can interpret that Java code. Remember that we are talking about web applications. And to deploy and serve it, nothing like <a href="https://tomcat.apache.org/" rel="noopener">Apache Tomcat</a>.</p>
<p>Estricatemente speaking Tomcat is not a server but transforms the caught JPS into servlets that can serve the application in question.</p>
<p>On the other hand, Apache Tomcat is open source and can be installed on any system running Java.</p>
<h2>Install Apache Tomcat on Ubuntu 20.04 / Debian 10</h2>
<h3>1) Install and configure Java on Ubuntu 20.04 / Debian 10</h3>
<p>Apache Tomcat is an application made with Java. Therefore, the first step is to install Java on <a href="https://www.osradar.com/tag/buster/" rel="noopener">Debian 10</a>.</p>
<p>Open a terminal session and run the following:</p>
<pre>:~$ sudo apt install default-jre default-jdk</pre>
<p>Then, check the java version.</p>
<pre>:~$ java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-post-Debian-5)
OpenJDK 64-Bit Server VM (build 11.0.3+7-post-Debian-5, mixed mode, sharing)</pre>
<p>As you can see, Java version 11 has been installed. It is one of the most recent and with very good support.</p>
<p>Now, you have to modify the<code> /etc/environment</code> file and add the Java path.</p>
<pre>:~$ sudo nano /etc/environment</pre>
<p>And add the following:</p>
<pre class="">JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"</pre>
<p>Save the changes and close the file.</p>
<p>The next step is to edit the .bashrc file and add the following:</p>
<pre>:~$ sudo nano .bashrc</pre>
<pre class="">export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
export PATH=$JAVA_HOME/bin:$PATH</pre>
<figure id="attachment_12801" aria-describedby="caption-attachment-12801" style="width: 560px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12801" src="https://www.osradar.com/wp-content/uploads/2019/07/1-5.jpeg" alt="1.- Editing the bash profile" width="560" height="272" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-5.jpeg 560w, https://www.osradar.com/wp-content/uploads/2019/07/1-5-300x146.jpeg 300w" sizes="(max-width: 560px) 100vw, 560px" /><figcaption id="caption-attachment-12801" class="wp-caption-text">1.- Editing the bash profile</figcaption></figure>
<p>Again, save the changes and close the file.</p>
<p>Next, refresh the bash.</p>
<pre>:~$ source .bashrc</pre>
<p>Now, type this command to test the Java path.</p>
<pre>:~$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/bin/java</pre>
<p>So, if you got the Java path from your computer, everything is correct.</p>
<h3>2) Install Apache Tomcat on Ubunut 20.04 / Debian 10</h3>
<p>For security reasons, it is convenient to create a new user for Tomcat. Also, add it to a group called tomcat.</p>
<pre>:~$ sudo -i
:~# groupadd tomcat
:~# useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat</pre>
<figure id="attachment_12802" aria-describedby="caption-attachment-12802" style="width: 562px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12802" src="https://www.osradar.com/wp-content/uploads/2019/07/2-4.jpeg" alt="2.- Creating a new user for apache" width="562" height="198" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-4.jpeg 562w, https://www.osradar.com/wp-content/uploads/2019/07/2-4-300x106.jpeg 300w" sizes="(max-width: 562px) 100vw, 562px" /><figcaption id="caption-attachment-12802" class="wp-caption-text">2.- Creating a new user for apache</figcaption></figure>
<p>Now we can install Apache Tomcat. To do this, go to the<code> /opt</code>/ folder and download with <code>wget</code>.</p>
<pre>:~# cd /opt/
:~# wget -c https://downloads.apache.org/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz<br />--2020-10-28 19:23:24-- https://downloads.apache.org/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz<br />Resolving downloads.apache.org (downloads.apache.org)... 88.99.95.219, 2a01:4f8:10a:201a::2<br />Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 11282879 (11M) [application/x-gzip]<br />Saving to: ‘apache-tomcat-9.0.39.tar.gz’<br />apache-tomcat-9.0.39.tar.gz 100%[=====================================================================================&gt;] 10.76M 157KB/s in 1m 49s<br />2020-10-28 19:25:15 (101 KB/s) - ‘apache-tomcat-9.0.39.tar.gz’ saved [11282879/11282879]</pre>
<p>Then, decompress it and rename the folder.</p>
<pre>:~# tar -xzvf apache-tomcat-9.0.39.tar.gz
:~# mv apache-tomcat-9.0.39 tomcat</pre>
<p>After that, you need to change the owner of the folder and assign the required permissions so that it can run smoothly. Remember that now, we are using the root user.</p>
<pre class="">:~# chown -R tomcat:tomcat /opt/tomcat/
:~# chmod +x /opt/tomcat/bin/*</pre>
<p>Now, on the .bashrc file add the CATALINA_HOME path.</p>
<pre>:~# nano ~/.bashrc
export CATALINA_HOME=/opt/tomcat</pre>
<p>Save the changes and close the file.</p>
<p>Then, refresh bash.</p>
<pre>:~# source ~/.bashrc</pre>
<p>After that, we can run Apache Tomcat. To do it, just type this command:</p>
<pre>:~# /opt/tomcat/bin/startup.sh</pre>
<figure id="attachment_12804" aria-describedby="caption-attachment-12804" style="width: 641px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12804" src="https://www.osradar.com/wp-content/uploads/2019/07/4-1.jpeg" alt="4.- Tomcat is running" width="641" height="194" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-1.jpeg 641w, https://www.osradar.com/wp-content/uploads/2019/07/4-1-300x91.jpeg 300w" sizes="(max-width: 641px) 100vw, 641px" /><figcaption id="caption-attachment-12804" class="wp-caption-text">4.- Tomcat is running</figcaption></figure>
<p>Next, open your web browser ad go <code>http://your-server:8080</code>. And you will see this.</p>
<figure id="attachment_24865" aria-describedby="caption-attachment-24865" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-24865 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/tomcat.png" alt="5.- Apache Tomcat on Ubuntu 20.04 / Debian 10" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/07/tomcat.png 1354w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-24865" class="wp-caption-text">5.- Apache Tomcat on Ubuntu 20.04 / Debian 10</figcaption></figure>
<p>If you want to set a password to improve security of the manager web app. So, open the <code>tomcat-users.xml</code></p>
<pre>:~# nano /opt/tomcat/conf/tomcat-users.xml</pre>
<p>In the <code>tomcat-user</code> section, you have to add the username and password.</p>
<pre class="">&lt;role rolename="manager-gui"/&gt;
&lt;user username="XXXXXX" password="XXXXXXX" roles="manager-gui,admin-gui"/&gt;</pre>
<figure id="attachment_12807" aria-describedby="caption-attachment-12807" style="width: 761px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12807" src="https://www.osradar.com/wp-content/uploads/2019/07/6-1.jpeg" alt="6.- Change the username and password" width="761" height="373" srcset="https://www.osradar.com/wp-content/uploads/2019/07/6-1.jpeg 761w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-300x147.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-324x160.jpeg 324w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-533x261.jpeg 533w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-696x341.jpeg 696w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption id="caption-attachment-12807" class="wp-caption-text">6.- Change the username and password</figcaption></figure>
<p>Of course, replace the password for yours.</p>
<p>Then, restart Tomcat.</p>
<pre class="">:~# ./shutdown.sh
:~# ./startup.sh</pre>
<p>And go to the web browser again. Next, refresh the page. And that is it.</p>
<h2>Conclusion</h2>
<p>Apache Tomcat is the best solution to deploy and serve web applications made with Java. So if you program in Java, you should learn how to manipulate Tomcat. As you have learned in this post, it is not very complex to learn how to install it in  Ubuntu 20.04 / Debian 10.</p>
<p>Please share this post with your friends and join <a href="http://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-ubuntu-debian/">How to install Apache Tomcat on Ubuntu 20.04 / 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-apache-tomcat-ubuntu-debian/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
