<?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 &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Fri, 05 Jun 2020 14:32:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>LAMP &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to install Apache, MySQL and PHP on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-apache-mysql-and-php-on-ubuntu-18-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-apache-mysql-and-php-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 22 Nov 2019 14:09:26 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=918</guid>

					<description><![CDATA[Ubuntu is one of the most popular Linux distributions. A lot of users use it to work with vps. To install LAMP (Apache, MySQL, PHP) you need a server with sudo access for commands. Apache installation First of all (as with any other installation of programs), you need to update [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Ubuntu is one of the most popular Linux distributions. A lot of users use it to work with vps. To install LAMP (Apache, MySQL, PHP) you need a server with sudo access for commands.</p>



<h2 id="apache-installation" >Apache installation </h2>



<p>First of all (as with any other installation of programs), you need to update the package manager</p>



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



<p>Install and start Apache</p>



<pre class="wp-block-code"><code>sudo apt-get install apache2 -y
sudo systemctl start apache2.service</code></pre>



<p>It is important to make sure that Apache was installed correctly and without errors. To do this, enter hostname -I in order to get your IP address and go to the link http:// SERVER_IP/</p>



<h2 id="mysql-installation" >MySQL installation</h2>



<pre class="wp-block-code"><code>sudo apt-get install mysql-server -y</code></pre>



<p>This command will install the MariaBD database server and will then be prompted to enter the password for the root MySQL user. This step is required.</p>



<h2 id="install-php" >Install PHP</h2>



<p>You can install PHP using the following command:</p>



<pre class="wp-block-code"><code>sudo apt-get install php -y</code></pre>



<p>After installing PHP, you need to install common PHP extensions, such as GD, MySQL, and so on, using the following command:</p>



<pre class="wp-block-code"><code>sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} &amp;&amp; sudo apt-get install libapache2-mod-php  -y</code></pre>



<h2 id="automatically-starting-apache-and-mysql-on-boot" >Automatically Starting Apache and MySQL on Boot</h2>



<p>These commands will allow you to start Apache and MySQL always when loading your web environment</p>



<pre class="wp-block-code"><code>sudo systemctl enable apache2.service
sudo systemctl enable mysql.service</code></pre>



<p>Next, restart the Apache server for PHP to work</p>



<pre class="wp-block-code"><code>systemctl restart apache2.service</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-apache-mysql-and-php-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
