<?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>lapp Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/lapp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 09 Nov 2020 15:31: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 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>
	</channel>
</rss>
