<?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>how to install Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 14 Dec 2020 21:43:42 +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 Calibre Ebook Server On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 20 Dec 2020 01:41:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install]]></category>
		<category><![CDATA[How To Install Calibre Ebook Server On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[instlal calibre ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26170</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Calibre Ebook Server On Ubntu 20.04. Calibre is an open source ebook manager that helps you to manage your ebook library. With the help of Calibre you can access your ebook library from anywhere in the world &#38; you can also share them with your [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/">How To Install Calibre Ebook 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>Today we are going to learn that how to install Calibre Ebook Server On Ubntu 20.04. Calibre is an open source ebook manager that helps you to manage your ebook library. With the help of Calibre you can access your ebook library from anywhere in the world &amp; you can also share them with your favourite person family or friend. You&#8217;ve also the option to download them to the smartphone for later reading. So, here we&#8217;ll see the steps to install calibre ebook server on Ubuntu 20.04.</p>



<h2>Step 1: Update Your System</h2>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<h3>Step 2: Allow Firewall Access</h3>



<p>If you have not already installed firewall, type the below command to install it.</p>



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



<p>Once, installed enable SSH port.</p>



<pre class="wp-block-preformatted">sudo ufw allow "OpenSSH"</pre>



<p>Then enable the firewall to start on boot.</p>



<p>Now, allow the port <strong>8080</strong> that is being used by the calibre server.</p>



<pre class="wp-block-preformatted">sudo ufw allow 8080</pre>



<p>Verify the firewall status by typing</p>



<pre class="wp-block-preformatted">sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
8080 ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)</pre>



<h3>Step 3: Download &amp; Install Calibre Server</h3>



<p>Calibre is available on Ubuntu 20.04 but here we&#8217;ll use their official site to download the latest version of it instead of downloading it from Ubuntu repository.</p>



<p>Run the below command to install the required dependencies.</p>



<pre class="wp-block-preformatted">sudo apt install libfontconfig libgl1-mesa-glx</pre>



<p>And then type the below command to get the calibre server installer.</p>



<pre class="wp-block-preformatted">wget https://download.calibre-ebook.com/linux-installer.sh</pre>



<p>Now, make the script exceutable</p>



<pre class="wp-block-preformatted">chmod +x ./linux-installer.sh</pre>



<p>And finally hit the below command to install the Calibre.</p>



<div class="wp-block-columns">
<div class="wp-block-column" style="flex-basis:100%">
<div class="wp-block-columns">
<div class="wp-block-column" style="flex-basis:100%">
<pre class="wp-block-preformatted">sudo ./linux-installer.sh</pre>



<p></p>
</div>
</div>
</div>
</div>



<p>If you face any warning ignore them because it will give you warning as you are using desktop Ubuntu version instead of Ubuntu server.</p>



<h3>Step 4: Create Your Ebook Library</h3>



<p>Here we&#8217;ll download a book to show you how it works. You can download many books from Project Gutenberg as they provide free public domain books. Hit the below command to download one book.</p>



<pre class="wp-block-preformatted">wget http://www.gutenberg.org/ebooks/209.kindle.noimages -O turnofthescrew.mobi</pre>



<p>Then create a new folder for you calibre library.</p>



<pre class="wp-block-preformatted">sudo mkdir calibre-library</pre>



<p>And, then add the pre-downloaded book into this folder.</p>



<pre class="wp-block-preformatted">calibredb add *.mobi --with-library calibre-library/</pre>



<p>That&#8217;s it your book was added.</p>



<h3>Step 5: Running the Calibre Server on Ubuntu 20.04</h3>



<p>Fire the following command in your terminal in order to run the calibre server on ubuntu 20.04.</p>



<pre class="wp-block-preformatted">calibre-server calibre-library</pre>



<p>The above command consists of two parts. <strong>calibre-server</strong> refers to start the server &amp; the <strong>calibre-library</strong> indicates the folder used by the server.</p>



<p>Output:</p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-preformatted">calibre server listening on 0.0.0.0:8080
OPDS feeds advertised via BonJour at: your_server_ip port: 8080</pre>



<h3>Step 6: Access Calibre Server Via Web</h3>



<p>Now, open your favourite browser and type your IP along with calibre port like <strong>http://IP:8080</strong> to access the calibre on web page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="469" height="468" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-19.png" alt="" class="wp-image-26430" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-19.png 469w, https://www.osradar.com/wp-content/uploads/2020/12/image-19-300x300.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-19-150x150.png 150w" sizes="(max-width: 469px) 100vw, 469px" /></figure>



<p>Click on the shown folder &amp; you&#8217;ll see the downloaded book here. Similarly you can add many books here.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="475" height="394" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-20.png" alt="" class="wp-image-26432" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-20.png 475w, https://www.osradar.com/wp-content/uploads/2020/12/image-20-300x249.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></figure>



<p>To stop the server simply press <strong>Ctrl+C</strong> in the terminal.</p>



<p>In order to change the default port of calibre type</p>



<pre class="wp-block-preformatted">calibre-server calibre-library --port 7530</pre>



<p>Make sure to allow this port through firewall.</p>



<h3>Step 7: Creating A Service For Calibre Server</h3>



<p>To start calibre server on every boot, simply add the service for calibre. Create a new file <strong>/etc/systemd/system/calibre-server.service</strong>.</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/calibre-server.service</pre>



<p>Then paste the below content into the file.</p>



<pre class="wp-block-preformatted">### startup service
[Unit]
Description=calibre content server
After=network.target
[Service]
Type=simple
User=&lt;username&gt;
Group=&lt;username&gt;
ExecStart=/opt/calibre/calibre-server /home/&lt;username&gt;/calibre-library --enable-local-write
[Install]
WantedBy=multi-user.target
Note: Replace <strong>username</strong> with your system user.</pre>



<p>Finally save &amp; close the file.</p>



<p>To start calibre server, type</p>



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



<p>To start on boot hit</p>



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



<h3>Step 8: Add User Authentication</h3>



<p>In order to add user authentication, stop calibre server.</p>



<pre class="wp-block-preformatted">sudo systemctl stop calibre-server</pre>



<p>And then start the script by typing</p>



<pre class="wp-block-preformatted">sudo calibre-server --userdb /home/&lt;username&gt;/.config/calibre/server-users.sqlite --manage-users</pre>



<pre class="wp-block-preformatted">1) Add a new user
2) Edit an existing user
3) Remove a user
4) Cancel
What do you want to do? [1-4]: 1
Enter the username: osradar
Enter the new password for osradar:
Re-enter the new password for osradar, to verify:
User osradar added successfully!</pre>



