<?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>foca Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/foca/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 08 Apr 2021 17:12:13 +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 Erlang on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/how-to-install-erlang-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-erlang-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 12 Apr 2021 00:10:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[foca]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29446</guid>

					<description><![CDATA[<p>Hello, friends. Erlang is still popular these days. Therefore, it’s a good idea to learn how to install it on Ubuntu 20.04 in case you want to get started with this language. What is Erlang? The Erlang website tells us: Erlang is a programming language used to build massively scalable soft real-time systems with requirements [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-erlang-ubuntu-20-04/">How to install Erlang 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. Erlang is still popular these days. Therefore, it’s a good idea to learn how to install it on Ubuntu 20.04 in case you want to get started with this language.</p>



<h2 id="what-is-erlang?"><a href="#what-is-erlang?" name="what-is-erlang?"></a>What is Erlang?</h2>



<p>The <a href="https://www.erlang.org/" target="_blank" rel="noreferrer noopener">Erlang website</a> tells us:</p>



<blockquote class="wp-block-quote"><p>Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony, and instant messaging. Erlang’s runtime system has built-in support for concurrency, distribution, and fault tolerance.</p></blockquote>



<p>Erlang uses concurrent processes to structure the application. These processes do not share memory and communicate asynchronously by passing messages. Erlang processes are very lightweight and belong to the language itself, not to the operating system. That is why it is very present in telecommunications applications or even in social networks such as Twitter.</p>



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



<p>Erlang is not present in the Ubuntu 20.04 repositories although it is very easy to install. To do this, open a terminal from the main menu and make sure the operating system is fully updated.</p>



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



<p>With this step, the system will be up to date.</p>



<p>As Erlang is not present in the official Ubuntu repositories it is necessary to resort to other methods. Fortunately, the Erlang development team provides us with a repository that we have to add to perform the installation.</p>



<p>So, first, download and add the GPG key from it.</p>



<pre class="wp-block-preformatted">wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
--2021-04-08 17:11:49--  https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 13.226.159.11, 13.226.159.86, 13.226.159.60, ...
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|13.226.159.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3133 (3.1K) [text/plain]
Saving to: ‘STDOUT’

-                                          100%[=====================================================================================>]   3.06K  --.-KB/s    in 0s      

2021-04-08 17:11:50 (453 MB/s) - written to stdout [3133/3133]

OK</pre>



<p>Now you can add the repository to the system with the following command</p>



<pre class="wp-block-preformatted">echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | sudo tee /etc/apt/sources.list.d/erlang.list</pre>



<p>To apply this change, you have to <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">refresh APT</a></p>



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



<p>And finally, you can install Erlang</p>



<pre class="wp-block-preformatted">sudo apt install erlang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme erlang-appmon erlang-asn1 erlang-base erlang-common-test erlang-crypto erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc
  erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-ftp erlang-gs erlang-ic erlang-inets erlang-inviso erlang-megaco erlang-mnesia erlang-observer
  erlang-odbc erlang-os-mon erlang-parsetools erlang-percept erlang-pman erlang-public-key erlang-reltool erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl
  erlang-syntax-tools erlang-test-server erlang-tftp erlang-toolbar erlang-tools erlang-tv erlang-typer erlang-wx erlang-xmerl fontconfig fontconfig-config
  fonts-dejavu-core gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3
  libavahi-common-data libavahi-common3 libcairo-gobject2 libcairo2 libcolord2 libcups2 libdatrie1 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libepoxy0 libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libglu1-mesa libglvnd0 libglx-mesa0 libglx0 libgraphite2-3
  libgtk-3-0 libgtk-3-common libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common liblcms2-2 libllvm11 libnotify4 libodbc1
  libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpixman-1-0 librest-0.7-0 librsvg2-2 librsvg2-common libsensors-config libsensors5 libsm6
  libsoup-gnome2.4-1 libtcl8.6 libthai-data libthai0 libtiff5 libtk8.6 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwebp6 libwxbase3.0-0v5
  libwxgtk3.0-gtk3-0v5 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
  libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxkbcommon0 libxrandr2 libxrender1
  libxshmfence1 libxss1 libxxf86vm1 tcl tcl8.6 tk tk8.6 ubuntu-mono x11-common
Suggested packages:
  erlang-manpages erlang-doc xsltproc fop erlang-ic-java colord cups-common gvfs liblcms2-utils libmyodbc odbc-postgresql tdsodbc unixodbc-bin librsvg2-bin lm-sensors
  tcl-tclreadline
.
.
.</pre>



<p>To check that everything has been successful, you can log in to the Erlang shell.</p>



<pre class="wp-block-preformatted">erl
Erlang/OTP 23 [erts-11.1.7] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]

Eshell V11.1.7  (abort with ^G)
1> </pre>



<p>To exit the shell you can press the keys <code>CTRL + C</code>.</p>



<h2 id="creating-a-hello-world-file-to-test-erlang"><a href="#creating-a-hello-world-file-to-test-erlang" name="creating-a-hello-world-file-to-test-erlang"></a>Creating a Hello World file to test Erlang</h2>



<p>All of the above is meaningless if we don’t run a Hello World file which is the ultimate test of Erlang’s performance.</p>



<p>With a text editor, create a file called <code>helloworld.erl</code>.</p>



<pre class="wp-block-preformatted">nano helloworld.erl</pre>



<p>And add the following</p>



<pre class="wp-block-preformatted">-module(helloworld).
	-export([hello_world/0]).

	hello_world() -> io:fwrite("hello, world from osradar.com\n").</pre>



<p>Don’t forget to put . at the end of each line as I have copied it.</p>



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



<p>Now access the Erl shell again.</p>



<pre class="wp-block-preformatted">erl</pre>



<p>And compile the file:</p>



<pre class="wp-block-preformatted">c(helloworld).</pre>



<p>Then, run the function in the file.</p>



<pre class="wp-block-preformatted">helloworld:hello_world().</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="870" height="230" src="https://www.osradar.com/wp-content/uploads/2021/04/1-5.png" alt="1.- Erlang on Ubuntu 20.04" class="wp-image-29454" srcset="https://www.osradar.com/wp-content/uploads/2021/04/1-5.png 870w, https://www.osradar.com/wp-content/uploads/2021/04/1-5-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2021/04/1-5-768x203.png 768w, https://www.osradar.com/wp-content/uploads/2021/04/1-5-696x184.png 696w" sizes="(max-width: 870px) 100vw, 870px" /><figcaption>1.- Erlang on Ubuntu 20.04</figcaption></figure>



<p>And with this, Erlang will be ready.</p>



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



<p>Erlang is an important language that for many people goes unnoticed but it is still very useful to dedicate some time to it. Installing it in a system as popular as Ubuntu is something quite simple and within everyone’s reach.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-erlang-ubuntu-20-04/">How to install Erlang 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-erlang-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up an FTP server on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/how-to-set-up-an-ftp-server-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-set-up-an-ftp-server-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 18 May 2020 22:26:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[foca]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20393</guid>

					<description><![CDATA[<p>Although FTP servers are not as popular as they once were, they can still be quite useful in large organizations. Especially if they are used on an intranet where there is greater security over these files. For that reason, in this post, I will show you how to set up an FTP server on Ubuntu [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-an-ftp-server-ubuntu-20-04/">How to set up an FTP server 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>Although FTP servers are not as popular as they once were, they can still be quite useful in large organizations. Especially if they are used on an intranet where there is greater security over these files. For that reason, in this post, I will show you how to set up an FTP server on Ubuntu 20.04.</p>



<p>The File Transfer Protocol is a protocol that allows two remote computers to share files over a network. Usually, this happens from a server computer to a client computer. Usually, this happens through ports 20 and 21</p>



<p>Companies that have an intranet for daily work, usually have an FTP server configured to make files available to everyone and in Ubuntu 20.04 it is easy to do so.</p>



<h2>Creating an FTP server on Ubuntu 20.04</h2>



<p>Several daemons allow you to create the FTP server, however, I consider the easiest and fastest to VSFTPD. Besides all this, it works without problems and without making too many strange configurations.</p>



<p>So, open a terminal and update the system.</p>



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



<p>And now, install the VSFTPD daemon.</p>



<pre class="wp-block-preformatted">:~$ sudo apt install vsftpd
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
ssl-cert
Suggested packages:
openssl-blacklist
The following NEW packages will be installed:
ssl-cert vsftpd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 132 kB of archives.
After this operation, 402 kB of additional disk space will be used.
Do you want to continue? [Y/n</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="752" height="290" src="https://www.osradar.com/wp-content/uploads/2020/05/1-12.png" alt="1.- Install VSFPTD on Ubuntu 20.04" class="wp-image-20394" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-12.png 752w, https://www.osradar.com/wp-content/uploads/2020/05/1-12-300x116.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-12-696x268.png 696w" sizes="(max-width: 752px) 100vw, 752px" /><figcaption>1.- Install VSFPTD on Ubuntu 20.04</figcaption></figure>



<p>Like all services in Debian, it will start by default. To see if it is running correctly, use <code><a href="https://www.osradar.com/the-linux-systemctl-command/">systemctl</a></code>.</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl status vsftpd
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-05-17 02:34:40 UTC; 1min 17s ago
Main PID: 1337 (vsftpd)
Tasks: 1 (limit: 506)
Memory: 844.0K
CGroup: /system.slice/vsftpd.service
└─1337 /usr/sbin/vsftpd /etc/vsftpd.conf
May 17 02:34:40 osradar systemd[1]: Starting vsftpd FTP server…
May 17 02:34:40 osradar systemd[1]: Started vsftpd FTP server.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="825" height="302" src="https://www.osradar.com/wp-content/uploads/2020/05/2-15.png" alt="2.- FTP server status" class="wp-image-20395" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-15.png 825w, https://www.osradar.com/wp-content/uploads/2020/05/2-15-300x110.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-15-768x281.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-15-696x255.png 696w" sizes="(max-width: 825px) 100vw, 825px" /><figcaption>2.- FTP server status</figcaption></figure>



<p>The demon already has a default configuration, but we have to modify it to our liking.</p>



<p>Let&#8217;s go for it.</p>



<h2>Configuring the FTP server</h2>



<p>All the VSFTPD configuration is in the <code>/etc/vsftpd.conf</code> file, so before modifying it is convenient to make a backup of it. In case something goes wrong, we can go back to the original and reverse any wrong we have done.</p>



<pre class="wp-block-preformatted">:~$ sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak</pre>



<p>If you display the contents of the file, you will see that it is very extensive. But that&#8217;s because it&#8217;s so well documented, it&#8217;s quite easy to understand.</p>



<p>Let&#8217;s start by having the server actively listen.</p>



<pre class="wp-block-preformatted">listen=YES</pre>



<p>If you are not going to use IPv6 then you should disable the support:</p>



<pre class="wp-block-preformatted">listen_ipv6=NO</pre>



<p>It is also not advisable to allow access to anonymous. Although sometimes it can be useful.</p>



<pre class="wp-block-preformatted">anonymous_enable=NO</pre>



<p>By default, on an FTP server, a client can only download files and not upload them. However, it is a good idea to leave it active.</p>



<pre class="wp-block-preformatted">local_enable=YES<br>write_enable=YES</pre>



<p>By default, FTP works by 20.</p>



<pre class="wp-block-preformatted">connect_from_port_20=YES</pre>



<p>Although you can change it with this directive:</p>



<pre class="wp-block-preformatted">listen_port=XX</pre>



<p>You can use the key combination CTRL + W to go directly to the line you are looking for.</p>



<p>When you are ready, save your changes with CTRL + O and close the file with CTRL + X.</p>



<p>Omitting the comments in the file should look like this:</p>



<pre class="wp-block-preformatted">listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO</pre>



<p>To display the file without the comments, run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo cat /etc/vsftpd.conf | grep -v "^#"</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="904" height="325" src="https://www.osradar.com/wp-content/uploads/2020/05/3-13.png" alt="3.- Configuring the FTP server on Ubuntu 20.04" class="wp-image-20398" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-13.png 904w, https://www.osradar.com/wp-content/uploads/2020/05/3-13-300x108.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-13-768x276.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/3-13-696x250.png 696w" sizes="(max-width: 904px) 100vw, 904px" /><figcaption>3.- Configuring the FTP server on Ubuntu 20.04</figcaption></figure>



<h2>Creating a new FTP user</h2>



<p>Now there is a new user for the FTP server. This user can be created from the same terminal.</p>



<pre class="wp-block-preformatted">:~$ sudo useradd -m user1</pre>



<p>And then, assign him a password:</p>



<pre class="wp-block-preformatted">:~$ sudo passwd user1</pre>



<p>So,now we can test the new FTP server on Ubuntu 20.04.</p>



<h2>Testing the FTP server on Ubuntu 20.04</h2>



<p>Now the moment of truth has arrived. Let&#8217;s try the FTP server.</p>



<p>One way is to open a terminal and try to access it with the <code>ftp</code> command and the server&#8217;s IP address.</p>



<pre class="wp-block-preformatted">:~$ ftp 192.168.250.20
Connected to 192.168.250.20.
220 (vsFTPd 3.0.3)
Name (192.168.250.20:angelo): user1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp></pre>



<p>Once the connection to the server is established, you will be asked for the username and password.</p>



<p>If the login is correct you will already have access to download and upload files.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="556" height="197" src="https://www.osradar.com/wp-content/uploads/2020/05/4-11.png" alt="4.- Access to the FTP server" class="wp-image-20399" srcset="https://www.osradar.com/wp-content/uploads/2020/05/4-11.png 556w, https://www.osradar.com/wp-content/uploads/2020/05/4-11-300x106.png 300w" sizes="(max-width: 556px) 100vw, 556px" /><figcaption>4.- Access to the FTP server</figcaption></figure>



<p>Another way is from the web browser of your preference to access the FTP server. In my case, I access the following address <code>ftp://192.168.250.20</code> and it is required immediately to log in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="503" src="https://www.osradar.com/wp-content/uploads/2020/05/5-7-1024x503.png" alt="5.- Access to the FTP server using the web browser" class="wp-image-20400" srcset="https://www.osradar.com/wp-content/uploads/2020/05/5-7-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/5-7-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/5-7-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/5-7-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/5-7-1068x524.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/5-7.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Access to the FTP server using the web browser</figcaption></figure>



<p>By writing correctly the credentials created, I can access the folder that this user has dedicated.</p>



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



<p>To take better advantage of FTP, it is convenient to install a tool such as <a href="https://filezilla-project.org/" target="_blank" rel="noreferrer noopener">Filezilla</a>.</p>



<p>So, that&#8217;s it. The FTP server is alive.</p>



<h2>Conclusion</h2>



<p>An FTP server can be a great way to share files on a network. Especially if it&#8217;s for an organization or on an intranet. You saw that setting one up in Ubuntu 20.04 is a pretty simple thing.</p>



<p>Please share this post, join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and if you want buy us a coffee.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-an-ftp-server-ubuntu-20-04/">How to set up an FTP server 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-set-up-an-ftp-server-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install PHPMyAdmin on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-phpmyadmin-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-phpmyadmin-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 06 May 2020 03:05:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[foca]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20120</guid>

					<description><![CDATA[<p>For developers, the application database is important. And many projects use MySQL or MariaDB to meet this need. In this sense, an application that helps the data query and the administration of the MySQL or MariaDB instance becomes necessary. In this post, I will help you to install maybe one of the most popular ones [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-phpmyadmin-on-ubuntu-20-04/">Install PHPMyAdmin 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>For developers, the application database is important. And many projects use MySQL or MariaDB to meet this need. In this sense, an application that helps the data query and the administration of the MySQL or MariaDB instance becomes necessary. In this post, I will help you to install maybe one of the most popular ones there is, I mean PHPMyAdmin on Ubuntu 20.04</p>



<p>PHPMyAdmin is an open-source application created in PHP that provides the administration of a MySQL or MariaDB database from a comfortable web interface. It is simply installed on the server, we make a few small configurations and that&#8217;s it. That&#8217;s it. Without consuming many resources you will have a quality application.</p>



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



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



<h3>1.- Install LAMP on Ubuntu 20.04</h3>



<p>PHPMyAdmin is created in PHP, so we are talking about a web application. Therefore, it requires a correctly installed LAMP server.</p>



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



<p>Once the installation is finished, you can continue.</p>



<p>I also advise you to create a dedicated user for PHPMyAdmin.</p>



<h3>2.- Installing PHPMyAdmin on Ubuntu 20.04</h3>



<p>For now, the last official version of PHPMyAdmin is 5.0.2, so we will proceed to download it using wget.</p>



<pre class="wp-block-preformatted">:~$ cd /tmp/
:~$ wget https://files.phpmyadmin.net/phpMyAdmin/5.0.2/phpMyAdmin-5.0.2-all-languages.zip</pre>



<p>Then, decompress it into another folder dedicated to PHPMyAdmin as <code>/usr/share</code></p>



<pre class="wp-block-preformatted">:~$ sudo unzip phpMyAdmin-5.0.2-all-languages.zip -d /usr/share/</pre>



<p>It is advisable to change the name of the folder to one more easily manipulated like this:</p>



<pre class="wp-block-preformatted">:~$ sudo mv /usr/share/phpMyAdmin-5.0.2-all-languages/ /usr/share/phpmyadmin</pre>



<p>Also, create the directories that the application will use.</p>



<pre class="wp-block-preformatted">:~$ sudo mkdir -p /var/lib/phpmyadmin/tmp
:~$ sudo mkdir /etc/phpmyadmin/</pre>



<p>Then, assign Apache as the owner of the PHPMyAdmin temporary folder.</p>



<pre class="wp-block-preformatted">:~$ sudo chown -R www-data:www-data /var/lib/phpmyadmin</pre>



<p>The next step is to copy the default configuration and transform it into the program&#8217;s loaded configuration.</p>



<pre class="wp-block-preformatted">:~$ sudo cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php</pre>



<p>Then, you have to set a secret blowfish in the PHPMyAdmin configuration file:</p>



<pre class="wp-block-preformatted">:~$ sudo nano /usr/share/phpmyadmin/config.inc.php</pre>



<p>In this case I have established the following:</p>



<pre class="wp-block-preformatted">$cfg['blowfish_secret'] = '0sr@dar';</pre>



<p>In that same file, set the directory of temporary files that we have created for PHPMyAdmin:</p>



<pre class="wp-block-preformatted">$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';</pre>



<p>Then, save the changes and close the file</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1023" height="390" src="https://www.osradar.com/wp-content/uploads/2020/05/1-2.png" alt="1.- Installing PHPMyAdmin on Ubuntu 20.04" class="wp-image-20121" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-2.png 1023w, https://www.osradar.com/wp-content/uploads/2020/05/1-2-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-2-768x293.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/1-2-696x265.png 696w" sizes="(max-width: 1023px) 100vw, 1023px" /><figcaption>1.- Installing PHPMyAdmin on Ubuntu 20.04</figcaption></figure>



<p>Finally, create a new Virtualhost for the application:</p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf</pre>



<p>And add all this content inside:</p>



<pre class="wp-block-preformatted">Alias /phpmyadmin /usr/share/phpmyadmin
     &lt;Directory /usr/share/phpmyadmin&gt;
           Options SymLinksIfOwnerMatch
           DirectoryIndex index.php
     &lt;IfModule mod_php5.c&gt; 
           &lt;IfModule mod_mime.c&gt;
                AddType application/x-httpd-php .php 
           &lt;/IfModule&gt;
     &lt;FilesMatch ".+\.php$"&gt;
           SetHandler application/x-httpd-php 
     &lt;/FilesMatch&gt;
     php_value include_path .
     php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
     php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
     php_admin_value mbstring.func_overload 0
     &lt;/IfModule&gt;
     &lt;IfModule mod_php.c&gt;
          &lt;IfModule mod_mime.c&gt;
              AddType application/x-httpd-php .php
     &lt;/IfModule&gt;
          &lt;FilesMatch ".+\.php$"&gt;
             SetHandler application/x-httpd-php
          &lt;/FilesMatch&gt;
    php_value include_path .
    php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
    php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
    php_admin_value mbstring.func_overload 0
     &lt;/IfModule&gt;
&lt;/Directory&gt;

#Authorize for setup 
&lt;Directory /usr/share/phpmyadmin/setup&gt;
      &lt;IfModule mod_authz_core.c&gt;
           &lt;IfModule mod_authn_file.c&gt;
               AuthType Basic
               AuthName "phpMyAdmin Setup"
               AuthUserFile /etc/phpmyadmin/htpasswd.setup
           &lt;/IfModule&gt;
      Require valid-user
      &lt;/IfModule&gt;
&lt;/Directory&gt;

#Disallow web access to directories that don't need it

&lt;Directory /usr/share/phpmyadmin/templates&gt;
     Require all denied
&lt;/Directory&gt;

&lt;Directory /usr/share/phpmyadmin/libraries&gt;
     Require all denied
&lt;/Directory&gt;

&lt;Directory /usr/share/phpmyadmin/setup/lib&gt;
     Require all denied
&lt;/Directory&gt;</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="495" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/05/2-4-1024x495.png" alt="" class="wp-image-20127" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-4-1024x495.png 1024w, https://www.osradar.com/wp-content/uploads/2020/05/2-4-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-4-768x371.png 768w, https://www.osradar.com/wp-content/uploads/2020/05/2-4-696x337.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-4-1068x516.png 1068w, https://www.osradar.com/wp-content/uploads/2020/05/2-4.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Virtualhost for PHPMyAdmin</figcaption></figure>



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



<p>To apply this new Virtuahost, just restart Apache.</p>



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



<p>Now open your favorite web browser and go to <code>http://your-server/phpmyadmin</code> and you will see the login screen.</p>



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



<p>Log in and then you can start working.</p>



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



<h2>Conclusion</h2>



<p>PHPMyAdmin is a vital tool for many developers. It allows you to visualize MySQL or MariaDB data quickly through a well-designed graphical interface that does not consume many computer resources. Thanks to this post, you can enjoy the latest stable version of PHPMyAdmin on Ubuntu 20.04</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-phpmyadmin-on-ubuntu-20-04/">Install PHPMyAdmin 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-phpmyadmin-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
