<?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>LAMP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 01 Sep 2021 17:14:20 +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 LAMP on Debian 11</title>
		<link>https://www.osradar.com/install-lamp-stack-debian-server/</link>
					<comments>https://www.osradar.com/install-lamp-stack-debian-server/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 07 Sep 2021 23:09:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32082</guid>

					<description><![CDATA[<p>Hello friends. In this post, you will learn how to install the LAMP stack on Debian 11 The LAMP stack is a set of applications that allow us to deploy a web server efficiently and quickly. LAMP stands for Linux, Apache web server, MariaDB, and PHP. Together they can make a computer a functional web [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-debian-server/">Install LAMP on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello friends. In this post, you will learn how to install the LAMP stack on Debian 11 The LAMP stack is a set of applications that allow us to deploy a web server efficiently and quickly.</p>



<p class="has-line-data">LAMP stands for Linux, Apache web server, MariaDB, and PHP. Together they can make a computer a functional web server that can run many websites and complex web applications such as <a href="https://wordpress.com/" target="_blank" rel="noreferrer noopener">WordPress</a>.</p>



<p class="has-line-data">So it is a good idea to know how to install this software stack that will serve as a base to install many other applications.</p>



<p class="has-line-data">So, let’s get started.</p>



<h2 class="code-line"><a id="Install_LAMP_on_Debian_11_8"></a>Install LAMP on Debian 11</h2>



<p class="has-line-data">To start our post, we need to start with a clean install of Debian 11 which is quite easy to install. It is also recommended that you have it updated with these commands.</p>



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



<p class="has-line-data">These commands are executed as the root user. But you can also<a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" target="_blank" rel="noreferrer noopener"> enable sudo on Debian 11</a>. So if you have it enabled just prefix the <code>sudo</code> command with the rest.</p>



<p class="has-line-data">With the system upgrade, we can continue the post.</p>



<h3 class="code-line"><a id="Install_Apache_and_PHP_on_Debian_11_19"></a>Install Apache and PHP on Debian 11</h3>



<p class="has-line-data">Apache is an open-source web server that is very popular around the world. On the other hand, PHP is a web programming language that, while not the only one, is one of the most popular and used by all kinds of developers.</p>



<p class="has-line-data">The installation of both tools is easy thanks to the fact that they are included in the official Debian 11 repositories. This process is detailed in our post</p>



<p class="has-line-data"><a href="https://www.osradar.com/install-apache-web-server-php-debian-linux/" target="_blank" rel="noreferrer noopener">How to install Apache on Debian 11?</a></p>



<p class="has-line-data">There you can find all the necessary information on how to install both tools.</p>



<h3 class="code-line"><a id="Install_MariaDB_on_Debian_11_29"></a>Install MariaDB on Debian 11</h3>



<p class="has-line-data">The next step is to install and properly configure <a href="http://mariadb.com/" target="_blank" rel="noreferrer noopener">MariaDB </a>which will serve as our database manager. MariaDB has many important features but the support that many web applications give to it is one of the main ones.</p>



<p class="has-line-data">For example, applications such as WordPress, GLPI, and others support MariaDB, so installing it is vital.</p>



<p class="has-line-data">For that, I invite you to read our post</p>



<p class="has-line-data"><a href="https://www.osradar.com/install-mariadb-database-debian/" target="_blank" rel="noreferrer noopener">How to install MariaDB on Debian 11?</a></p>



<p class="has-line-data">There you can not only install it but also get it ready for us to start using it.</p>



<h2 class="code-line">LAMP on Debian 11 Conclusion</h2>



<p class="has-line-data">In this post, we have shown you how to install the LAMP stack on Debian 11. To do this, we have relied on our posts where we detail the installation process of each of the components. This does not make the post longer and makes it easier to understand.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-stack-debian-server/">Install LAMP on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-lamp-stack-debian-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAMP on OpenSUSE 15.2 / 15.1?</title>
		<link>https://www.osradar.com/install-lamp-opensuse-15-2-15-1/</link>
					<comments>https://www.osradar.com/install-lamp-opensuse-15-2-15-1/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 06 Jul 2020 01:11:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12301</guid>

					<description><![CDATA[<p>It is increasingly common to find small companies that decide to use the SUSE ecosystem for their servers. It&#8217;s an unsurprising decision because OpenSUSE is a fairly stable and solid distribution. It also has the support of a giant company like SUSE. So this co-converts it is a pretty reliable distribution for these tasks. So, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-opensuse-15-2-15-1/">How to install LAMP on OpenSUSE 15.2 / 15.1?</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 small companies that decide to use the SUSE ecosystem for their servers. It&#8217;s an unsurprising decision because OpenSUSE is a fairly stable and solid distribution. It also has the support of a giant company like SUSE. So this co-converts it is a pretty reliable distribution for these tasks. So, in this post, I will show you how to install LAMP on OpenSUSE 15.2 / OpenSUSE 15.1. With this, you will have a fully functional basic web server.</p>
<h2>What is LAMP?</h2>
<p><a href="https://en.wikipedia.org/wiki/LAMP_(software_bundle)" rel="noopener">LAMP</a> is a set of programs or libraries that when installing on a computer, allow you to transform it into a Web server. This makes it one of the first things to do to start deploying dynamic websites.</p>
<p>LAMP is an acronym for Linux + <a href="https://www.osradar.com/tag/apache/" rel="noopener">Apache</a> + <a href="https://www.osradar.com/tag/mariadb/" rel="noopener">MariaDB</a> / <a href="https://www.osradar.com/tag/mysql/" rel="noopener">MySQL</a> and <a href="https://www.osradar.com/tag/php/" rel="noopener">PHP</a>. However, these are not the only components that allow you to have a web server, but the most popular and used.</p>
<p>So let&#8217;s get started.</p>
<h2>Install LAMP on OpenSUSE 15.2</h2>
<h3>1) Install Apache</h3>
<p>Apache is one of the most popular HTTP servers in the world. So much so that many websites run under this program. It is available for many Linux distributions so its installation should not be a problem for users.</p>
<p>In addition, we are looking for open source applications and Apache is bundled with a license that allows us to install it. Then, open a terminal and execute the following command:</p>
<pre>:~$ sudo zypper in apache2</pre>
<figure id="attachment_12302" aria-describedby="caption-attachment-12302" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12302 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/1-14.png" alt="1.- Getting LAMP on OpenSUSE 15.2 / 15.1 - Install Apache" width="1365" height="304" srcset="https://www.osradar.com/wp-content/uploads/2019/05/1-14.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/1-14-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/1-14-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/1-14-1024x228.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/1-14-696x155.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/1-14-1068x238.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12302" class="wp-caption-text">1.- Getting LAMP on OpenSUSE 15.2 / 15.1 &#8211; Install Apache</figcaption></figure>
<p>With this, Apache is installed. However, Apache is not running. Then you have to start the service. Also, it is a good idea to make it run during system startup. We achieve this with the following command:</p>
<pre>:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2</pre>
<p>Checks the status of the service to make sure that everything is OK:</p>
<pre>:~$ sudo systemctl status apache2<br />● apache2.service - The Apache Webserver<br />   Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)<br />   Active: active (running) since Sun 2020-07-05 21:12:43 EDT; 39s ago<br /> Main PID: 2376 (httpd-prefork)<br />   Status: "Processing requests..."<br />    Tasks: 6<br />   CGroup: /system.slice/apache2.service<br />           ├─2376 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />           ├─2383 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />           ├─2384 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />           ├─2385 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />           ├─2386 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />           └─2387 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconf&gt;<br />Jul 05 21:12:33 osradar systemd[1]: Starting The Apache Webserver...<br />Jul 05 21:12:43 osradar start_apache2[2376]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for osradar<br />Jul 05 21:12:43 osradar start_apache2[2376]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'Se&gt;<br />Jul 05 21:12:43 osradar systemd[1]: Started The Apache Webserver.</pre>
<p>As you can see, everything is correctly installed. But, OpenSUSE is a pretty secure distribution that comes with a built-in firewall. Then, it is necessary to set some rules in the Firewall so that Apache can run:</p>
<pre>:~$ sudo firewall-cmd --add-port=80/tcp --permanent
success<br />:~$ sudo firewall-cmd --add-port=443/tcp --permanent<br />success
:~$ sudo firewall-cmd --reload
success</pre>
<p>Now Apache is working properly.</p>
<h3>3) Install PHP</h3>
<p>In order to run applications or dynamic websites we need a programming language that interprets it. PHP is, of these languages, the most popular in the world. This is because it is easy to develop, quite accessible and with good support. We could say that a web server can not lack PHP.</p>
<p>In a terminal, type the following command to install PHP and several of its modules.</p>
<pre>:~$ sudo zypper in php7 php apache2-mod_php7 php7-curl php7-xmlreader php7-zip php7-pdo php7-gd php7-json php7-mysql php7-mbstring php7-openssl</pre>
<figure id="attachment_12303" aria-describedby="caption-attachment-12303" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12303" src="https://www.osradar.com/wp-content/uploads/2019/05/2-13.png" alt="2.- Install PHP" width="1365" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/05/2-13.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/2-13-300x86.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/2-13-768x221.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/2-13-1024x294.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/2-13-696x200.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/2-13-1068x307.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12303" class="wp-caption-text">2.- Install PHP</figcaption></figure>
<p>At the end of the installation, enable the PHP module and restart Apache for the changes to take effect.</p>
<pre>:~$ sudo a2enmod php7
:~$ sudo systemctl restart apache2</pre>
<p>After this, it is necessary to check that PHP is running. Open a text file in the Apache Document root with some PHP code and then open it from the web browser.</p>
<pre>:~$ sudo nano /srv/www/htdocs/test.php</pre>
<p>Add the following content:</p>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p>Then, open your web browser and open it, you should see this:</p>
<figure id="attachment_21488" aria-describedby="caption-attachment-21488" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-21488 size-full" src="https://www.osradar.com/wp-content/uploads/2019/06/php.png" alt="3.- PHP info on OpenSUSE 15.2 / 15.1" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/06/php.png 1354w, https://www.osradar.com/wp-content/uploads/2019/06/php-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/php-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/06/php-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/06/php-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/06/php-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-21488" class="wp-caption-text">3.- PHP info on OpenSUSE 15.2 / 15.1</figcaption></figure>
<p>So, Apache and PHP are working properly.</p>
<h3>4) Install MariaDB</h3>
<p>It is now necessary to install a database manager. In this case, MariaDB is indicated by its full compatibility with MySQL but with greater community momentum. All this without sacrificing stability and robustness. So this makes it the most viable option.</p>
<p>To install it, just run this command:</p>
<pre>:~$ sudo zypper in mariadb</pre>
<figure id="attachment_12305" aria-describedby="caption-attachment-12305" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12305 size-full" src="https://www.osradar.com/wp-content/uploads/2019/05/4-10.png" alt="4.- Getting LAMP on OpenSUSE 15.2 / 15.1 - Install MariaDB" width="1365" height="319" srcset="https://www.osradar.com/wp-content/uploads/2019/05/4-10.png 1365w, https://www.osradar.com/wp-content/uploads/2019/05/4-10-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/4-10-768x179.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/4-10-1024x239.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/4-10-696x163.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/4-10-1068x250.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12305" class="wp-caption-text">4.- Getting LAMP on OpenSUSE 15.2 / 15.1 &#8211; Install MariaDB</figcaption></figure>
<p>Now we have to start the service. As with Apache, it&#8217;s a good idea to have it start along with the system:</p>
<pre>:~$ sudo systemctl enable mariadb
:~$ sudo systemctl start mariadb</pre>
<p>Next, make sure the installation is secure by setting a root password. To do this, use the <code>mysql_secure_installation</code> script that is installed with the program.</p>
<figure id="attachment_12306" aria-describedby="caption-attachment-12306" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12306" src="https://www.osradar.com/wp-content/uploads/2019/05/5-5.png" alt="5.- Configuring MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/05/5-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/05/5-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12306" class="wp-caption-text">5.- Configuring MariaDB</figcaption></figure>
<p>After defining a password for the root user, you will be asked other configuration questions. Answer them carefully.</p>
<p>And that is it. Now, you know how to install LAMP on OpenSUSE 15.2 / 15.1.</p>
<h2>Install LAMP on OpenSUSE 15.2 /15.1  &#8211; Conclusion</h2>
<p>LAMP is a basic component of a web server. However, the installation is simple if we take into account that Linux has these tools. This way, you can have a basic web server for your personal projects or for the company.</p>
<p>Please share this post with your friends.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-opensuse-15-2-15-1/">How to install LAMP on OpenSUSE 15.2 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-lamp-opensuse-15-2-15-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAMP on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-lamp-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-lamp-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 27 Apr 2020 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19870</guid>

					<description><![CDATA[<p>A new version of Ubuntu has been released. So many people take advantage of this update to do a zero installation on their systems. And one of the basic components of a server is LAMP. Composed of several components that work together, with LAMP you can have a functional web server. At least, for most [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-ubuntu-20-04/">How to install LAMP 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>A <a rel="noreferrer noopener" aria-label="new version of Ubuntu has been released (opens in a new tab)" href="https://www.osradar.com/ubuntu-20-04-lts-available/" target="_blank">new version of Ubuntu has been released</a>. So many people take advantage of this update to do a zero installation on their systems. And one of the basic components of a server is LAMP. Composed of several components that work together, with LAMP you can have a functional web server. At least, for most of the applications or websites, there are.  It is also necessary if you are a web developer and need to run your application as you create it. Last but not least, LAMP is used for many educational purposes. So in this post, I will show you how to install  LAMP on Ubuntu 20.04.</p>



<p>LAMP is a series of individual applications that together form the basic infrastructure for a web server capable of serving dynamic web applications and websites. These components can be installed individually from various sources although it is best to use, at least initially, the official repositories of the distribution.</p>



<p>So we will install and configure each one of them. At least so you can start working without problems.</p>



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



<h3>The Apache Web Server</h3>



<p>A web server is an application that is installed on a computer that will be the central server of a network. This web server is in charge of serving and making available web sites through the network, either the Internet or the Internet.</p>



<p>The competition is fierce in the Unix world and has Nginx and Apache as its protagonists. Both are very efficient and fulfill the purpose for which they were conceived. However, in this case, we will opt for <a href="http://httpd.apache.org/" target="_blank" rel="noreferrer noopener" aria-label="Apache (opens in a new tab)">Apache</a> which is simple to use and configure.</p>



<p>The Apache web server is available in the official repositories of the distribution, so to install it, just open a terminal or connect to a server using SSH and run:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install apache2
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.2-0 ssl-cert
 Suggested packages:
   apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser openssl-blacklist
 The following NEW packages will be installed:
   apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.2-0 ssl-cert
 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
 Need to get 1864 kB of archives.
 After this operation, 8080 kB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="238" src="https://www.osradar.com/wp-content/uploads/2020/04/1-19-1024x238.png" alt="1.- Install Apache web server on Ubuntu 20.04" class="wp-image-19871" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-19-1024x238.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/1-19-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-19-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-19-696x162.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/1-19-1068x248.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/1-19.png 1241w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install Apache web server on Ubuntu 20.04</figcaption></figure>



<p>Once the installation is completed, all that remains is to check the status of the service.</p>



<pre class="wp-block-preformatted">:~$ sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
      Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
      Active: active (running) since Sat 2020-04-25 23:06:24 UTC; 57s ago
        Docs: https://httpd.apache.org/docs/2.4/
    Main PID: 1431 (apache2)
       Tasks: 55 (limit: 506)
      Memory: 5.1M
      CGroup: /system.slice/apache2.service
              ├─1431 /usr/sbin/apache2 -k start
              ├─1433 /usr/sbin/apache2 -k start
              └─1434 /usr/sbin/apache2 -k start
 Apr 25 23:06:24 osradar systemd[1]: Starting The Apache HTTP Server…
 Apr 25 23:06:24 osradar apachectl[1420]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' >
 Apr 25 23:06:24 osradar systemd[1]: Started The Apache HTTP Server.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="235" src="https://www.osradar.com/wp-content/uploads/2020/04/2-15-1024x235.png" alt="2.- Apache service status" class="wp-image-19872" srcset="https://www.osradar.com/wp-content/uploads/2020/04/2-15-1024x235.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/2-15-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/2-15-768x176.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/2-15-696x160.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/2-15-1068x245.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/2-15.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Apache service status</figcaption></figure>



<p>The service has been automatically started, but also configured to be started during the system startup. If you want to reverse this</p>



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



<p>For more information on the <strong>systemctl</strong> command read <a href="https://www.osradar.com/the-linux-systemctl-command/" target="_blank" rel="noreferrer noopener" aria-label="our post about it (opens in a new tab)">our post about it</a>.</p>



<p>To check that everything is ok, open your favorite web browser and go to <code>http://localhost</code> if you have done the installation on a local computer; or <code>http://SERVER-IP</code> or <code>http://Domain</code> if you have done it on a server.</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="3.- 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>3.- Apache Default page on Ubuntu 20.04</figcaption></figure>



<p>This means that Apache is working.</p>



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



<p>A web server by itself cannot interpret code from a programming language. And a dynamic web site that needs to process the data obtained or a web application that performs operations with that data, is made with a programming language such as PHP.</p>



<p>So, a full-featured web server also requires a programming language like PHP to be installed. Not necessarily the only one, but in this case, we will use PHP.</p>



<p>As with Apache, PHP 7.4 is in the official Ubuntu 20.04 repositories as are many of its modules. These modules are necessary for some particular applications. We&#8217;ll just install the basics.</p>



<p>So, run the following command in a terminal:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install php libapache2-mod-php php-mysql
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   libapache2-mod-php7.4 php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache php7.4-readline
 Suggested packages:
   php-pear
 The following NEW packages will be installed:
   libapache2-mod-php libapache2-mod-php7.4 php php-common php-mysql php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache php7.4-readline
 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
 Need to get 4144 kB of archives.
 After this operation, 18.5 MB of additional disk space will be used.
 Do you want to continue? [Y/n] </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="203" src="https://www.osradar.com/wp-content/uploads/2020/04/4-11-1024x203.png" alt="4.- Install PHP on Ubuntu 20.04" class="wp-image-19890" srcset="https://www.osradar.com/wp-content/uploads/2020/04/4-11-1024x203.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/4-11-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/4-11-768x152.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/4-11-696x138.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/4-11-1068x211.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/4-11.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Install PHP on Ubuntu 20.04</figcaption></figure>



<p>The next step is to test if PHP is being interpreted correctly. The best way to find out is to create a PHP file.</p>



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



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



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



<figure class="wp-block-image size-large"><img loading="lazy" width="871" height="167" src="https://www.osradar.com/wp-content/uploads/2020/04/5-7.png" alt="5.- Creating a new PHP file to test it" class="wp-image-19891" srcset="https://www.osradar.com/wp-content/uploads/2020/04/5-7.png 871w, https://www.osradar.com/wp-content/uploads/2020/04/5-7-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/5-7-768x147.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/5-7-696x133.png 696w" sizes="(max-width: 871px) 100vw, 871px" /><figcaption>5.- Creating a new PHP file to test it</figcaption></figure>



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



<p>Then restart Apache because we just installed PHP. This only needs to be done once.</p>



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



<p>Open your browser and try to open it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="https://www.osradar.com/wp-content/uploads/2020/04/6-10-1024x501.png" alt="6.- PHP is alive" class="wp-image-19892" srcset="https://www.osradar.com/wp-content/uploads/2020/04/6-10-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/6-10-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/6-10-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/6-10-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/6-10-1068x522.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/6-10.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- PHP is alive</figcaption></figure>



<h2>LAMP on Ubuntu 20.04 &#8211; MariaDB as DBMS</h2>



<p>For the LAMP stack to be complete, a DBMS such as MariaDB must be installed.</p>



<p>MariaDB is the last member of the LAMP stack. It is a database manager which is also a fork with MySQL. They are highly compatible although they also have marked differences.</p>



<p>With MariaDB, you will have a program capable of storing data in a fast, secure, and reliable way. </p>



<p>As with Apache and PHP, MariaDB can be installed from the distribution&#8217;s official repositories. The best thing is that today, there is version 10.3 which is one of the most recent ones.</p>



<p>Well, to install MariaDB run the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install mariadb-server
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   galera-3 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl
   libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient21 libsnappy1v5
   libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server-10.3 mariadb-server-core-10.3
   mysql-common socat
 Suggested packages:
   libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx mariadb-test tinyca
 The following NEW packages will be installed:
   galera-3 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl libhtml-parser-perl
   libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libmysqlclient21 libsnappy1v5
   libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3
   mariadb-server-core-10.3 mysql-common socat
 0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
 Need to get 21.1 MB of archives.
 After this operation, 173 MB of additional disk space will be used.
 Do you want to continue? [Y/n] </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="276" src="https://www.osradar.com/wp-content/uploads/2020/04/7-8-1024x276.png" alt="7.- Installing MariaDB on Ubuntu 20.04" class="wp-image-19894" srcset="https://www.osradar.com/wp-content/uploads/2020/04/7-8-1024x276.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/7-8-300x81.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/7-8-768x207.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/7-8-696x188.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/7-8-1068x288.png 1068w, https://www.osradar.com/wp-content/uploads/2020/04/7-8.png 1338w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Installing MariaDB on Ubuntu 20.04</figcaption></figure>



<p>After entering the password, the installation will start.</p>



<p>In Debian, Ubuntu and derivatives, when a service is installed it starts automatically. This is also the case for MariaDB which is already started, but does not have a password for the root user. This is the first thing you have to do.</p>



<p>To set a password for the root user, it is necessary to use the mysql_secure_installation script where you can not only define the new password but also make other configurations.</p>



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



<p>As there is no root password defined, just press the enter key to go ahead and define yours.  It has to be a strong and secret password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="910" height="386" src="https://www.osradar.com/wp-content/uploads/2020/04/8-4.png" alt="8.- LAMP on Ubuntu 20.04 - Configuring MariaDB on 20.04" class="wp-image-19893" srcset="https://www.osradar.com/wp-content/uploads/2020/04/8-4.png 910w, https://www.osradar.com/wp-content/uploads/2020/04/8-4-300x127.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/8-4-768x326.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/8-4-696x295.png 696w" sizes="(max-width: 910px) 100vw, 910px" /><figcaption>8.- LAMP on Ubuntu 20.04 &#8211; Configuring MariaDB on 20.04</figcaption></figure>



<p>Then, you will be asked four configuration questions. I have answered all of them with a Y.</p>



<pre class="wp-block-preformatted">Remove anonymous users? [Y/n]
Disallow root login remotely? [Y/n] 
Remove test database and access to it? [Y/n] 
Reload privilege tables now? [Y/n]</pre>



<p>If you want to show the version of MariaDB that we have just installed, you can do so by running the following command:</p>



<pre class="wp-block-preformatted">:~$ mariadb --version
mariadb See 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2</pre>



<p>So, congratulations LAMP is now correctly installed on Ubuntu 20.04</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram Channel (opens in a new tab)">our Telegram Channel</a>.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-ubuntu-20-04/">How to install LAMP on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-lamp-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install CakePHP on CentOS 8?</title>
		<link>https://www.osradar.com/install-cakephp-centos-8/</link>
					<comments>https://www.osradar.com/install-cakephp-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 27 Sep 2019 17:00:09 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13938</guid>

					<description><![CDATA[<p>Installing and using a PHP framework is a great idea to develop quality web applications. This is because the frameworks have configurations and conventions prepared for development. In this post, I will show you how to install CakePHP in CentOS 8. With this framework you will be able to quickly create web applications following the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cakephp-centos-8/">How to install CakePHP on CentOS 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>Installing and using a PHP framework is a great idea to develop quality web applications. This is because the frameworks have configurations and conventions prepared for development. In this post, I will show you how to install CakePHP in CentOS 8. With this framework you will be able to quickly create web applications following the best possible conventions.</p>



<p><strong>In Osradar we like <a rel="noreferrer noopener" aria-label="CakePHP (opens in a new tab)" href="https://cakephp.org/" target="_blank">CakePHP</a></strong> very much and is that this <a href="https://www.osradar.com/tag/php/" target="_blank" rel="noreferrer noopener" aria-label="PHP (opens in a new tab)">PHP</a> framework for the creation of solid web applications, is a wonder. Thanks to CakePHP it is possible to create applications quickly, robust and above all easy to maintain. Not in vain is one of the best known frameworks that PHP has.</p>



<p>So, let us start to install CakePHP on CentOS 8.</p>



<h2>Install CakePHP on CentOS 8</h2>



<h3>1) Install LAMP on CentOS 8</h3>



<p>While it is true that to start developing using CakePHP you only need to install PHP and a database management system, it is recommended to install the entire LAMP stack at once.</p>



<p>Read, <a href="https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/" target="_blank" rel="noreferrer noopener" aria-label="How to install LAMP on CentOS 8? (opens in a new tab)">How to install LAMP on CentOS 8?</a></p>



<p>In the case of PHP, you can use PHP 7.3 but you have to activate the following modules:</p>



<ul><li>mbstring PHP extension </li><li>intl PHP extension</li><li>simplexml PHP extension </li><li>PDO PHP extension</li></ul>



<p>You can also use Apache or Nginx as a web server. As you can see, the framework is very flexible.</p>



<h3>2) Install Composer on CentOS 8</h3>



<p>CakePHP has many dependencies that make manual installation a bit complicated. However, to handle PHP dependencies nothing better than <a rel="noreferrer noopener" aria-label="Composer (opens in a new tab)" href="https://getcomposer.org/" target="_blank">Composer</a>. Using it the CakePHP installation becomes a lot less complicated. So you have to install it. Just, be sure that you have installed the json PHP extension.</p>



<p>Read, <a href="https://www.osradar.com/how-to-install-composer-on-linux/" target="_blank" rel="noreferrer noopener" aria-label="How to install Composer on Linux? (opens in a new tab)">How to install Composer on Linux?</a></p>



<p>In that post, we detail the installation process. So you will not have any problems in completing the process. Once you are done, you can continue.</p>



<h3>3) Install CakePHP on CentOS 8</h3>



<p>Now it is time to install CakePHP on CentOS 8. For that, just use composer to &#8220;download&#8221; all CakePHP components. On a terminal, run the following, as a regular user not as root:</p>



<pre class="wp-block-preformatted">:~$ composer create-project --prefer-dist cakephp/app example</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="555" src="https://www.osradar.com/wp-content/uploads/2019/09/1-27-1024x555.png" alt="1.- Install CakePHP on CentOS 8" class="wp-image-13969" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-27-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-27-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-27-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-27-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-27-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/1-27-775x420.png 775w, https://www.osradar.com/wp-content/uploads/2019/09/1-27.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Install CakePHP on CentOS 8</figcaption></figure>



<p>So, remember to replace &#8220;<g class="gr_ gr_4 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling gr-progress" id="4" data-gr-id="4">e</g>xample&#8221; with the correct name of your project. This is just an example.</p>



<p>Then, you have to make the cake file executable to get tools from the framework. To do this, execute the following commands:</p>



<pre class="wp-block-preformatted">:~$ cd example
:~$ chmod +x bin/cake</pre>



<p>Now all you have to do is start developing your application. If you want to &#8220;serve it&#8221; and check that everything is perfectly in order, run the following command from the project folder:</p>



<pre class="wp-block-preformatted">:~$ bin/cake server</pre>



<p>This will make your application available from localhost and will be accessible from the web browser. But if you add the option -H and -P you can specify the host and port where the application will be served.</p>



<pre class="wp-block-preformatted">:~$ bin/cake server -H [host] -p [port]</pre>



<p>Now, open your web browser and go to your CakePHP app and you will see the following:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="499" src="https://www.osradar.com/wp-content/uploads/2019/09/2-26-1024x499.png" alt="2.- CakePHP on CentOS 8" class="wp-image-13974" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-26-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-26-861x420.png 861w, https://www.osradar.com/wp-content/uploads/2019/09/2-26.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- CakePHP on CentOS 8</figcaption></figure>



<p>And that is it.</p>



<h2>Conclusion</h2>



<p>CakePHP combines the ease of a clear and conscious framework with the robustness of a solid code that allows you to have secure applications with clear conventions. In this post, you have learned to install it in CentOS in an easy and fast way.</p>



<p>You can also learn <a href="https://www.osradar.com/install-cakephp-debian-10/" target="_blank" rel="noreferrer noopener" aria-label="how to install it in Debian 10. (opens in a new tab)">how to install it in Debian 10.</a></p>



<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel. (opens in a new tab)">our Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cakephp-centos-8/">How to install CakePHP on CentOS 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-cakephp-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Elgg on Debian 10?</title>
		<link>https://www.osradar.com/install-elgg-debian-10/</link>
					<comments>https://www.osradar.com/install-elgg-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Wed, 04 Sep 2019 22:11:23 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[elgg]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[social network]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13225</guid>

					<description><![CDATA[<p>Today there are applications for all kinds of projects. Including social network engines that we can deploy to have an internal blog system. Or an internal social network where we can upload information and post on our internal network. For this, we have Elgg as a great help. It is a wonderful application that is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-elgg-debian-10/">How to install Elgg on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today there are applications for all kinds of projects. Including social network engines that we can deploy to have an internal blog system. Or an internal social network where we can upload information and post on our internal network. For this, we have Elgg as a great help. It is a wonderful application that is very complete in functionalities. So, in this post, I will show how to install Elgg on Debian 10.</p>
<h2>Briefly, what is Elgg?</h2>
<p>So, what is Elgg? On the project website we find the best definition by the development team:</p>
<blockquote><p>Elgg is an award-winning open source social networking engine that provides a robust framework on which to build all kinds of social environments, from a campus wide social network for your university, school or college or an internal collaborative platform for your organization through to a brand-building communications tool for your company and its clients.</p></blockquote>
<p>So as you can see, the possibilities Elgg offers us are quite profitable. Also in a business environment, it is quite useful.</p>
<p>So, let us get to work.</p>
<h2>Install Elgg on Debian 10</h2>
<ul>
<li>
<p class="first">MySQL 5.5.3.</p>
</li>
</ul>
<p class="first">PHP 7.1+ with the following extensions:</p>
<div>
<ul class="simple">
<li>GD (for graphics processing)</li>
<li>PDO (for database connection)</li>
<li>JSON (for AJAX responses, etc.)</li>
<li>XML (for reading plugin manifest files, etc.)</li>
<li>Multibyte String support (mbstring)</li>
<li>Proper configuration and ability to send email through an MTA</li>
</ul>
</div>
<p>The web server with support for URL rewriting:</p>
<ul class="simple">
<li>
<dl class="first docutils">
<dt>Apache server</dt>
<dd>
<ul class="first last">
<li>Apache with the <a class="reference external" href="https://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">rewrite module</a> enabled</li>
<li>PHP running as an Apache module</li>
</ul>
</dd>
</dl>
</li>
<li>
<dl class="first docutils">
<dt>Nginx server</dt>
<dd>
<ul class="first last">
<li>Nginx with PHP-FPM using FastCGI</li>
</ul>
</dd>
</dl>
</li>
</ul>
<p>All this information can be obtained in a better way if you consult the <a href="http://learn.elgg.org/en/stable/intro/install.html" rel="noopener noreferrer">official documentation</a>.</p>
<h3>1) Install LAMP on Debian 10</h3>
<p>First, you need a functional web server. In this case, we will use Apache and the LAMP stack. It is one of the functional and simple ones that we will be able to use.</p>
<p>Read, <a href="https://www.osradar.com/install-lamp-on-debian-10/" rel="noopener noreferrer">How to install LAMP on Debian 10?</a></p>
<p>However, we need to install MySQL instead of MariaDB. So, run this command to download the MySQL repo file.</p>
<pre>:~$ wget http://repo.mysql.com/mysql-apt-config_0.8.13-1_all.deb</pre>
<p>Then, install it with gdebi. If you do no have it, you can install it.</p>
<pre>:~$ sudo gdebi mysql-apt-config_0.8.13-1_all.deb</pre>
<p><figure id="attachment_13232" aria-describedby="caption-attachment-13232" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13232" src="https://www.osradar.com/wp-content/uploads/2019/08/1-21.jpeg" alt="Install the MySQL repository" width="1366" height="623" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-21.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-300x137.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-768x350.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-1024x467.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-696x317.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-1068x487.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-21-921x420.jpeg 921w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13232" class="wp-caption-text">Install the MySQL repository</figcaption></figure></p>
<p>Then, install MySQL.</p>
<pre>:~$ sudo apt update &amp;&amp; sudo apt install mysql-server mysql-community-server mysql-client mysql-community-client mysql-community-server-core mysql-community-client-core</pre>
<p>In the PHP modules, take into account the requirements I have taught above:</p>
<pre>php php-cli php-gd php-xml php-mbstring php-pdo php-json php-pear</pre>
<h3>2) Create a new database for Elgg</h3>
<p>It is now necessary to create a new database for Elgg. Besides this, you will also have to create a new user. This as a security measure.</p>
<p>To do this, go to the MariaDB console and start the process:</p>
<pre>:~$ sudo mysql -u root -p
&gt; CREATE DATABASE elggdb;
&gt; CREATE USER 'elgguser'@'localhost' IDENTIFIED BY 'Elggpss1234.';
&gt; GRANT ALL PRIVILEGES ON elggdb.* TO 'elgguser'@'localhost';
&gt; FLUSH PRIVILEGES;
&gt; exit;</pre>
<p><figure id="attachment_13233" aria-describedby="caption-attachment-13233" style="width: 819px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13233" src="https://www.osradar.com/wp-content/uploads/2019/08/2b.jpeg" alt="1.- Creating the new databases and user" width="819" height="462" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2b.jpeg 819w, https://www.osradar.com/wp-content/uploads/2019/08/2b-300x169.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2b-768x433.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2b-696x393.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2b-745x420.jpeg 745w" sizes="(max-width: 819px) 100vw, 819px" /><figcaption id="caption-attachment-13233" class="wp-caption-text">1.- Creating the new databases and user</figcaption></figure></p>
<h3>3) Download and install Elgg on Debian 10</h3>
<p>The next step is to download and install Elgg. For this, we will use one terminal tool that we must have installed.</p>
<pre>:~$ sudo apt install unzip</pre>
<p>Now yes, we proceed to install the latest stable version of Elgg.</p>
<pre>:~$ wget https://elgg.org/about/getelgg?forward=elgg-3.1.1.zip -O elgg.zip</pre>
<p><figure id="attachment_13229" aria-describedby="caption-attachment-13229" style="width: 1330px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13229" src="https://www.osradar.com/wp-content/uploads/2019/08/2-18.jpeg" alt="2.- Download Elgg on Debian 10" width="1330" height="295" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-18.jpeg 1330w, https://www.osradar.com/wp-content/uploads/2019/08/2-18-300x67.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-18-768x170.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-18-1024x227.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-18-696x154.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-18-1068x237.jpeg 1068w" sizes="(max-width: 1330px) 100vw, 1330px" /><figcaption id="caption-attachment-13229" class="wp-caption-text">2.- Download Elgg on Debian 10</figcaption></figure></p>
<p>Then unzip it.</p>
<pre>:~$ unzip elgg.zip</pre>
<p>Now, move it to <code>/var/www/html/</code> and set the proper permissions. Equally, create a new folder for the elgg data and set the permissions.</p>
<pre>:~$ sudo mv elgg-3.1.1/ /var/www/html/elgg
:~$ sudo chown -R www-data:www-data /var/www/html/elgg/
:~$ sudo chmod -R 755 /var/www/html/elgg/
:~$ sudo mkdir /var/www/html/data
:~$ sudo chown -R www-data:www-data /var/www/html/data
:~$ sudo chmod -R 755 /var/www/html/data</pre>
<p>Now, we need to create a new VirtualHost for Elgg. So, create a new configuration file.</p>
<pre>:~$ sudo nano /etc/apache2/sites-available/elgg.conf</pre>
<p>And add the following:</p>
<pre>&lt;VirtualHost *:80&gt;
    DocumentRoot /var/www/html/elgg/
    ServerName elgg.osradar.lan

    &lt;Directory /var/www/html/elgg/&gt;
       Options FollowSymlinks
       AllowOverride All
       Require all granted
    &lt;/Directory&gt;
ErrorLog ${APACHE_LOG_DIR}/elgg.osradar.lan_error.log
CustomLog ${APACHE_LOG_DIR}/elgg.osradar.lan_access.log combined
&lt;/VirtualHost&gt;</pre>
<p><figure id="attachment_13234" aria-describedby="caption-attachment-13234" style="width: 957px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13234" src="https://www.osradar.com/wp-content/uploads/2019/08/4-16.jpeg" alt="4.- Creating the new virtualhost" width="957" height="259" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-16.jpeg 957w, https://www.osradar.com/wp-content/uploads/2019/08/4-16-300x81.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-16-768x208.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-16-696x188.jpeg 696w" sizes="(max-width: 957px) 100vw, 957px" /><figcaption id="caption-attachment-13234" class="wp-caption-text">4.- Creating the new virtual host</figcaption></figure></p>
<p>Replace elgg.osradar.lan by your server name.</p>
<p>Then, enable the new virtualhost and the Apache rewrite module.</p>
<pre>:~$ sudo ln -s /etc/apache2/sites-available/elgg.conf /etc/apache2/sites-enabled/elgg.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2</pre>
<p><figure id="attachment_13230" aria-describedby="caption-attachment-13230" style="width: 819px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13230" src="https://www.osradar.com/wp-content/uploads/2019/08/4-15.jpeg" alt="4.- Applying the new configuration" width="819" height="153" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-15.jpeg 819w, https://www.osradar.com/wp-content/uploads/2019/08/4-15-300x56.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-15-768x143.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-15-696x130.jpeg 696w" sizes="(max-width: 819px) 100vw, 819px" /><figcaption id="caption-attachment-13230" class="wp-caption-text">4.- Applying the new configuration</figcaption></figure></p>
<h3>4) Complete the installation using the web interface</h3>
<p>Now open a web browser and go to your web server to complete the installation. You will see this image:</p>
<p><figure id="attachment_13235" aria-describedby="caption-attachment-13235" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13235" src="https://www.osradar.com/wp-content/uploads/2019/08/6-7.png" alt="6.- Elgg welcome screen" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-7-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13235" class="wp-caption-text">6.- Elgg welcome screen</figcaption></figure></p>
<p>The installer will then check the requirements. After that, you will have to write the credentials from the database.</p>
<p><figure id="attachment_13236" aria-describedby="caption-attachment-13236" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13236" src="https://www.osradar.com/wp-content/uploads/2019/08/7-9.png" alt="7.- Databases Credentials" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-9-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13236" class="wp-caption-text">7.- Databases Credentials</figcaption></figure></p>
<p>Then, you have to set up the website. Things like name, email address, you can configure in this section.</p>
<p>Now you will have to set up the administrator account.</p>
<p>In the end, you will see this message indicating that everything went well.</p>
<p><figure id="attachment_13120" aria-describedby="caption-attachment-13120" style="width: 1001px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13120" src="https://www.osradar.com/wp-content/uploads/2019/08/17.png" alt="8.- Elgg installation successfully completed" width="1001" height="426" srcset="https://www.osradar.com/wp-content/uploads/2019/08/17.png 1001w, https://www.osradar.com/wp-content/uploads/2019/08/17-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/17-768x327.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/17-696x296.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/17-987x420.png 987w" sizes="(max-width: 1001px) 100vw, 1001px" /><figcaption id="caption-attachment-13120" class="wp-caption-text">8.- Elgg installation successfully completed</figcaption></figure></p>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>Elgg is a web application that works excellently to deploy our own internal social network. To make the most of it, a competent web server is enough. No other world. On the other hand, installing Elgg on Debian 10 is quite simple.</p>
<p>So, please share this post with your friends 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-elgg-debian-10/">How to install Elgg on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-elgg-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the LAMP stack on Oracle Linux 8 / RHEL 8 / CentOS 8 ?</title>
		<link>https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/</link>
					<comments>https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 26 Jul 2019 22:11:13 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12815</guid>

					<description><![CDATA[<p>Recently Oracle Linux 8 based on RHEL 8 was released. And we are also waiting for CentOS 8. They are distributions clearly designed for servers and large network infrastructures. Therefore, these servers require applications and services to provide some support to the network. And if this network wants to run web applications, then it must [&#8230;]</p>
<p>The post <a rel="nofollow" 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 / CentOS 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>Recently Oracle Linux 8 based on RHEL 8 was released. And we are also waiting for CentOS 8. They are distributions clearly designed for servers and large network infrastructures. Therefore, these servers require applications and services to provide some support to the network. And if this network wants to run web applications, then it must have the right programs and libraries. Therefore, in this post, you will learn how to install the LAMP stack on Oracle Linux 8, RHEL 8 and CentOS 8.</p>
<h2>The LAMP stack</h2>
<p>LAMP is the set of several programs to perform the installation of a basic and functional web server. First of all, it is necessary to have a Linux distribution capable of being stable enough so that it does not fail. Nothing better than Oracle Linux, RHEL or <a href="https://www.osradar.com/tag/centos/">CentOS</a>; then, an HTTP server like Apache, a database manager like <a href="https://www.osradar.com/tag/mysql/">MySQL</a> and finally a web-oriented programming language like PHP.</p>
<p>Together they form the LAMP stack and it is basic to run web applications made in PHP as well as to develop new ones.</p>
<h3>Install Apache webserver</h3>
<p>We are going to install the <a href="https://www.osradar.com/tag/apache/" rel="noopener">Apache</a> webserver. Its name is <code>httpd</code> and it is in the official repositories of these Linux distributions. It is the most popular web server out there and most open source projects use it as the basis for their execution.</p>
<p>On the other hand, it is open source and is very well supported by the community.</p>
<p>Open a terminal session or connect to the server using <a href="https://www.osradar.com/termius-is-a-powefull-ssh-client/" rel="noopener">ssh</a>.</p>
<pre>:~$ su
:~# dnf install httpd</pre>
<p><figure id="attachment_12816" aria-describedby="caption-attachment-12816" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12816" src="https://www.osradar.com/wp-content/uploads/2019/07/1-7.jpeg" alt="1.- Install apache web server on Oracle Linux 8 RHEL 8 and CentOS 8" width="1366" height="412" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-7.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-300x90.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-768x232.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-1024x309.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-696x210.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-1068x322.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12816" class="wp-caption-text">1.- Install an apache web server on Oracle Linux 8 RHEL 8 and CentOS 8</figcaption></figure></p>
<p>Then, you need to start the service.</p>
<pre>:~# systemctl start httpd</pre>
<p>If it is a production or development web server, then, it is a good idea for Apache to run at system startup. To do this, run this command as well:</p>
<pre>:~# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.</pre>
<p>Then you have to open port <code>80</code> in the firewall. If you plan to use https, then open <code>443</code> as well.</p>
<pre>:~# firewall-cmd --add-port=80/tcp --zone=public --permanent
success
:~# firewall-cmd --add-port=443/tcp --zone=public --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Now, open your web browser and go to your server. For example, <code>http://server-ip</code> and you will see this.</p>
<p><figure id="attachment_12817" aria-describedby="caption-attachment-12817" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12817" src="https://www.osradar.com/wp-content/uploads/2019/07/2-13.png" alt="2.- Apache default page on Oracle Linux 8" width="1366" height="426" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-13.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-768x240.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-1024x319.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-696x217.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-1068x333.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/2-13-1347x420.png 1347w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12817" class="wp-caption-text">2.- Apache default page on Oracle Linux 8</figcaption></figure></p>
<p>So, the Apache webserver is running properly.</p>
<h3>Second step: PHP</h3>
<p>Then you have to install PHP so that the applications can be interpreted. PHP is also in the official repositories, so there will be no problems.</p>
<p>It is also a good idea to install several PHP extensions to extend its functionality.</p>
<pre>:~# dnf install php php-common php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-xml</pre>
<p><figure id="attachment_12818" aria-describedby="caption-attachment-12818" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12818" src="https://www.osradar.com/wp-content/uploads/2019/07/3-5.jpeg" alt="3.- Installing PHP on Oracle Linux 8 RHEL 8 and CentOS 8" width="1366" height="596" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-5.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-300x131.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-768x335.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-1024x447.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-696x304.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-1068x466.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/07/3-5-963x420.jpeg 963w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12818" class="wp-caption-text">3.- Installing PHP on Oracle Linux 8 RHEL 8 and CentOS 8</figcaption></figure></p>
<p>Now, it is time to test it. Create a new file called <code>test.php</code> on <code>/var/www/html</code> and add the following.</p>
<pre>:~# nano /var/www/html/test.php</pre>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p>Next, restart Apache.</p>
<pre>:~# systemctl restart httpd</pre>
<p>Now, open the file using the web browser.</p>
<p>Now, Apache and PHP are working.</p>
<h3>The last component of the LAMP stack: MySQL</h3>
<p>Now the database manager is missing. To do this, we will use MySQL. To install it, run the following command:</p>
<pre>:~# dnf install mysql-server
or
:~# dnf install mariadb-server</pre>
<p><figure id="attachment_12819" aria-describedby="caption-attachment-12819" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12819" src="https://www.osradar.com/wp-content/uploads/2019/07/4-2.jpeg" alt="4.- Install MySQL on Oracle Linux 8" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-2.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-300x169.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-768x432.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-1024x576.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-696x391.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-1068x600.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-747x420.jpeg 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12819" class="wp-caption-text">4.- Install MySQL on Oracle Linux 8</figcaption></figure></p>
<p>After installing it, as well as with Apache, start the service. It is also convenient to start the system.</p>
<pre>:~# systemctl start mysqld
:~# systemctl enable mysqld
or
:~# systemctl start mariadb
:~# systemctl enable mariadb</pre>
<p>However, the MySQL root password has not been defined and the installation has not been secured. To do this, run the following command:</p>
<pre>:~# mysql_secure_installation</pre>
<p>Then, after defining the root password, you will be asked other questions related to the security of the program.</p>
<pre class="">Remove anonymous users? [Y/n] Y 
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] y</pre>
<p>Now, you can start to create the databases you want.</p>
<h2>Conclusion</h2>
<p>The LAMP stack is something fundamental in a modern server. Therefore, it is important to have it installed and configured correctly and run web applications. In this post, you have learned to install it in Oracle Linux 8, RHEL 8 and CentOS 8.</p>
<p>You can also read <a href="https://www.osradar.com/install-lamp-on-debian-10/">how to install LAMP on Debian 10 Buster</a>?</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" 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 / CentOS 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-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to deploy a LAMP server using Docker-Compose?</title>
		<link>https://www.osradar.com/how-to-deploy-a-lamp-server-using-docker-compose/</link>
					<comments>https://www.osradar.com/how-to-deploy-a-lamp-server-using-docker-compose/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 24 Jul 2019 00:00:45 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12743</guid>

					<description><![CDATA[<p>Recently we talked to you about installing Docker on Debian 10 Buster. Docker is a technology to display container images that allows you to install applications without worrying about dependencies. In this opportunity, we will deploy a LAMP server using docker-compose. Install Docker and Docker-compose Before starting, it is necessary to install Docker and docker-compose. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-deploy-a-lamp-server-using-docker-compose/">How to deploy a LAMP server using Docker-Compose?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently we talked to you about installing Docker on Debian 10 Buster. Docker is a technology to display container images that allows you to install applications without worrying about dependencies. In this opportunity, we will deploy a <a href="https://www.osradar.com/install-lamp-on-debian-10/">LAMP</a> server using docker-compose.</p>
<h2>Install Docker and Docker-compose</h2>
<p>Before starting, it is necessary to install Docker and docker-compose. Both are in the Debian 10. However, if you want the latest stable version of Docker you can read this post we made.</p>
<p>To install them, run the following command:</p>
<pre>:~$ sudo apt install docker docker-compose</pre>
<p>Then, enter the user password and finally wait for the process to finish.</p>
<h2>Deploy a LAMP server with docker-compose</h2>
<h3>What is docker-compose?</h3>
<p><a href="https://docs.docker.com/compose/">Docker-compose</a> is a utility that allows you to deploy applications through the definition of a YAML file. In this file we will put all the configuration of the images, and then with raise with the following command:</p>
<pre>:~$ sudo docker-compose up -d</pre>
<p>The advantages are too obvious. For example, if we pass this file to another computer, and display it, we will get the same result as in our computer. Then, the portability is maximum.</p>
<p>On the other hand, if we have successfully deployed one or several images, just save the file to reuse it whenever we want.</p>
<h3>A LAMP server using docker-compose. Apache y PHP.</h3>
<p>First, create a new folder called <em>test </em>and inside it, create another folder called <em>DocumentRoot. </em>Then, create a new PHP file to test the image when is ready.</p>
<pre>:~$ mkdir -p test/DocumentRoot
:~$ cd test/
:~$ nano index.php
&lt;?php
phpinfo();
?&gt;</pre>
<p>Second, it is necessary to create the file with extension YML. Locate it wherever you want and use the text editor of your choice. In my case, I will use nano in the terminal.</p>
<pre>:~$ nano docker-compose.yml</pre>
<p>Now, we can start to work.</p>
<p>First, let&#8217;s define the image of PHP and Apache together. I will use for this case, PHP version 7.3.</p>
<pre>version: '3'
services:
    php-apache:
        image: mitlabs/apache-php7.3
        ports:
            - 80:80
        volumes:
            - ./DocumentRoot:/var/www/html
        links:
            - 'mariadb'</pre>
<p>I now proceed to briefly explain this first part of the file.</p>
<p>Services: they are each and every one of the application services that are going to be defined in the file. In this case, the first service to raise is <em>php-apache</em>.</p>
<p>php<em>-apache</em> is the first service and it is necessary to define some options. You can replace the <em>php-apache</em> name with the one you want.</p>
<p>Image refers to the image Docker you will use. Ports refer to which port will be exposed from Docker. In Apache, the access port is 80. Therefore, the <em>80</em> is exposed to the host and in the guest.</p>
<p>In the volume section, it is advisable to mount the volume of the container on our host system. I explain myself if we did not do it this way, every time there are changes in the image, we would have to rebuild it and we would probably lose the data. So the DocumentRoot of the image will be mounted on <em>/var/www/</em>html of our system.</p>
<p>Then, for the php-apache service to become database dependent, specify it with the word links and define &#8216;mariadb&#8217;.</p>
<h3>The MariaDB service</h3>
<p>Now it is MariaDB&#8217;s turn to complete LAMP. To do this, add the following code.</p>
<pre> mariadb:
        image: mariadb:10.3
        volumes:
            - mariadb:/var/lib/mysql
        environment:
            TZ: <span class="token string">"America/Chicago"</span>
            MYSQL_ALLOW_EMPTY_PASSWORD: <span class="token string">"no"</span>
            MYSQL_ROOT_PASSWORD: <span class="token string">"AngeloOsradar"</span>
            MYSQL_USER: <span class="token string">'osradar'</span>
            MYSQL_PASSWORD: <span class="token string">'osradarpss'</span>
            MYSQL_DATABASE: <span class="token string">'testdb'
        ports:
            - 3306:3306</span></pre>
<p>As with PHP and Apache. First, we define the image, in this case, the 10.3.</p>
<p>Again, in volumes, we define a directory of our host (<em>/var/lib/</em>mysql) to receive the data from the mariadb directory.</p>
<p>In the environment, we define the configuration of MariaDB. First, the Timezone, then the empty password option is denied and finally the users and their passwords. This part is somewhat explicit.</p>
<p>Finally, you have to define the ports of the application.</p>
<p>At the end, the file will look like this.</p>
<pre>version: '3'
services:
    php-apache:
        image: mitlabs/apache-php7.3
        ports:
            - 80:80
        volumes:
            - ./DocumentRoot:/var/www/html
        links:
            - <span class="token string">'mariadb'
    mariadb:
        image:mariadb:10.3
        volumes:
            - mariadb:/var/lib/mysql
        environment:
            TZ: "America/Chicago"
            MYSQL_ALLOW_EMPTY_PASSWORD: "no"
            MYSQL_ROOT_PASSWORD: "AngeloOsradar"
            MYSQL_USER: 'osradar'
            MYSQL_PASSWORD: 'osradarpss'
            MYSQL_DATABASE: 'testdb'
        ports:
            - 3306:3306
volumes:
    mariadb:</span></pre>
<p><figure id="attachment_12792" aria-describedby="caption-attachment-12792" style="width: 833px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12792" src="https://www.osradar.com/wp-content/uploads/2019/07/1-4.jpeg" alt="1.- The YML file" width="833" height="436" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-4.jpeg 833w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-300x157.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-768x402.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-696x364.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-802x420.jpeg 802w" sizes="(max-width: 833px) 100vw, 833px" /><figcaption id="caption-attachment-12792" class="wp-caption-text">1.- The YML file</figcaption></figure></p>
<p>Pay attention to the indexing of the file for it to be valid.</p>
<p>Next, run this command:</p>
<pre>:~$ sudo docker-compose up -d
:~$ sudo mv index.php DocumentRoot/</pre>
<p><figure id="attachment_12793" aria-describedby="caption-attachment-12793" style="width: 787px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12793" src="https://www.osradar.com/wp-content/uploads/2019/07/2-3.jpeg" alt="2.- Deploy a LAMP server using Docker compose" width="787" height="484" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-3.jpeg 787w, https://www.osradar.com/wp-content/uploads/2019/07/2-3-300x184.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-3-768x472.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-3-356x220.jpeg 356w, https://www.osradar.com/wp-content/uploads/2019/07/2-3-696x428.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-3-683x420.jpeg 683w" sizes="(max-width: 787px) 100vw, 787px" /><figcaption id="caption-attachment-12793" class="wp-caption-text">2.- Deploy a LAMP server using Docker compose</figcaption></figure></p>
<p>Next, open your browser and go to http://your-server/ you will see this.</p>
<p><figure id="attachment_12788" aria-describedby="caption-attachment-12788" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12788 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/3-9.png" alt="3.- LAMP is running" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/3-9-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12788" class="wp-caption-text">3.- LAMP is running</figcaption></figure></p>
<p>And that is it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-deploy-a-lamp-server-using-docker-compose/">How to deploy a LAMP server using Docker-Compose?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-deploy-a-lamp-server-using-docker-compose/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAMP on Debian 10?</title>
		<link>https://www.osradar.com/install-lamp-on-debian-10/</link>
					<comments>https://www.osradar.com/install-lamp-on-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 08 Jul 2019 23:26:58 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12614</guid>

					<description><![CDATA[<p>A new version of Debian has been released. So many people take advantage of this update to do a zero installation on their systems. And one of the basic components of a server is LAMP. Composed of several components that work together, with LAMP you can have a functional web server. At least, for most [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-lamp-on-debian-10/">How to install LAMP on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A new version of Debian has been released. So many people take advantage of this update to do a zero installation on their systems. And one of the basic components of a server is LAMP. Composed of several components that work together, with LAMP you can have a functional web server. At least, for most of the applications or websites, there are. It is also necessary if you are a web developer and need to run your application as you create it. Last but not least, LAMP is used for many educational purposes. So in this post, I will show you how to install LAMP on Debian 10.</p>
<h2>Install LAMP on Debian 10</h2>
<p>As Debian 10 is a new release, it has a lot of updated software. Besides this, Debian 10 includes in its repositories many different applications and of course, the components of LAMP. So, we will explain each of them.</p>
<h3>LAMP &#8211; Linux</h3>
<p>The first step is to install Debian 10. In this aspect, there are no problems, because we have a post that will help you with that.</p>
<p><a href="https://www.osradar.com/how-to-install-debian-10-buster/">How to install Debian 10 Buster?</a></p>
<p>Then, after you have installed it, we recommend that you upgrade the system to get some recently released security patches.</p>
<h3>Apache Web Server</h3>
<p><a href="http://httpd.apache.org/" rel="noopener">Apache web server</a> is an HTTP server of the Apache Foundation. It is the most popular in the world for its ease of use and configuration, because it has extensive community support and for being installable on many Linux systems.</p>
<p>On the other hand, the <a href="https://www.osradar.com/tag/apache/" rel="noopener">Apache</a> web server stands out for its large number of modules that make it perfectly configurable. It is also quite robust and secure.</p>
<p>To install it, open a terminal emulator or connect to your Debian 10 system using <a href="https://www.osradar.com/termius-is-a-powefull-ssh-client/" rel="noopener">SSH</a>. Then, access as the root user and run.</p>
<pre>:~$ su
:~# apt install apache2</pre>
<p>Once the installation is complete. Debian 10 will automatically start the service and enable it to boot along with the system. However, you can start and stop it manually with these commands:</p>
<pre>:~# systemctl start apache2
:~# systemctl stop apache2</pre>
<p>If you don&#8217;t want me to start the system, use this command:</p>
<pre>:~# systemctl disable apache2</pre>
<p>But, if you want to enable again:</p>
<pre>:~# systemctl enable apache2</pre>
<p>After that, open your favorite web browser, and in the address bar access your server. Either by IP address or by domain. You should see the following.</p>
<p><figure id="attachment_12651" aria-describedby="caption-attachment-12651" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12651" src="https://www.osradar.com/wp-content/uploads/2019/07/1-7.png" alt="1.- Apache default page on Debian 10" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/1-7-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12651" class="wp-caption-text">1.- Apache default page on Debian 10</figcaption></figure></p>
<p>So, Apache is running.</p>
<h3>Installing LAMP on Debian 10 &#8211; PHP</h3>
<p>Until now, the Debian system will only be able to run client-side websites, i.e. front end technology. However, we know that web applications use something else. Mainly, they use a programming language on the server that can run the application.</p>
<p>In the same way, PHP is the most popular web-oriented programming language in the world. Many of the world&#8217;s most powerful applications, e.g. <a href="https://www.osradar.com/how-to-install-wordpress-on-ubuntu-18-04-lts/" rel="noopener">WordPress</a> the most widely used <a href="https://www.osradar.com/tag/cms/" rel="noopener">CMS</a>, are made in PHP. And so many others. That is why, on a Web server, it has to be PHP.</p>
<p>Open a terminal and run the following command:</p>
<pre>:~# apt install php libapache2-mod-php php-mysql php-mbstring php-xml php-zip</pre>
<p><figure id="attachment_12652" aria-describedby="caption-attachment-12652" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12652" src="https://www.osradar.com/wp-content/uploads/2019/07/2-6.png" alt="2.- Install LAMP on Debian 10 - Install PHP" width="1366" height="268" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/2-6-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-6-768x151.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-6-1024x201.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/2-6-696x137.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/2-6-1068x210.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12652" class="wp-caption-text">2.- Install LAMP on Debian 10 &#8211; Install PHP</figcaption></figure></p>
<p>After that, it is a good idea to test PHP. So, create a new file on <code>/var/www/html/</code> called <code>test.php</code> and add the following. For example, you can use <code>nano</code>.</p>
<pre>:~# nano /var/www/html/test.php</pre>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p>Then, restart Apache.</p>
<pre>:~# systemctl restart apache2</pre>
<p>Now, open the file using the web browser. For example, <code>http://your-server/test.php</code> You will see this:</p>
<p><figure id="attachment_12653" aria-describedby="caption-attachment-12653" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12653" src="https://www.osradar.com/wp-content/uploads/2019/07/3-4.png" alt="3.- PHP running on Debian 10" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/3-4-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12653" class="wp-caption-text">3.- PHP running on Debian 10</figcaption></figure></p>
<p>So, Apache and PHP are running.</p>
<h3>Install MariaDB</h3>
<p>The last component we need to get to install LAMP on Debian 10 is MariaDB or MySQL. MariaDB is a MySQL fork. It is a great relational <a href="https://www.osradar.com/tag/sql/" rel="noopener noreferrer">SQL</a> database manager with a fairly broad community support.</p>
<p>MariaDB combines usability with security and all under the protection of the community and large distributions such as <a href="https://www.osradar.com/tag/centos/" rel="noopener noreferrer">CentOS</a>, Debian, <a href="https://www.osradar.com/tag/ubuntu/" rel="noopener noreferrer">Ubuntu</a>, and RHEL.</p>
<p>Open a terminal and run this command to install it:</p>
<pre>:~# apt install mariadb-server</pre>
<p>Then, it is necessary to secure the installation using the <code>mysql_secure_installation</code> script. Using that script, you will be able to define a root password and other basic settings.</p>
<pre>:~# mysql_secure_installation</pre>
<p>Just, answer the following 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><figure id="attachment_12654" aria-describedby="caption-attachment-12654" style="width: 592px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12654" src="https://www.osradar.com/wp-content/uploads/2019/07/4-2.png" alt="4.- Install LAMP on Debian 10 - MariaDB" width="592" height="341" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-2.png 592w, https://www.osradar.com/wp-content/uploads/2019/07/4-2-300x173.png 300w" sizes="(max-width: 592px) 100vw, 592px" /><figcaption id="caption-attachment-12654" class="wp-caption-text">4.- Install LAMP on Debian 10 &#8211; MariaDB</figcaption></figure></p>
<p><figure id="attachment_12655" aria-describedby="caption-attachment-12655" style="width: 755px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12655" src="https://www.osradar.com/wp-content/uploads/2019/07/5-2.png" alt="5.- Using mysql_secure_installation script" width="755" height="567" srcset="https://www.osradar.com/wp-content/uploads/2019/07/5-2.png 755w, https://www.osradar.com/wp-content/uploads/2019/07/5-2-300x225.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/5-2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/07/5-2-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/07/5-2-696x523.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/5-2-559x420.png 559w" sizes="(max-width: 755px) 100vw, 755px" /><figcaption id="caption-attachment-12655" class="wp-caption-text">5.- Using mysql_secure_installation script</figcaption></figure></p>
<p>And then, you can start to create your databases and new users.</p>
<p>So, you already know how to install LAMP on Debian 10. Enjoy it.</p>
<p>Please share this post with your friends. 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-lamp-on-debian-10/">How to install LAMP on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-lamp-on-debian-10/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAMP on Fedora 29 or Fedora 30?</title>
		<link>https://www.osradar.com/how-to-install-lamp-on-fedora-29/</link>
					<comments>https://www.osradar.com/how-to-install-lamp-on-fedora-29/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 04 May 2019 03:00:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6893</guid>

					<description><![CDATA[<p>A LAMP server (Linux + Apache + MariaDB + PHP) allows us to have a web server ready to host sites made with each of the components of the acronym. So, this article will teach you how to install LAMP on Fedora 29 and Fedora 30. Many web developers use Fedora for their work. It&#8217;s [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lamp-on-fedora-29/">How to install LAMP on Fedora 29 or Fedora 30?</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 LAMP server (Linux + <a href="https://www.osradar.com/tag/apache/" target="_blank" rel="noopener noreferrer">Apache</a> + <a href="https://www.osradar.com/tag/mariadb/" target="_blank" rel="noopener noreferrer">MariaDB</a> + <a href="https://www.osradar.com/tag/php/" target="_blank" rel="noopener noreferrer">PHP</a>) allows us to have a web server ready to host sites made with each of the components of the acronym. So, this article will teach you how to install LAMP on <a href="https://www.osradar.com/how-to-install-fedora-29/" target="_blank" rel="noopener noreferrer">Fedora 29</a> and Fedora 30.</p>
<p>Many web developers use Fedora for their work. It&#8217;s not uncommon because we&#8217;re talking about a very stable and carefully made Linux distribution. However, it is true that Fedora is not the first choice to install LAMP so many don&#8217;t know how to do it.</p>
<p><figure id="attachment_6947" aria-describedby="caption-attachment-6947" style="width: 1024px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6947" src="https://www.osradar.com/wp-content/uploads/2018/11/11.jpg" alt="Install LAMP on Fedora 29" width="1024" height="503" srcset="https://www.osradar.com/wp-content/uploads/2018/11/11.jpg 1024w, https://www.osradar.com/wp-content/uploads/2018/11/11-300x147.jpg 300w, https://www.osradar.com/wp-content/uploads/2018/11/11-768x377.jpg 768w, https://www.osradar.com/wp-content/uploads/2018/11/11-324x160.jpg 324w, https://www.osradar.com/wp-content/uploads/2018/11/11-533x261.jpg 533w, https://www.osradar.com/wp-content/uploads/2018/11/11-696x342.jpg 696w, https://www.osradar.com/wp-content/uploads/2018/11/11-855x420.jpg 855w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption id="caption-attachment-6947" class="wp-caption-text">Install LAMP</figcaption></figure></p>
<p>A LAMP server as I said before is composed of <strong>Linux</strong>, a web server as <strong>Apache</strong>, a database manager in <strong>MariaDB</strong> and a programming language to interpret and make the application work, in this case, <strong>PHP</strong>. Together, they form an ideal combination to develop web applications and to run applications.</p>
<p>Let&#8217;s start.</p>
<h2>Install LAMP on Fedora</h2>
<h2>1. Install Apache web server</h2>
<p>First, you need to install apache web server. It is perhaps the most used web server in the world. It stands out for its ease of use, its great documentation and its compatibility with almost all Linux distributions. In addition, its installation is quite simple. Let&#8217;s get to it.</p>
<p>Open a Terminal and run:</p>
<pre class="">:~# sudo dnf install httpd</pre>
<p><figure id="attachment_6934" aria-describedby="caption-attachment-6934" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6934" src="https://www.osradar.com/wp-content/uploads/2018/11/1-2.png" alt="1.- Install apache web server" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/1-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6934" class="wp-caption-text">1.- Install Apache web server</figcaption></figure></p>
<p>Once the installation is complete, you need to start the service and enable it to run at system startup.</p>
<pre class="">:~$ sudo systemctl enable httpd
:~$ sudo systemctl start httpd</pre>
<p><figure id="attachment_6935" aria-describedby="caption-attachment-6935" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6935" src="https://www.osradar.com/wp-content/uploads/2018/11/2-1.png" alt="2.- Enabling httpd service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/2-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6935" class="wp-caption-text">2.- Enabling httpd service</figcaption></figure></p>
<p>So far there should be no problems, however, if you want to enable remote access, you have to configure something in the firewall.</p>
<pre class="">:~$ sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=http</pre>
<p>And finally, restart the Firewall service.</p>
<pre class="">:~$ sudo systemctl restart firewalld</pre>
<p><figure id="attachment_6941" aria-describedby="caption-attachment-6941" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6941" src="https://www.osradar.com/wp-content/uploads/2018/11/3-111.png" alt="3.- Restarting the Firewall service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-111.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/3-111-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6941" class="wp-caption-text">3.- Restarting the Firewall service</figcaption></figure></p>
<p>Next, open the web browser and go to localhost. You will see this:</p>
<p><figure id="attachment_11980" aria-describedby="caption-attachment-11980" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11980" src="https://www.osradar.com/wp-content/uploads/2018/11/rr.png" alt="Apache default page on Fedora 30" width="1354" height="667" srcset="https://www.osradar.com/wp-content/uploads/2018/11/rr.png 1354w, https://www.osradar.com/wp-content/uploads/2018/11/rr-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/rr-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/rr-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/rr-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/rr-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/rr-1068x526.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/rr-853x420.png 853w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-11980" class="wp-caption-text">Apache default page on Fedora 30</figcaption></figure></p>
<p>And you can continue with the next step.</p>
<h2>3. Install PHP</h2>
<p>PHP is another fundamental component of LAMP. Without it, you will not be able to execute correctly web applications created in this language. So, it is necessary to install it.</p>
<pre class="">:~$ sudo dnf install php php-cli php-xml php-pdo php-mysqlnd php-pear php-mbstring php-mcrypt</pre>
<p><figure id="attachment_6937" aria-describedby="caption-attachment-6937" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6937" src="https://www.osradar.com/wp-content/uploads/2018/11/4-1.png" alt="4.- Installing PHP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/4-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6937" class="wp-caption-text">4.- Installing PHP</figcaption></figure></p>
<p>Now it is necessary to test the installation. Create a file named <code>example.php</code> in <code>/var/www/html/</code> with the following content.</p>
<pre class="">:~$ sudo vi /var/www/html/example.php</pre>
<pre class="">&lt;?php
phpinfo();
?&gt;<img loading="lazy" class="wp-image-6939 size-full" src="https://www.osradar.com/wp-content/uploads/2018/11/5-1.png" alt="5. Creating a PHP file for test" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /></pre>
<p>5. Creating a PHP file for testRestart apache service.</p>
<pre class="">:~$ sudo systemctl restart httpd</pre>
<p>Open a web browser and open it. <code>http://IP_ADDRESS/example.php</code> and if you see something like this, then everything goes in order.</p>
<p><figure id="attachment_6942" aria-describedby="caption-attachment-6942" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6942" src="https://www.osradar.com/wp-content/uploads/2018/11/6-1.png" alt="6.- PHP installed" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/6-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6942" class="wp-caption-text">6.- PHP installed</figcaption></figure></p>
<p>The next step is to install MariaDB.</p>
<h2>4. Install MariaDB</h2>
<p>Now it&#8217;s MariaDB&#8217;s turn to install. This is so that the applications that require database can run. MariaDB is a MySQL fork that inherits its strength, robustness, and stability.</p>
<pre class="">:~$ sudo dnf install mariadb mariadb-server</pre>
<p><figure id="attachment_6943" aria-describedby="caption-attachment-6943" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6943" src="https://www.osradar.com/wp-content/uploads/2018/11/7-1.png" alt="7.- Install MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/7-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/7-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6943" class="wp-caption-text">7.- Install MariaDB</figcaption></figure></p>
<p>Then, enable the MariaDB service.</p>
<pre class="">:~$ sudo systemctl enable mariadb
:~$ sudo systemctl start mariadb</pre>
<p><figure id="attachment_6944" aria-describedby="caption-attachment-6944" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6944" src="https://www.osradar.com/wp-content/uploads/2018/11/8-1.png" alt="8.- Enabling MariaDB service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/8-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/8-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6944" class="wp-caption-text">8.- Enabling MariaDB service</figcaption></figure></p>
<p>Now, you have to define a password and some extra settings. For this, you will use the MySQL script.</p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_6945" aria-describedby="caption-attachment-6945" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6945" src="https://www.osradar.com/wp-content/uploads/2018/11/9-1.png" alt="9.- mysql_secure_installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/9-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/9-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6945" class="wp-caption-text">9.- mysql_secure_installation</figcaption></figure></p>
<p><figure id="attachment_6946" aria-describedby="caption-attachment-6946" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6946" src="https://www.osradar.com/wp-content/uploads/2018/11/10-1.png" alt="10.- Configuring MariaDB using mysql_secure_installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/10-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/10-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6946" class="wp-caption-text">10.- Configuring MariaDB using mysql_secure_installation</figcaption></figure></p>
<p>To the questions that arise, I have answered: Y, N, Y, Y.</p>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>As you may have noticed, installing LAMP is really easy. The key is to do it methodically and everything becomes easy.</p>
<p>The LAMP is necessary for any web developer and for system administrators to be able to run their web applications.</p>
<p>Please spread this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lamp-on-fedora-29/">How to install LAMP on Fedora 29 or Fedora 30?</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-lamp-on-fedora-29/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to install LAMP on Ubuntu 18.04 LTS?</title>
		<link>https://www.osradar.com/how-to-install-lamp-on-ubuntu-18-04-lts/</link>
					<comments>https://www.osradar.com/how-to-install-lamp-on-ubuntu-18-04-lts/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 12 Apr 2019 04:00:31 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11789</guid>

					<description><![CDATA[<p>One of the most basic functions of a server is to provide network services. Besides this, it is the base where many applications have installed either desktop or web. The latter is becoming more and more popular due to the simplicity of installation, deployment, maintenance, and accessibility. That&#8217;s why many companies bet that their main [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lamp-on-ubuntu-18-04-lts/">How to install LAMP on Ubuntu 18.04 LTS?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of the most basic functions of a server is to provide network services. Besides this, it is the base where many applications have installed either desktop or web. The latter is becoming more and more popular due to the simplicity of installation, deployment, maintenance, and accessibility. That&#8217;s why many companies bet that their main applications are with a web interface that can even be accessed from a mobile. So a server without HTTP access service is practically very scarce these days. So, in this post, I will show you how to install LAMP in Ubuntu 18.04.</p>
<p>LAMP is one of the most common software stacks within Linux. Thanks to it, we can have a fully functional HTTP server, capable of running various applications. It is the acronym for Linux, Apache, MariaDB, and PHP.</p>
<p>The first characteristic of LAMP is that it allows us to have a web server for dynamic websites. These dynamic websites, also make references to applications with web interface. So installing LAMP is essential for our Linux server to be functional.</p>
<p>On the other hand, many web servers use Ubuntu 18.04 as a base because it is a special distribution for servers. In the same way, the components of LAMP are available quickly and easily in this and other Linux distributions.</p>
<p>It is also good to note that, its low cost of implementation, in resources and money, make it very popular throughout the cloud.</p>
<p>So, let us start.</p>
<h2>Install LAMP on Ubuntu 18.04</h2>
<h3>1) L &#8211; Linux</h3>
<p>The first component of the LAMP is Linux. Obvious, but we want to emphasize that LAMP can be installed in many Linux distributions such as OpenSUSE or CentOS.</p>
<p>In the case of Ubuntu, we did a tutorial about how to install Ubuntu 18.04.</p>
<p>You can read: <a href="https://www.osradar.com/how-to-install-ubuntu-18-04-lts/">How to Install Ubuntu 18.04 LTS</a>.</p>
<p>Once you have completed it, you will have the first step of our tutorial.</p>
<h3>2) A &#8211; Apache web server</h3>
<p><a href="https://www.osradar.com/tag/mariadb/">Apache</a> is a web server of the Apache Foundation. He is a veteran in this segment since its development started a long time ago.</p>
<p>It is also one of the most used worldwide and is quite customizable. It also has powerful documentation that makes it quite flexible along with its modules.</p>
<p>So let&#8217;s install it.</p>
<p>To do this, open a terminal and run:</p>
<pre>:~$ sudo apt install apache2</pre>
<p><figure id="attachment_11790" aria-describedby="caption-attachment-11790" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11790" src="https://www.osradar.com/wp-content/uploads/2019/04/1-5.png" alt="1.- Install LAMP - Install Apache web server" width="1365" height="293" srcset="https://www.osradar.com/wp-content/uploads/2019/04/1-5.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/1-5-300x64.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/1-5-768x165.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/1-5-1024x220.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/1-5-696x149.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/1-5-1068x229.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11790" class="wp-caption-text">1.- Install LAMP on Ubuntu &#8211; Install Apache web server</figcaption></figure></p>
<p>By default, Ubuntu will start the Apache service once the installation is complete. It will also start during system loading. To check that everything went well, we can open the web browser and access the server by placing the server&#8217;s IP address in the address bar. For example, http://SERVER_IP/</p>
<p><figure id="attachment_11791" aria-describedby="caption-attachment-11791" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11791" src="https://www.osradar.com/wp-content/uploads/2019/04/2-5.png" alt="2.- Apache default page" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2019/04/2-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2019/04/2-5-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11791" class="wp-caption-text">2.- Apache default page</figcaption></figure></p>
<p>That&#8217;s the default Apache page, so the installation was successful.</p>
<h3>3) M &#8211; MariaDB</h3>
<p>Dynamic web pages usually need to store data. So it is necessary to have a database manager. There are many good ones, but the next component of the LAMP is <a href="https://www.osradar.com/tag/mariadb/">MariaDB</a>.</p>
<p>MariaDB is a MySQL fork. Therefore, we are talking about a database manager, open source, robust, reliable and the best, perfectly compatible with MySQL.</p>
<p>To install it, just run the following command:</p>
<pre>:~$ sudo apt install mariadb-server</pre>
<p><figure id="attachment_11792" aria-describedby="caption-attachment-11792" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11792" src="https://www.osradar.com/wp-content/uploads/2019/04/3-5.png" alt="3.- Install MariaDB" width="1365" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/04/3-5.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/3-5-300x86.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/3-5-768x221.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/3-5-1024x294.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/3-5-696x200.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/3-5-1068x307.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11792" class="wp-caption-text">3.- Install MariaDB</figcaption></figure></p>
<p>As with Apache, the system will start the service immediately. After that, it is necessary to use the MariaDB configuration script to define the root password and other things.</p>
<pre>:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_11793" aria-describedby="caption-attachment-11793" style="width: 693px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11793" src="https://www.osradar.com/wp-content/uploads/2019/04/4-3.png" alt="4.- Set the root password for MariaDB" width="693" height="390" srcset="https://www.osradar.com/wp-content/uploads/2019/04/4-3.png 693w, https://www.osradar.com/wp-content/uploads/2019/04/4-3-300x169.png 300w" sizes="(max-width: 693px) 100vw, 693px" /><figcaption id="caption-attachment-11793" class="wp-caption-text">4.- Set the root password for MariaDB</figcaption></figure></p>
<p>After defining the root password, we will be asked other configuration questions. Take into account each of them, they are important and fit your needs. So when you read them, answer what you consider appropriate.</p>
<pre>Remove anonymous users? [Y/n]
Disallow root login remotely? [Y/n] 
Remove test database and access to it? [Y/n]
Reload privilege tables now? [Y/n]</pre>
<p>Once you have completed answering the questions, MariaDB is ready to begin the work.</p>
<h3>4) P &#8211; PHP</h3>
<p>If we are talking about web applications, we have to mention <a href="https://www.osradar.com/tag/php/">PHP</a>. PHP is the most popular programming language for web application development. Many professional applications use it so it is a very good language.</p>
<p>PHP is constantly evolving with a fairly <a href="https://www.php.net/releases/7_3_0.php">active pace of development</a> and where every time much is improved. Fortunately, the version that includes Ubuntu 18.04 is a quite mature and novel version as is 7.2.</p>
<p>On the other hand, it is necessary to install some PHP modules to work with Apache and MariaDB.</p>
<pre>:~$ sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-curl php7.2-mbstring php7.2-xmlrpc php7.2-mysql</pre>
<p><figure id="attachment_11794" aria-describedby="caption-attachment-11794" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11794" src="https://www.osradar.com/wp-content/uploads/2019/04/5-2.png" alt="5.- Install PHP " width="1365" height="298" srcset="https://www.osradar.com/wp-content/uploads/2019/04/5-2.png 1365w, https://www.osradar.com/wp-content/uploads/2019/04/5-2-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/5-2-768x168.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/5-2-1024x224.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/5-2-696x152.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/5-2-1068x233.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11794" class="wp-caption-text">5.- Install PHP</figcaption></figure></p>
<p>How to install new modules for PHP. It is necessary to restart Apache for it to work.</p>
<pre>:~$ sudo systemctl restart apache2</pre>
<p>Then, you have to test that PHP is working correctly, to do this, create a file in <code>/var/www/html/</code> called <code>test.php</code> and add the following:</p>
<pre>:~$ sudo nano /var/www/html/test.php</pre>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p><figure id="attachment_11795" aria-describedby="caption-attachment-11795" style="width: 820px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11795" src="https://www.osradar.com/wp-content/uploads/2019/04/6-1.png" alt="6.- PHP test" width="820" height="163" srcset="https://www.osradar.com/wp-content/uploads/2019/04/6-1.png 820w, https://www.osradar.com/wp-content/uploads/2019/04/6-1-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/6-1-768x153.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/6-1-696x138.png 696w" sizes="(max-width: 820px) 100vw, 820px" /><figcaption id="caption-attachment-11795" class="wp-caption-text">6.- PHP test</figcaption></figure></p>
<p>Nex, open it using the web browser. You will see this.</p>
<p><figure id="attachment_11796" aria-describedby="caption-attachment-11796" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11796" src="https://www.osradar.com/wp-content/uploads/2019/04/7-1.png" alt="7.- PHP info" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2019/04/7-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2019/04/7-1-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11796" class="wp-caption-text">7.- PHP info</figcaption></figure></p>
<p>So,  PHP is working</p>
<h2>Conclusion</h2>
<p>So now you know how to install LAMP in Ubuntu 18.04 and with this, you can have a home web server. This way you can develop and run web applications on a server.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-lamp-on-ubuntu-18-04-lts/">How to install LAMP on Ubuntu 18.04 LTS?</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-lamp-on-ubuntu-18-04-lts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
