<?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>Lemp Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/lemp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 03 Aug 2019 18:26:33 +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>Install WordPress (with Nginx) on CentOS 8 / RHEL 8 / Oracle Linux 8</title>
		<link>https://www.osradar.com/install-wordpress-centos-rhel-oracle-linux-8/</link>
					<comments>https://www.osradar.com/install-wordpress-centos-rhel-oracle-linux-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 06 Aug 2019 23:11:28 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lemp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12902</guid>

					<description><![CDATA[<p>Almost everyone knows that WordPress is the most popular CMS in the world. And nothing better than having it installed on our personal server to deploy websites quickly. If in addition to this, we add Nginx as a web server then we would have a website quite fast and with great performance. Therefore, in this [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-wordpress-centos-rhel-oracle-linux-8/">Install WordPress (with Nginx) on CentOS 8 / RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Almost everyone knows that WordPress is the most popular CMS in the world. And nothing better than having it installed on our personal server to deploy websites quickly. If in addition to this, we add Nginx as a web server then we would have a website quite fast and with great performance. Therefore, in this post, I will show you how to install WordPress on CentOS, RHEL and Oracle Linux 8 using <a href="https://www.osradar.com/install-nginx-from-the-source-code-ubuntu-18-04/" rel="noopener">Nginx</a>.</p>
<p>There are companies today that create websites only available from the business network. Many with the purpose of communicating with workers, or making available resources of the company. At least, in my environment, there are several companies that do it. And they use WordPress to deploy them. So, the utility of having it installed is maximum.</p>
<p>On the other hand, we may want a personal blog on our own server. Either in the cloud or we have the computer physically.</p>
<p>In any case, <a href="https://wordpress.com/" rel="noopener">WordPress</a> which is a <a href="https://www.osradar.com/tag/cms/" rel="noopener">CMS</a> is a software that allows you to make websites or blogs quickly and easily. It also manages the publication and realization of page entries. The ability to customize is quite extensive and almost everything can be done without advanced knowledge of HTML or CSS. In fact, most websites are designed with WordPress. This is where their potential lies.</p>
<p>So, let us install WordPress on CentOS, RHEL and Oracle Linux 8.</p>
<h2>1) Install LEMP on CentOS, RHEL and Oracle Linux 8</h2>
<p>In order to install WordPress, it is first necessary to have a ready and functional web server. In this case, we have opted for Nginx so we will have to have a LEMP server.</p>
<p>But it is not a problem, because we have done a complete tutorial to install LEMP on CentOS, RHEL and Oracle Linux 8.</p>
<p>Read <a href="https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/" rel="noopener">How to install LEMP on CentOS 8, RHEL 8 and Oracle Linux 8?</a></p>
<p>You just have to pay attention to have these PHP modules installed</p>
<pre>:~# dnf install php php-fpm php-common php-mysqlnd php-gd php-xml php-mbstring php-xml</pre>
<p>Once you have the LEMP server up and running, move on.</p>
<h2>2) Create a new database user for WordPress</h2>
<p>WordPress requires a database manager to store everything that is happening on the site. But not only that but other things more.</p>
<p>For security reasons, it is advisable to create a new user and database dedicated to WordPress. Then, go to the MariaDB console and type.</p>
<pre>:~# mysql -u root -p</pre>
<pre>&gt; CREATE DATABASE wordpressdb;
&gt; GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'wordpresspss';
&gt; FLUSH PRIVILEGES;
&gt; exit;</pre>
<figure id="attachment_12915" aria-describedby="caption-attachment-12915" style="width: 887px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12915" src="https://www.osradar.com/wp-content/uploads/2019/08/1-1.jpeg" alt="1.- Creating the new user for WordPress" width="887" height="364" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-1.jpeg 887w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-300x123.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-768x315.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-696x286.jpeg 696w" sizes="(max-width: 887px) 100vw, 887px" /><figcaption id="caption-attachment-12915" class="wp-caption-text">1.- Creating the new user for WordPress</figcaption></figure>
<p>Of course, you can define the names you want.</p>
<h2>3) Install WordPress on CentOS, RHEL and Oracle Linux (I)</h2>
<p>Now we can install WordPress on CentOS / RHEL / Oracle Linux 8. To do this, first, you have to download it using wget. If you do not have it installed, you have to do it first.</p>
<pre>:~# cd /tmp/
:~# wget -c https://wordpress.org/latest.tar.gz</pre>
<figure id="attachment_12916" aria-describedby="caption-attachment-12916" style="width: 1325px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12916" src="https://www.osradar.com/wp-content/uploads/2019/08/2-1.jpeg" alt="2.- Downloading WordPress" width="1325" height="254" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-1.jpeg 1325w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-300x58.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-768x147.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-1024x196.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-696x133.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-1-1068x205.jpeg 1068w" sizes="(max-width: 1325px) 100vw, 1325px" /><figcaption id="caption-attachment-12916" class="wp-caption-text">2.- Downloading WordPress</figcaption></figure>
<p>Next, decompress the file.</p>
<pre>:~# tar -xvzf latest.tar.gz</pre>
<p>Now, you have to move the generated folder to <code>/usr/share/nginx/html/</code>. Then, set the right permissions to the folder.</p>
<pre>:~# mv wordpress/ /usr/share/nginx/html/
:~# chown -R nginx:nginx /usr/share/nginx/html/
:~# chmod 755 -R /usr/share/nginx/html/</pre>
<p>Then, restart Nginx.</p>
<pre>:~# systemctl restart nginx</pre>
<h2>4) Install WordPress on CentOS, RHEL, Oracle Linux 8 (II)</h2>
<p>Now, open your browser and go your server and complete the installation.</p>
<figure id="attachment_12920" aria-describedby="caption-attachment-12920" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12920" src="https://www.osradar.com/wp-content/uploads/2019/08/5.png" alt="5.- Welcome screen" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12920" class="wp-caption-text">5.- Welcome screen</figcaption></figure>
<p>Now, type your DB credentials.</p>
<figure id="attachment_12922" aria-describedby="caption-attachment-12922" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12922 size-full" src="https://www.osradar.com/wp-content/uploads/2019/08/6-1.png" alt="6.- DB credentials to install WordPress on CentOS, RHEL and Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-1-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12922" class="wp-caption-text">6.- DB credentials to install WordPress on CentOS, RHEL and Oracle Linux 8</figcaption></figure>
<p>Now, we can start the installation.</p>
<figure id="attachment_12923" aria-describedby="caption-attachment-12923" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12923" src="https://www.osradar.com/wp-content/uploads/2019/08/7.png" alt="7.- Start to install WordPress on Centos, RHEL and Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12923" class="wp-caption-text">7.- Start to install WordPress on Centos, RHEL and Oracle Linux 8</figcaption></figure>
<p>Then, type the site information.</p>
<figure id="attachment_12924" aria-describedby="caption-attachment-12924" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12924" src="https://www.osradar.com/wp-content/uploads/2019/08/8.png" alt="8.- Site information" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12924" class="wp-caption-text">8.- Site information</figcaption></figure>
<p>If everything went well, you will see the following screen.</p>
<figure id="attachment_12925" aria-describedby="caption-attachment-12925" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12925" src="https://www.osradar.com/wp-content/uploads/2019/08/9.png" alt="9.- WordPress is installed" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/9-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12925" class="wp-caption-text">9.- WordPress is installed</figcaption></figure>
<p>Now, you can log in to admin your WordPress instance.</p>
<figure id="attachment_12926" aria-describedby="caption-attachment-12926" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12926" src="https://www.osradar.com/wp-content/uploads/2019/08/10.png" alt="10.- WordPress Log in" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/10-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/10-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/10-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/10-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/10-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/10-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12926" class="wp-caption-text">10.- WordPress Login</figcaption></figure>
<p>Then, you will see the WordPress dashboard.</p>
<figure id="attachment_12927" aria-describedby="caption-attachment-12927" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12927" src="https://www.osradar.com/wp-content/uploads/2019/08/11.png" alt="11.- WordPress Dashboard" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/11.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/11-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/11-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/11-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/11-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/11-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/11-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12927" class="wp-caption-text">11.- WordPress Dashboard</figcaption></figure>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>In this post, you learned how to install WordPress on CentOS, RHEL and Oracle Linux 8. This way you can deploy quality websites using a reliable web server like Nginx on a robust operating system like those of the Red Hat family. As you can see, the installation is not complicated.</p>
<p>Please share this post and join <a href="https://t.me/osradar" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-wordpress-centos-rhel-oracle-linux-8/">Install WordPress (with Nginx) on CentOS 8 / RHEL 8 / Oracle Linux 8</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-wordpress-centos-rhel-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LEMP on CentOS 8, Oracle Linux 8 / RHEL 8 /?</title>
		<link>https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 03 Aug 2019 02:22:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lemp]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12811</guid>

					<description><![CDATA[<p>In this opportunity, I am going to explain step by step how to install LEMP stack on Oracle Linux 8, RHEL 8 and CentOS 8. LAMP vs LEMP is really Apache vs Nginx Both software stacks, allow having a fully functional webserver. With this, you can develop and run web applications created with PHP. Obviously, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/">How to install LEMP on CentOS 8, Oracle Linux 8 / RHEL 8 /?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this opportunity, I am going to explain step by step how to install LEMP stack on Oracle Linux 8, RHEL 8 and CentOS 8.</p>
<h2>LAMP vs LEMP is really Apache vs Nginx</h2>
<p>Both software stacks, allow having a fully functional webserver. With this, you can develop and run web applications created with PHP. Obviously, if you install it on a server, they can be run from another computer on the network.</p>
<p>The components of LAMP are Linux &#8211; <a href="https://www.osradar.com/tag/apache/">Apache</a> &#8211; <a href="https://www.osradar.com/tag/mariadb/">MySQL/MariaDB</a> &#8211; <a href="https://www.osradar.com/tag/php/">PHP</a>. And they are exactly the same as in LEMP except that <a href="https://www.nginx.com/">Nginx</a> is preferred to Apache.</p>
<p>Also, you can read <a href="https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/">How to install the LAMP stack on Oracle Linux 8 / RHEL 8 / CentOS8?</a></p>
<p>Why should you?</p>
<p>Both web servers are very good. Too good. They are open-source, free and the user community provides good support. The detail is that <strong>Nginx performs better than Apache</strong>. Proven. However, it is less flexible in its configurations.</p>
<p>So let us get to work.</p>
<h2>Install LEMP on RHEL 8, CentOS 8 and Oracle Linux 8</h2>
<h3>1) LEMP on RHEL and CentOS 8: Install Nginx</h3>
<p>The first step is to install Nginx. So open a terminal session or connect to your server using SSH.</p>
<pre>:~$ su
:~# dnf install nginx</pre>
<figure id="attachment_12854" aria-describedby="caption-attachment-12854" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12854" src="https://www.osradar.com/wp-content/uploads/2019/07/1-11.jpeg" alt="1.- Install Nginx on RHEL 8, CentOS 8 and Oracle Linux 8" width="1366" height="709" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-11.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-300x156.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-768x399.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-1024x531.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-696x361.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-1068x554.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/07/1-11-809x420.jpeg 809w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12854" class="wp-caption-text">1.- Install Nginx on RHEL 8, CentOS 8 and Oracle Linux 8</figcaption></figure>
<p>Then you need to start the service.</p>
<pre>:~# systemctl start nginx</pre>
<p>It is a good idea to have it start with the system, so run this command:</p>
<pre>:~# systemctl enable nginx</pre>
<p>The next step is to open the ports in the Firewall so that we can use Nginx.</p>
<pre>:~# firewall-cmd --add-port=80/tcp --permanent
success
:~# firewall-cmd --add-port=443/tcp --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Finally, open your web browser and go to your server. <code>http://server-ip/</code> you will see something like this:</p>
<figure id="attachment_12855" aria-describedby="caption-attachment-12855" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12855" src="https://www.osradar.com/wp-content/uploads/2019/07/2-14.png" alt="2.- Nginx default page on Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-14.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/2-14-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12855" class="wp-caption-text">2.- Nginx default page on Oracle Linux 8</figcaption></figure>
<p>So, Nginx is working.</p>
<h3>2) Install and configure PHP</h3>
<p>The next step is to install PHP. Both Oracle Linux and RHEL, as well as CentOS, come with PHP 7.2 in their official repositories. It is a good version to start working with. So what we have to do is install it along with some of its modules.</p>
<pre>:~# dnf install php php-mysqlnd php-fpm php-opcache php-gd php-xml php-mbstring</pre>
<figure id="attachment_12856" aria-describedby="caption-attachment-12856" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12856" src="https://www.osradar.com/wp-content/uploads/2019/07/3-6.jpeg" alt="3.- Install PHP" width="1366" height="557" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-6.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-300x122.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-768x313.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-1024x418.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-696x284.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-1068x435.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/07/3-6-1030x420.jpeg 1030w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12856" class="wp-caption-text">3.- Install PHP</figcaption></figure>
<p>Then, start and enable the<code> php-fpm</code> service.</p>
<pre>:~# systemctl start php-fpm
:~# systemctl enable php-fpm</pre>
<p>Once we have started the service, it is necessary to modify some settings to make it work with Nginx.</p>
<pre>:~# nano /etc/php-fpm.d/www.conf</pre>
<p>At the beginning of the file, look for the <code>user</code> and <code>group</code> parameters. You will find it with the value of <code>apache</code>, change it to <code>nginx</code>.</p>
<pre>user = nginx
group = nginx</pre>
<p>Then, look for the line that starts with &#8220;listen&#8221;. And verify that it is as follows.</p>
<pre>listen = /run/php-fpm/www.sock</pre>
<figure id="attachment_12857" aria-describedby="caption-attachment-12857" style="width: 722px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12857" src="https://www.osradar.com/wp-content/uploads/2019/07/4-3.jpeg" alt="4.- Configuring PHP to work with nginx" width="722" height="301" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-3.jpeg 722w, https://www.osradar.com/wp-content/uploads/2019/07/4-3-300x125.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/4-3-696x290.jpeg 696w" sizes="(max-width: 722px) 100vw, 722px" /><figcaption id="caption-attachment-12857" class="wp-caption-text">4.- Configuring PHP to work with Nginx</figcaption></figure>
<p>Then, reload the php-fpm service.</p>
<pre>:~# systemctl restart php-fpm</pre>
<p>Now it&#8217;s time to test PHP with Nginx.</p>
<p>Unlike Apache, the Nginx web directory in RHEL, CentOS and Oracle Linux 8 is <code>/usr/share/nginx/html</code>. Then, Nginx should be made the owner of that folder.</p>
<pre>:~# chown -R nginx:nginx /usr/share/nginx/html</pre>
<p>Then, create a new PHP file to test.</p>
<pre>:~# nano /usr/share/nginx/html/test.php
&lt;?php
phpinfo();
?&gt;</pre>
<p>After that, restart Nginx.</p>
<pre>:~# systemctl restart nginx</pre>
<p>Now, open the PHP file using your web browser. <code>http://server-ip/test.php</code>.</p>
<figure id="attachment_12858" aria-describedby="caption-attachment-12858" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12858" src="https://www.osradar.com/wp-content/uploads/2019/07/5-10.png" alt="5.- LEMP on RHEL, CentOS 8 and Oracle Linux is almost ready" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/07/5-10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/5-10-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12858" class="wp-caption-text">5.- LEMP on RHEL, CentOS 8 and Oracle Linux is almost ready</figcaption></figure>
<p>So everything is working.</p>
<h3>3) Install MariaDB</h3>
<p>MariaDB is a pretty good database manager. It is a MySQL fork and therefore compatible with it. It is one of the open-source values. So let us install it.</p>
<pre>:~# dnf install mariadb-server</pre>
<figure id="attachment_12860" aria-describedby="caption-attachment-12860" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12860" src="https://www.osradar.com/wp-content/uploads/2019/07/6-2.jpeg" alt="6.- LEMP on RHEL, CentOS 8 and Oracle Linux 8 - Installing MariaDB" width="1366" height="621" srcset="https://www.osradar.com/wp-content/uploads/2019/07/6-2.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-300x136.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-768x349.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-1024x466.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-696x316.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-1068x486.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/07/6-2-924x420.jpeg 924w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12860" class="wp-caption-text">6.- LEMP on RHEL, CentOS 8 and Oracle Linux 8 &#8211; Installing MariaDB</figcaption></figure>
<p>Then, start and enable the service.</p>
<pre>:~# systemctl start mariadb
:~# systemctl enable mariadb</pre>
<p>Now it is necessary to define a password for the root user. In addition to this, the installation must be secured. For this the <code>mysql_secure_installation</code> script is available.</p>
<pre>:~# mysql_secure_installation</pre>
<figure id="attachment_12861" aria-describedby="caption-attachment-12861" style="width: 935px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12861" src="https://www.osradar.com/wp-content/uploads/2019/07/7.jpeg" alt="7.- Secure the MariaDB installation" width="935" height="708" srcset="https://www.osradar.com/wp-content/uploads/2019/07/7.jpeg 935w, https://www.osradar.com/wp-content/uploads/2019/07/7-300x227.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/7-768x582.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/7-80x60.jpeg 80w, https://www.osradar.com/wp-content/uploads/2019/07/7-696x527.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/7-555x420.jpeg 555w" sizes="(max-width: 935px) 100vw, 935px" /><figcaption id="caption-attachment-12861" class="wp-caption-text">7.- Secure the MariaDB installation</figcaption></figure>
<p>After defining the root password, you will be asked some configuration questions.</p>
<pre>Remove anonymous users? Y
Disallow root login remotely? Y
Remove test database and access to it? Y
Reload privilege tables now? Y</pre>
<p>Now, LEMP is complete.</p>
<h2>Conclusion</h2>
<p>The LEMP stack is widely used today because Nginx performs quite well with a lot of traffic. So it&#8217;s up to you to choose which one suits your needs.</p>
<p>Please share this post and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-oracle-linux-8-rhel-8-centos-8/">How to install LEMP on CentOS 8, Oracle Linux 8 / RHEL 8 /?</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-lemp-on-oracle-linux-8-rhel-8-centos-8/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LEMP on OpenSUSE 15 / 15.1 / SUSE?</title>
		<link>https://www.osradar.com/how-to-install-lemp-on-opensuse-15-suse/</link>
					<comments>https://www.osradar.com/how-to-install-lemp-on-opensuse-15-suse/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 05 Jun 2019 01:11:05 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lemp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11644</guid>

					<description><![CDATA[<p>OpenSUSE is a fairly reliable and robust distribution. So it makes it ideal for installing and running on it many web-oriented services. That&#8217;s why it has a high reputation in Europe as a Linux community solution. On the other hand, SUSE which is the mother distribution of OpenSUSE achieves the goal of being a professional [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-opensuse-15-suse/">How to install LEMP on OpenSUSE 15 / 15.1 / SUSE?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://en.opensuse.org" rel="noopener noreferrer">OpenSUSE</a> is a fairly reliable and robust distribution. So it makes it ideal for installing and running on it many web-oriented services. That&#8217;s why it has a high reputation in Europe as a Linux community solution. On the other hand, SUSE which is the mother distribution of OpenSUSE achieves the goal of being a professional and ideal Linux distribution for large enterprises. As you can see, OpenSUSE inherits the seriousness and stability of its mother. If we combine this with the availability of web services, we will have a pretty good combination. For this reason, in this post, I will teach you how to install LEMP on OpenSUSE 15/ 15.1 and SUSE.</p>
<p>LEMP is a set of applications that together form a web server. It consists of a Linux distribution, <a href="https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/" rel="noopener">Nginx</a> as the web server, <a href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/" rel="noopener">MariaDB</a> as the database manager and <a href="https://www.osradar.com/install-php-7-3-ubuntu-18-04-linux-mint-19/" rel="noopener">PHP</a> as interpreter language. As you can see, each component can be installed separately but together they make your computer with OpenSUSE or SUSE a very fast and reliable web server.</p>
<p>So, let us start to install LEMP on OpenSUSE 15 and SUSE 15.</p>
<h2>Install Lemp on OpenSUSE 15 / 15.1</h2>
<h3>1. Install Nginx</h3>
<p>First, you need to install Nginx.</p>
<p>Nginx is an HTTP server that is characterized for being fast, stable and with extraordinary handling of many petitions. This makes it the fastest in its area including surpassing a veteran like Apache.</p>
<p>Similarly, it is worth noting that it is open source and is available for most Linux distributions.</p>
<p>In this post, we show you <a href="https://www.osradar.com/how-to-install-nginx-on-opensuse-suse-15/" rel="noopener">how to install Nginx on OpenSUSE 15/ 15.1</a>.</p>
<p>Nginx was recently acquired by F5 networks and you can also visit <a href="https://www.osradar.com/f5-networks-buys-nginx/" rel="noopener">this post</a> to find out about it.</p>
<h3>2. Install PHP</h3>
<p>PHP is one of the most used programming languages in the construction of web applications. So with it, we will be able to develop and execute many applications built for the web. So it is necessary to install it:</p>
<pre>:~$ sudo zypper in php7 php7-mysql apache2-mod_php7 php7-fpm php7-gd php7-mbstring</pre>
<figure id="attachment_11658" aria-describedby="caption-attachment-11658" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11658" src="https://www.osradar.com/wp-content/uploads/2019/03/1-15.png" alt="1.- Install lemp on OpenSUSE" width="1365" height="371" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-15.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/1-15-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-15-768x209.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-15-1024x278.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-15-696x189.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-15-1068x290.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11658" class="wp-caption-text">1.- Install lemp on OpenSUSE</figcaption></figure>
<p>Then, for PHP to work with Nginx it is necessary to make some extra settings to PHP-FPM. So let&#8217;s go for it.</p>
<p>First, you have to locate us in the php-fpm configuration folder. Then, copy your default configuration into the file where you are going to read the configuration. Then you have to edit it:</p>
<pre>:~$ cd /etc/php7/fpm/
:~$ sudo cp php-fpm.conf.default php-fpm.conf
:~$ sudo nano php-fpm.conf</pre>
<p>Next, find the &#8220;error_log&#8221; line and change it:</p>
<pre>error_log = /var/log/php-fpm.log</pre>
<figure id="attachment_11659" aria-describedby="caption-attachment-11659" style="width: 774px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11659" src="https://www.osradar.com/wp-content/uploads/2019/03/2-15.png" alt="2.- edit the php-fpm configuration file" width="774" height="120" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-15.png 774w, https://www.osradar.com/wp-content/uploads/2019/03/2-15-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-15-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-15-696x108.png 696w" sizes="(max-width: 774px) 100vw, 774px" /><figcaption id="caption-attachment-11659" class="wp-caption-text">2.- edit the php-fpm configuration file</figcaption></figure>
<p>Now, you can save the changes and close the file.</p>
<p>After that, you need to edit another configuration file. But first, you have to copy again.</p>
<pre>:~$ sudo cp /etc/php7/cli/php.ini /etc/php7/fpm/</pre>
<p>Then, edit it.</p>
<pre>sudo nano /etc/php7/fpm/php.ini</pre>
<p>So, find the cgi.fix line and change it:</p>
<pre>cgi.fix_pathinfo=0</pre>
<figure id="attachment_11660" aria-describedby="caption-attachment-11660" style="width: 868px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11660" src="https://www.osradar.com/wp-content/uploads/2019/03/3-14.png" alt="3.- configuring php" width="868" height="151" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-14.png 868w, https://www.osradar.com/wp-content/uploads/2019/03/3-14-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-14-768x134.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-14-696x121.png 696w" sizes="(max-width: 868px) 100vw, 868px" /><figcaption id="caption-attachment-11660" class="wp-caption-text">3.- configuring PHP</figcaption></figure>
<p>Next, save the changes and close the file. And copy the file to the configuration folder.</p>
<pre>:~$ sudo cp /etc/php7/fpm/php.ini /etc/php7/conf.d/</pre>
<p>Then, you need to configure nginx.</p>
<pre>:~$ cd /etc/nginx/
:~$ sudo cp nginx.conf nginx.conf.backup</pre>
<p>Next, edit the configuration file:</p>
<pre>:~$ sudo nano nginx.conf</pre>
<p>And make the following changes. Add index.php on line 48.</p>
<figure id="attachment_11661" aria-describedby="caption-attachment-11661" style="width: 546px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11661" src="https://www.osradar.com/wp-content/uploads/2019/03/4-10.png" alt="4.- Configuring PHP" width="546" height="88" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-10.png 546w, https://www.osradar.com/wp-content/uploads/2019/03/4-10-300x48.png 300w" sizes="(max-width: 546px) 100vw, 546px" /><figcaption id="caption-attachment-11661" class="wp-caption-text">4.- Configuring PHP</figcaption></figure>
<figure id="attachment_11663" aria-describedby="caption-attachment-11663" style="width: 694px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11663 size-full" src="https://www.osradar.com/wp-content/uploads/2019/03/5-55555.png" alt="5.- Set PHP configuration" width="694" height="164" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-55555.png 694w, https://www.osradar.com/wp-content/uploads/2019/03/5-55555-300x71.png 300w" sizes="(max-width: 694px) 100vw, 694px" /><figcaption id="caption-attachment-11663" class="wp-caption-text">5.- Set PHP configuration</figcaption></figure>
<p>Save the changes and close the file.</p>
<p>After that, you need to enable and start the php-fpm service.</p>
<pre>:~$ sudo cp /etc/php7/fpm/php-fpm.d/www.conf.default /etc/php7/fpm/php-fpm.d/www.conf
:~$ sudo systemctl enable php-fpm
:~$ sudo systemctl start php-fpm</pre>
<figure id="attachment_11664" aria-describedby="caption-attachment-11664" style="width: 956px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11664" src="https://www.osradar.com/wp-content/uploads/2019/03/6-5.png" alt="6.- Start php-fpm" width="956" height="348" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-5.png 956w, https://www.osradar.com/wp-content/uploads/2019/03/6-5-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-5-768x280.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-5-696x253.png 696w" sizes="(max-width: 956px) 100vw, 956px" /><figcaption id="caption-attachment-11664" class="wp-caption-text">6.- Start php-fpm</figcaption></figure>
<p>Finally, test PHP.</p>
<p>To do it, you have to create a file on <code>/srv/www/htdocs/</code> called <code>test.php</code>.</p>
<pre>:~$ sudo nano /srv/www/htdocs/test.php</pre>
<p>And add the following:</p>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<figure id="attachment_11665" aria-describedby="caption-attachment-11665" style="width: 864px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11665" src="https://www.osradar.com/wp-content/uploads/2019/03/7-6.png" alt="7.- test php" width="864" height="173" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-6.png 864w, https://www.osradar.com/wp-content/uploads/2019/03/7-6-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-6-768x154.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-6-696x139.png 696w" sizes="(max-width: 864px) 100vw, 864px" /><figcaption id="caption-attachment-11665" class="wp-caption-text">7.- test php</figcaption></figure>
<p>Next, reload Nginx.</p>
<pre>:~$ sudo systemctl reload nginx</pre>
<p>Finally, open your web browser and go to <code>http://Your-server/test.php</code></p>
<p>So, Nginx and PHP are working.</p>
<h3>3. Install MariaDB</h3>
<p>The last step is to install MariaDB as a database manager and configure it to start.</p>
<pre>:~$ sudo zypper in mariadb mariadb-tools mariadb-client</pre>
<figure id="attachment_11666" aria-describedby="caption-attachment-11666" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11666" src="https://www.osradar.com/wp-content/uploads/2019/03/8-3.png" alt="8.- Install MariaDB" width="1365" height="431" srcset="https://www.osradar.com/wp-content/uploads/2019/03/8-3.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-300x95.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-768x242.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-1024x323.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-696x220.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-1068x337.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/8-3-1330x420.png 1330w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11666" class="wp-caption-text">8.- Install MariaDB</figcaption></figure>
<p>So, start and enable the service:</p>
<pre>:~$ sudo systemctl enable mysql
:~$ sudo systemctl start mysql</pre>
<p>Then, you have to set the root password and other configurations.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<figure id="attachment_11667" aria-describedby="caption-attachment-11667" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11667" src="https://www.osradar.com/wp-content/uploads/2019/03/9-3.png" alt="9.- Configuring Mariadb" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/9-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/9-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11667" class="wp-caption-text">9.- Configuring Mariadb</figcaption></figure>
<p>Once you have defined the root password, you will be asked other configuration questions that you must read carefully and choose the answers that suit your case.</p>
<p>So, this is it.</p>
<h2>Install Lemp on OpenSUSE 15: conclusion</h2>
<p>Knowing how to install and configure LEMP in OpenSUSE 15 and SUSE 15 is quite simple. However, it is vital to start running PHP applications on OpenSUSE 15. It is also important if you are a developer and starts using the right tools.</p>
<p>Please share this post with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-opensuse-15-suse/">How to install LEMP on OpenSUSE 15 / 15.1 / SUSE?</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-lemp-on-opensuse-15-suse/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LEMP on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-lemp-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-lemp-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 20 Apr 2019 05:00:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lemp]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></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=11777</guid>

					<description><![CDATA[<p>It is increasingly common to find LEMP servers on the market. This is because it allows you to have a more prepared web server for more numerous connections. As well as many simultaneous requests. Unlike LAMP, installing LEMP on Ubuntu 18.04 requires a few extra steps to make everything work. Anyway, it&#8217;s not a complex [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-ubuntu-18-04/">How to install LEMP 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>It is increasingly common to find LEMP servers on the market. This is because it allows you to have a more prepared web server for more numerous connections. As well as many simultaneous requests. Unlike LAMP, installing LEMP on Ubuntu 18.04 requires a few extra steps to make everything work. Anyway, it&#8217;s not a complex process and it is within most people&#8217;s reach. So, in this post, you will learn to install LEMP on Ubuntu 18.04.</p>
<p>LEMP refers to a set of software that together provides a web server. The main difference with <a href="https://www.osradar.com/how-to-install-lamp-on-ubuntu-18-04-lts/">LAMP</a> is that it replaces Apache with another HTTP server, usually Nginx. We have talked a lot about <a href="https://www.osaradar.com/tag/nginx/">Nginx</a>, and it is one of the most important applications for the web, where a large number of websites use it. The main features of Nginx are performance and scalability.</p>
<h2>Install LEMP on Ubuntu 18.04</h2>
<h3>Install Ubuntu 18.04</h3>
<p>If you have not yet installed Ubuntu 18.04 or do not know how to do it. <a href="https://www.osradar.com/how-to-install-ubuntu-18-04-lts/">Here</a> is a tutorial for you to do it without problems.</p>
<h3>Install Nginx</h3>
<p>Now we can install the second component of LEMP. Nginx is a wonder as a web server. Its performance is enviable and that&#8217;s why it has become a formidable option to serve websites. Especially when these websites have a lot of traffic.</p>
<p>Nginx is in the official Ubuntu 18.04 repositories, so open a terminal and run.</p>
<pre>:~$ sudo apt install nginx</pre>
<figure id="attachment_11864" aria-describedby="caption-attachment-11864" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11864" src="https://www.osradar.com/wp-content/uploads/2019/04/1-9.png" alt="1.- Install Nginx" width="1365" height="398" srcset="https://www.osradar.com/wp-content/uploads/2019/04/1-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/1-9-300x87.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/1-9-768x224.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/1-9-1024x299.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/1-9-696x203.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/1-9-1068x311.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11864" class="wp-caption-text">1.- Install Nginx</figcaption></figure>
<p>And that&#8217;s enough. If you use a firewall like ufw, remember to enable ports 80 and 443.</p>
<p>Then open a web browser and access your server. You can do it by the IP address of the same or through the domain.</p>
<p>image</p>
<p>So, Nginx is properly installed.</p>
<h3>Install PHP to work with Nginx</h3>
<p>Now it&#8217;s PHP&#8217;s turn, so let&#8217;s install it together with php-fpm to work with Nginx.</p>
<pre>:~$ sudo apt install php php-cli php-fpm php-mysql</pre>
<figure id="attachment_11865" aria-describedby="caption-attachment-11865" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11865" src="https://www.osradar.com/wp-content/uploads/2019/04/2-8.png" alt="2.- Install PHP" width="1365" height="379" srcset="https://www.osradar.com/wp-content/uploads/2019/04/2-8.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/2-8-300x83.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/2-8-768x213.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/2-8-1024x284.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/2-8-696x193.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/2-8-1068x297.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11865" class="wp-caption-text">2.- Install PHP</figcaption></figure>
<p>After that, edit the php.ini file.</p>
<pre>:~$ sudo nano /etc/php/7.2/fpm/php.ini</pre>
<p>And change the following line:</p>
<pre>;cgi.fix_pathinfo=1</pre>
<p>To:</p>
<pre>cgi.fix_pathinfo=0</pre>
<figure id="attachment_11866" aria-describedby="caption-attachment-11866" style="width: 705px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11866" src="https://www.osradar.com/wp-content/uploads/2019/04/3-8.png" alt="3.- Edit the php.ini config file" width="705" height="147" srcset="https://www.osradar.com/wp-content/uploads/2019/04/3-8.png 705w, https://www.osradar.com/wp-content/uploads/2019/04/3-8-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/3-8-696x145.png 696w" sizes="(max-width: 705px) 100vw, 705px" /><figcaption id="caption-attachment-11866" class="wp-caption-text">3.- Edit the php.ini config file</figcaption></figure>
<p>Save and close the file. Next, restart php-fpm.</p>
<pre>:~$ sudo systemctl restart php7.2-fpm</pre>
<p>Now you have to make some changes to Nginx to make everything work well. So edit the following file:</p>
<pre>:~$ sudo nano /etc/nginx/sites-available/default</pre>
<p>On the server section. Add index.php. And set the server_name to the server IP or the FQDN.</p>
<figure id="attachment_11867" aria-describedby="caption-attachment-11867" style="width: 680px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11867" src="https://www.osradar.com/wp-content/uploads/2019/04/4-5.png" alt="4.- Configuring PHP and Nginx" width="680" height="429" srcset="https://www.osradar.com/wp-content/uploads/2019/04/4-5.png 680w, https://www.osradar.com/wp-content/uploads/2019/04/4-5-300x189.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/4-5-666x420.png 666w" sizes="(max-width: 680px) 100vw, 680px" /><figcaption id="caption-attachment-11867" class="wp-caption-text">4.- Configuring PHP and Nginx</figcaption></figure>
<p>Then, scroll down to the location section and uncomment the include, fastcgi_pass, location, deny all lines. As in the image.</p>
<figure id="attachment_11868" aria-describedby="caption-attachment-11868" style="width: 574px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11868" src="https://www.osradar.com/wp-content/uploads/2019/04/5-4.png" alt="5.- Configuring PHP and Nginx" width="574" height="297" srcset="https://www.osradar.com/wp-content/uploads/2019/04/5-4.png 574w, https://www.osradar.com/wp-content/uploads/2019/04/5-4-300x155.png 300w" sizes="(max-width: 574px) 100vw, 574px" /><figcaption id="caption-attachment-11868" class="wp-caption-text">5.- Configuring PHP and Nginx</figcaption></figure>
<p>Save and close the file. Then, restart Nginx.</p>
<pre>:~$ sudo systemctl restart nginx</pre>
<p>Next, test PHP. To do it, create a new file .php and open it from the web browser.</p>
<pre>:~$ sudo nano /var/www/html/test.php</pre>
<p>And add the following.</p>
<pre>&lt;?
phpinfo();
?&gt;</pre>
<figure id="attachment_11869" aria-describedby="caption-attachment-11869" style="width: 846px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11869" src="https://www.osradar.com/wp-content/uploads/2019/04/6-3.png" alt="6.- Testing PHP" width="846" height="190" srcset="https://www.osradar.com/wp-content/uploads/2019/04/6-3.png 846w, https://www.osradar.com/wp-content/uploads/2019/04/6-3-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/6-3-768x172.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/6-3-696x156.png 696w" sizes="(max-width: 846px) 100vw, 846px" /><figcaption id="caption-attachment-11869" class="wp-caption-text">6.- Testing PHP</figcaption></figure>
<p>Finally, open it using the web browser.</p>
<h3>Install MariaDB</h3>
<p>Now we need to install MariaDB for this, we will use the version that is in the official repositories. So, let&#8217;s install it.</p>
<pre>:~$ sudo apt install mariadb-server</pre>
<figure id="attachment_11870" aria-describedby="caption-attachment-11870" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11870" src="https://www.osradar.com/wp-content/uploads/2019/04/7-3.png" alt="7.- Install MariaDB" width="1365" height="458" srcset="https://www.osradar.com/wp-content/uploads/2019/04/7-3.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-300x101.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-768x258.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-1024x344.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-696x234.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-1068x358.png 1068w, https://www.osradar.com/wp-content/uploads/2019/04/7-3-1252x420.png 1252w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11870" class="wp-caption-text">7.- Install MariaDB</figcaption></figure>
<p>Then, configure it using the mysql_secure_installation script.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<figure id="attachment_11871" aria-describedby="caption-attachment-11871" style="width: 898px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11871" src="https://www.osradar.com/wp-content/uploads/2019/04/8-1.png" alt="8.- Install MariaDB" width="898" height="634" srcset="https://www.osradar.com/wp-content/uploads/2019/04/8-1.png 898w, https://www.osradar.com/wp-content/uploads/2019/04/8-1-300x212.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/8-1-768x542.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/8-1-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/04/8-1-696x491.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/8-1-595x420.png 595w" sizes="(max-width: 898px) 100vw, 898px" /><figcaption id="caption-attachment-11871" class="wp-caption-text">8.- Configuring MariaDB</figcaption></figure>
<p>With this script, you will be able to define the root password and other options. So read them and answer what your server needs.</p>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>As you can see, installing LEMP on Ubuntu 18.04 is quite a simple process. With this, you will have a web server quite competent and specialized in websites with high traffic.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lemp-on-ubuntu-18-04/">How to install LEMP 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-lemp-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
