<?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>Apache &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/apache/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.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Apache &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Configure Apache on Windows Server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-configure-apache-on-windows-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-configure-apache-on-windows-server/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 30 Aug 2019 13:25:26 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=620</guid>

					<description><![CDATA[When you start the HTTP server, this will give you the opportunity to host a website and upload files for downloadIf you want this web server to work well, you can install the ready-made XAMPP package. It includes Apache, PHP, MySQL. Apache installation You need to download the MSI installer [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>When you start the HTTP server, this will give you the opportunity to host a website and upload files for downloadIf you want this web server to work well, you can install the ready-made XAMPP package. It includes Apache, PHP, MySQL.</p>



<p></p>



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



<p>You need to download the MSI installer for your Windows, it can be found on the Apache download page(<a href="http://httpd.apache.org/download.cgi"><strong>http://httpd.apache.org/download.cgi</strong></a>), <br>filling in all the necessary data. After starting this installer, Apache Monitor will be installed. You cannot monitor the status of all Apache services. This can be done from your Windows » <strong>services.msc</strong><br>Now you can connect to your server <strong>http://127.0.0.1 </strong>and see the default Apache page.</p>



<p>Also, it is possible to edit, delete and add web files from your web server. To do this, make changes to the <strong>htdocs</strong> folder in the<strong> Apache</strong> folder. This location is the default for web files. Alternatively, you can use virtual hosts to use other directories or configure subdomains.</p>



<p>By the way, Apache has two  configuration files: </p>



<ul><li><strong>.htaccess</strong> It is applicable based on all directories in web files </li><li><strong>httpd.conf</strong> inside Apache&#8217;s <strong>conf</strong> folder, he makes a request to the main configuration</li></ul>



<h2 id="php-installation" >PHP Installation</h2>



<p></p>



<p>PHP has the function of using PHP scripts on your web server and display the results for all  users</p>



<p>First of all, download the PHP version for Windows from the PHP download for Windows here: (<a href="https://windows.php.net/download"><strong>https://windows.php.net/download</strong></a>). <br>Then you need to download this version and unzip the zip file to <strong>c: \ php.</strong></p>



<p>After successful unpacking zip file need edit apache <strong>httpd.conf </strong>to enable</p>



<pre class="wp-block-code"><code>LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"</code></pre>



<p>After that, you will need to restart the Apache web server; for testing PHP it is recommended to create <strong>test.php</strong>, in its <strong>htdocs</strong> folder, the contents are indicated below:</p>



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



<p>Then check the output on</p>



<p><strong><em>https: //127.0.0.1/test.php</em></strong></p>



<p>This completes the configuring</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-configure-apache-on-windows-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
		<item>
		<title>How To Protect Apache Web Server on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-protect-apache-web-server-on-centos-7/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-protect-apache-web-server-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 29 Aug 2019 12:41:21 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=603</guid>

					<description><![CDATA[In case, when an attacker gets access to your server, you may lose all data. If at the initial stage you use simple installations, you still need to secure your server. Install Web Server The first thing we offer you is installing a web server yum install httpd php Personal [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In case, when an attacker gets access to your server, you may lose all data. If at the initial stage you use simple installations, you still need to secure your server.</p>



<h2 id="install-web-server" >Install Web Server</h2>



<p>The first thing we offer you is installing a web server</p>



<p><code>yum install httpd php</code></p>



<h2 id="personal-home-directory-protection" >Personal Home Directory Protection</h2>



<p>The following is protection for your home directories. The first thing to understand is that the directories of other users are classified and not visible to anyone, except for the owners, respectively. </p>



<p>We suggest you change all directories to 700; this is to ensure that only the appropriate home directory owners can view their own files</p>



<pre class="wp-block-code"><code>chmod 700 /home
chmod 700 /home/*
chmod 700 /home/*/*</code></pre>



<h2 id="apply-security-patch-for-the-apache-to-split-user-privileges" >Apply security patch for the Apache to split user privileges</h2>



<p>The first thing to learn we need to first install the repository containing the package with the patch. Run the following commands as root or sudo</p>



<pre class="wp-block-code"><code>yum install epel-release
yum install httpd-itk</code></pre>



<p>Through “<strong>apache2-mpm-itk</strong>” we can see which PHP user should run depending on the virtual host. It adds a new extension in the configuration of <strong><em>AssignUserId virtualhost-user virtualhost-user-group</em></strong>, which allows Apache / PHP to execute user code under a specific user account.</p>



<h2 id="%d1%81reate-a-virtual-host" >Сreate a virtual host </h2>



<p></p>



<p>To<strong> create a virtual host </strong>in Apache, you can follow this example, which is presented below (for example, taken example.com)</p>



<p></p>



<pre class="wp-block-code"><code>NameVirtualHost example.com

&lt;VirtualHost example.com>

DocumentRoot /home/vhost-user/public_html
ServerName example.com
&lt;/VirtualHost></code></pre>



<p>Next, open the text editor <strong>/etc/httpd/conf.d/example-virtualhost.conf</strong> and add the contents above. Here is the command to use nano:</p>



<p><code>nano /etc/httpd/conf.d/example-virtualhost.conf </code></p>



<h2 id="configure-apache-web-server-to-run-as-another-user" >Configure Apache Web Server to run as another user</h2>



<p>After  launched the protection of the Apache / PHP server, the following should be added:</p>



<pre class="wp-block-code"><code>AssignUserId vhost-user vhost-user-group</code></pre>



<p>This will look like an example of a virtual host, after the option is added:</p>



<pre class="wp-block-code"><code>NameVirtualHost example.com

&lt;VirtualHost example.com>

DocumentRoot /home/vhost-user/public_html
ServerName example.com
AssignUserId vhost-user vhost-user-group

&lt;/VirtualHost></code></pre>



<p>Next, you need to Hide the version of Apache. To do this, enter the command:</p>



<pre class="wp-block-code"><code>nano /etc/httpd/conf/httpd.conf</code></pre>



<p>Then in the line “<strong>ServerTokens</strong>” change the parameter after it to “<strong>ProductOnly</strong>”. This tell to Apache only to show that it is “<strong>Apache</strong>” and not “<strong>Apache / 2.2</strong>” or something like that</p>



<p></p>



<p>At the end, restart the Apache server</p>



<pre class="wp-block-code"><code>service httpd restart</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-protect-apache-web-server-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