<p>Provide details as required to setup user authentication.</p>



<p>Then edit the service file.</p>



<pre class="wp-block-verse">sudo nano /etc/systemd/system/calibre-server.service</pre>



<p>Now, type &#8211;<strong>-enable-auth</strong> to the end of <strong>ExectStart</strong> line.</p>



<pre class="wp-block-preformatted">. . .
ExecStart=/opt/calibre/calibre-server "/home/&lt;username&gt;/calibre-library" --userdb "/home/&lt;username&gt;/.config/calibre/server-users.sqlite" --enable-local-write --enable-auth
. . .</pre>



<p>Save &amp; exit the file.</p>



<p>Then reload the daemon by</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload<br>sudo systemctl start calibre-server</pre>



<p>User authentication enabled now you&#8217;ve to provide username and password while accessing on web page.</p>



<p>So, this is how you can install Calibre Ebook Server on Ubutnu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/">How To Install Calibre Ebook 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-install-calibre-ebook-server-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Node.js on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 11 Jun 2020 17:45:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install]]></category>
		<category><![CDATA[How To Install Node.js on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install node.js]]></category>
		<category><![CDATA[installing node.js on Linux]]></category>
		<category><![CDATA[node.js on Ubuntu 20.04]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20016</guid>

					<description><![CDATA[<p>Today we are going to learn how to install Node.js on Ubuntu 20.04. Node.js is an open-source cross-platform used for developing web applications, network tools, and other such applications. Node.js comes with two versions. One is long term support and the other is the latest version. Just follow the below steps for the easy and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/">How To Install Node.js 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>Today we are going to learn how to install Node.js on Ubuntu 20.04. Node.js is an open-source cross-platform used for developing web applications, network tools, and other such applications. Node.js comes with two versions. One is long term support and the other is the latest version. Just follow the below steps for the easy and optimal installation of Node.js on Ubuntu 20.04.</p>



<h3><strong>Step 1: Update your Ubuntu System</strong></h3>



<p>To install any package on our system, first update it to the latest packages. Run the below command in your terminal.</p>



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



<h3><strong>Step 2: Installing Node.js on Ubuntu 20.04</strong></h3>



<p>Node.js can be installed on our Ubuntu 20.04 system using different methods. Here I listed the three methods to install Node.js on our Ubuntu system.</p>



<ul><li>By Node Source Repository</li><li>With the help of NVM (I recommend to install using NVM)</li><li>By Ubuntu Repository</li></ul>



<p>You can select your desired option but I recommend to install Node.js using the NVM second method listed above. Here we&#8217;ll see all the methods.</p>



<h3><strong>Step 3: Install Node.js with Node Source</strong></h3>



<p>To install Node.js with the help of Node Source, add the node source repository by firing the below command in your terminal.</p>



<p>Node.js 12 (LTS)</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -</pre>



<p>Node.js 14 (Current Version)</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -</pre>



<p>After adding the repository simply hit the below command to install the Node.js. There will be also an additional package installed on your system called NPM. NPM is the Node Package Manager used for the purpose of Java language.</p>



<pre class="wp-block-verse">sudo apt -y install nodejs</pre>



<p>Verify the version of installed Node.js by running the below command.</p>



<pre class="wp-block-verse">node -v</pre>



<p>Output:</p>



<p>You&#8217;ll see the similar results</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ node -v
v12.18.0</pre>



<p>Also, you can find the NPM version by typing the given command in your terminal.</p>



<pre class="wp-block-verse">npm -v</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ npm -v<br>6.14.4</pre>



<h3><strong>Step 4: Installing Node.js by NVM</strong></h3>



<p>NVM stands for Node Version Manager helps us to switch between the different versions of Node.js. So, you can install the desired one with the help of NVM. To install Node.js using NVM, first install the NVM by typing the below command.</p>



<pre class="wp-block-verse">wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash</pre>



<p>Now, close the terminal and then open it again to make sure that nvm is loaded.</p>



<p>Then install the Node.js with the help of below command.</p>



<p>Node.js 12 (LTS)</p>



<pre class="wp-block-verse">nvm install --lts</pre>



<p>Node.js 14</p>



<pre class="wp-block-verse">nvm install node</pre>



<p>Verify the version by</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ node -v
v14.4.0
sabir@Ubuntu20:~$ npm -v
6.14.5
sabir@Ubuntu20:~$</pre>



<p>Some NVM Commands</p>



<p>You can list the available versions of Node.js with the help of below command.</p>



<pre class="wp-block-verse">nvm ls-remote</pre>



<p>For installing the specific version just type the name of the version in front of the nvm install command like below.</p>



<pre class="wp-block-verse">nvm install 12.18.0</pre>



<p>To get list of all installed versions of Node.js on our system hit</p>



<pre class="wp-block-verse">nvm ls</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ nvm ls<br>v12.18.0<br>-&gt; v14.4.0<br>system<br>default -&gt; lts/* (-&gt; v12.18.0)<br>node -&gt; stable (-&gt; v14.4.0) (default)<br>stable -&gt; 14.4 (-&gt; v14.4.0) (default)<br>iojs -&gt; N/A (default)<br>unstable -&gt; N/A (default)<br>lts/* -&gt; lts/erbium (-&gt; v12.18.0)<br>lts/argon -&gt; v4.9.1 (-&gt; N/A)<br>lts/boron -&gt; v6.17.1 (-&gt; N/A)<br>lts/carbon -&gt; v8.17.0 (-&gt; N/A)<br>lts/dubnium -&gt; v10.21.0 (-&gt; N/A)<br>lts/erbium -&gt; v12.18.0</pre>



<p>If you want to use different version from installed hit</p>



<pre class="wp-block-verse">nvm use 14.4.0</pre>



<p>For removing any version hit</p>



<pre class="wp-block-verse">nvm uninstall 12.18.0</pre>



<h3><strong>Step 5: Install Node.js by Ubuntu Repository</strong></h3>



<p>As this is available on Ubuntu repository, so its fast and easy to install hit the below command.</p>



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



<pre class="wp-block-verse">sudo apt install -y nodejs</pre>



<p>Verify the version by</p>



<pre class="wp-block-verse">node -v</pre>



<p>So, this is how you can install Node.js on Ubuntu 20.04 using different methods.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/">How To Install Node.js 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-node-js-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install lighttpd web server on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 10 Oct 2018 01:00:27 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[how to install]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6238</guid>

					<description><![CDATA[<p>On this site, we have talked a lot about web servers as it is a very popular topic in the development of current applications. In addition, configuring them is a delicate and vital task for an organization. On the other hand, you have to be efficient in the management of computer resources, so today I [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/">How to install lighttpd web server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On this site, we have talked a lot about <a href="https://www.osradar.com/how-to-install-apache-mariadb-php7-lamp-on-opensuse-leap-15/" rel="noopener">web servers</a> as it is a very popular topic in the development of current applications. In addition, configuring them is a delicate and vital task for an organization. On the other hand, you have to be efficient in the management of computer resources, so today I will show you how to install <a href="https://www.lighttpd.net/" rel="noopener">Lighttpd</a> in Ubuntu 18.04.</p>
<p><strong>Lighttpd</strong> is a &#8220;secure, fast, compatible and very flexible&#8221; web server optimized for high-performance environments. It consumes very few resources compared to other web servers and especially fast for running AJAX applications. It is also open source and uses a BSD license and works on UNIX-like systems, such as Linux or BSD.</p>
<p>Combining Ubuntu 18.04 with Lighttpd is a safe bet if you want a fast, efficient and secure web server. Go for it.</p>
<h2>0. Prerequisites</h2>
<p>The idea is to install a complete web server using Lighttpd, PHP, and MariaDB in Ubuntu 18.04. It&#8217;s not complicated but you should keep in mind the following:</p>
<ul>
<li>It is advisable to have some knowledge about the use of the terminal.</li>
<li>Have root access to perform the commands.</li>
<li>Have a computer with Ubuntu 18.04.</li>
</ul>
<h2>1.- Upgrade the system</h2>
<p>It&#8217;s a good idea to start these tutorials by updating the system, making sure you have the latest security patches for your system. Open a terminal and run:</p>
<pre class="">:~$ sudo -i</pre>
<p>After entering the password you will be the root user. Next:</p>
<pre class="">:~# apt update &amp;&amp; apt upgrade</pre>
<p><figure id="attachment_6297" aria-describedby="caption-attachment-6297" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6297" src="https://www.osradar.com/wp-content/uploads/2018/10/1-6.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6297" class="wp-caption-text">1.- Upgrading the system</figcaption></figure></p>
<p>With this, you will have updated your system.</p>
<h2>2.- Install MariaDB</h2>
<p>MariaDB is a <a href="https://www.infoworld.com/article/3307112/mysql/mariadb-tutorial-get-started-with-mariadb.html" rel="noopener">fork</a> of Mysql. It is fully compatible with the former and is the most recommended for its experience of use. However, despite this, it is very powerful and reliable.</p>
<p>To install it, run:</p>
<pre class="">:~# apt install mariadb-server</pre>
<p><figure id="attachment_6298" aria-describedby="caption-attachment-6298" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6298" src="https://www.osradar.com/wp-content/uploads/2018/10/2-6.png" alt="2.- Installing MariaDB from the terminal" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6298" class="wp-caption-text">2.- Installing MariaDB from the terminal</figcaption></figure></p>
<p>Now you have to perform a configuration process. This is best done with <code>mysql_secure_installation</code> script.</p>
<pre class="">:~# mysql_secure_installation</pre>
<p><figure id="attachment_6299" aria-describedby="caption-attachment-6299" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6299" src="https://www.osradar.com/wp-content/uploads/2018/10/3-6.png" alt="3.- Configuring MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6299" class="wp-caption-text">3.- Configuring MariaDB</figcaption></figure></p>
<p>After setting the root password, you will be asked some configuration questions. I will answer Y, N, Y, Y.</p>
<h2>3.- Install Lighttpd</h2>
<p>The easiest and most direct way to install Lighttpd on Ubuntu 18.04 is to do it from the official repositories.</p>
<pre class="">:~# apt install lighttpd</pre>
<p><figure id="attachment_6303" aria-describedby="caption-attachment-6303" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6303 size-full" src="https://www.osradar.com/wp-content/uploads/2018/10/4-44.png" alt="4.- This is the easiest way to install lighttpd" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/4-44.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/4-44-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6303" class="wp-caption-text">4.- This is the easiest way to install Lighttpd</figcaption></figure></p>
<p>And then you enable the service to start with the system.</p>
<pre class="">:~# systemctl enable lighttpd
:~# systemctl start lighttpd</pre>
<p><figure id="attachment_6304" aria-describedby="caption-attachment-6304" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6304" src="https://www.osradar.com/wp-content/uploads/2018/10/5-555.png" alt="5.- Enabling lighttpd service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/5-555.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/5-555-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6304" class="wp-caption-text">5.- Enabling lighttpd service</figcaption></figure></p>
<p>In order to avoid problems between Lightppd and the firewall, run:</p>
<pre class="">:~# ufw allow 80/tcp
:~# ufw reload
:~# ufw enable</pre>
<p><figure id="attachment_6305" aria-describedby="caption-attachment-6305" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6305" src="https://www.osradar.com/wp-content/uploads/2018/10/6-6666.png" alt="6.- Setting some firewall rules" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/6-6666.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/6-6666-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6305" class="wp-caption-text">6.- Setting some firewall rules</figcaption></figure></p>
<p>To check the installation, go to your web browser and try to access to <code>http://IP_SERVER</code>. If you see this then everything is OK.</p>
<p><figure id="attachment_6306" aria-describedby="caption-attachment-6306" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6306" src="https://www.osradar.com/wp-content/uploads/2018/10/7-77.png" alt="7.- lighttpd default page" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/10/7-77.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/7-77-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6306" class="wp-caption-text">7.- lighttpd default page</figcaption></figure></p>
<h2>4.- Install PHP</h2>
<p>A web server needs a programming language to interpret and execute the applications built, so install PHP.</p>
<pre class="">:~# apt install php7.2 php7.2-fpm php7.2-mysql php7.2-cli php7.2-curl php7.2-xml</pre>
<p><figure id="attachment_6307" aria-describedby="caption-attachment-6307" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6307" src="https://www.osradar.com/wp-content/uploads/2018/10/8-88.png" alt="8.- Installing PHP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/8-88.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/8-88-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6307" class="wp-caption-text">8.- Installing PHP</figcaption></figure></p>
<p>Next, edit the file <code>/etc/php/7.2/fpm/pool.d/www.conf</code></p>
<pre class="">:~# nano /etc/php/7.2/pool.d/www.conf</pre>
<p>Change the line&#8221;listen&#8221; to 127.0.0.1:9000.</p>
<p><figure id="attachment_6308" aria-describedby="caption-attachment-6308" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6308" src="https://www.osradar.com/wp-content/uploads/2018/10/9-99.png" alt="9.- Editing the PHP file configuration" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/9-99.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/9-99-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6308" class="wp-caption-text">9.- Editing the PHP file configuration</figcaption></figure></p>
<p>Next, edit the file<code> /etc/lighttpd/conf-available/15-fastcgi-php.conf</code> too.</p>
<pre class="">:~# nano /etc/lighttpd/conf-available/15-fastcgi-php.conf</pre>
<p>And change:</p>
<pre class="">"bin-path" =&gt; "/usr/bin/php-cgi",
"socket" =&gt; "/var/run/lighttpd/php.socket",</pre>
<p>To:</p>
<pre class="">"host" =&gt; "127.0.0.1",
"port" =&gt; "9000",</pre>
<p><figure id="attachment_6309" aria-describedby="caption-attachment-6309" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6309" src="https://www.osradar.com/wp-content/uploads/2018/10/10-10.png" alt="10.- Editing the PHP configuration file for PHPCGI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/10-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/10-10-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6309" class="wp-caption-text">10.- Editing the PHP configuration file for PHP CGI</figcaption></figure></p>
<p>Finally, enable the FastCGI and FastCGI-PHP modules:</p>
<pre class="">:~# lighty-enable-mod fastcgi
:~# lighty-enable-mod fastcgi-php</pre>
<p><figure id="attachment_6310" aria-describedby="caption-attachment-6310" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6310" src="https://www.osradar.com/wp-content/uploads/2018/10/11-11.png" alt="11.- Enabling the PHP modules" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/11-11.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/11-11-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6310" class="wp-caption-text">11.- Enabling the PHP modules</figcaption></figure></p>
<p>Restart Lighttpd:</p>
<pre class="">:~# systemctl restart lighttpd</pre>
<h2>5. Testing the installation</h2>
<p>To verify that everything is working, make a .php file in the root directory of the server, i.e. in <code>/var/www/html</code>. I&#8217;ll call it <code>t.php</code>. Put on it this:</p>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<p><figure id="attachment_6311" aria-describedby="caption-attachment-6311" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6311" src="https://www.osradar.com/wp-content/uploads/2018/10/12-12.png" alt="12.- Creating a php file for test" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/12-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/12-12-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6311" class="wp-caption-text">12.- Creating a PHP file for test</figcaption></figure></p>
<p>Change the permissions:</p>
<pre class="">:~# chown -R www-data:www-data /var/www/html/
:~# chown -R 755 /var/www/html/</pre>
<p><figure id="attachment_6312" aria-describedby="caption-attachment-6312" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6312" src="https://www.osradar.com/wp-content/uploads/2018/10/13-13.png" alt="13.- Changing the permissions to folder" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/13-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/13-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6312" class="wp-caption-text">13.- Changing the permissions to the folder</figcaption></figure></p>
<p>Finally, open your web browser and go to <code>http://IP_SERVER/t.php</code>. If you see this, everything is working.</p>
<p><figure id="attachment_6313" aria-describedby="caption-attachment-6313" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6313" src="https://www.osradar.com/wp-content/uploads/2018/10/14-14.png" alt="14.- PHP info" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/10/14-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/14-14-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6313" class="wp-caption-text">14.- PHP info</figcaption></figure></p>
<h2>Conclusion</h2>
<p>To install Lighttpd only basic knowledge about the use of the terminal and configuration files is required because it is really simple. Being this a web server oriented to simplicity and speed we find simple files to configure.</p>
<p>We want to know about you, have you used this program before? you have been using the tutorial? what about your experience with PHP and Lighttpd? Let us know in the comments.</p>
<p>Please share this article on your social networks.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/">How to install lighttpd web server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-lighttpd-web-server-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
