<?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>Arch Linux &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/arch-linux/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>Tue, 24 Nov 2020 09:37:48 +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>Arch Linux &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to install Apache 2.4 on Arch Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-apache-2-4-on-arch-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-apache-2-4-on-arch-linux/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 02 Jan 2020 10:54:48 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1178</guid>

					<description><![CDATA[Installing Apache, Version 2.4 Apache web server installation is possible using the following command: Start the web server after each download: You must make sure that everything is working correctly. Go to http: //YOUR-SERVER-WEB-ADDRESS-OR-IP and you will see a page with an index / index. If you need to know [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="installing-apache-version-2-4" >Installing Apache, Version 2.4 </h2>



<p>Apache web server installation is possible using the following command:</p>



<pre class="wp-block-code"><code># pacman -S apache</code></pre>



<p>Start the web server after each download:</p>



<pre class="wp-block-code"><code># systemctl enable --now httpd</code></pre>



<p>You must make sure that everything is working correctly. Go to <strong>http: //YOUR-SERVER-WEB-ADDRESS-OR-IP</strong> and you will see a page with an index / index. If you need to know your IP, run the command:</p>



<p><code>ip addr</code></p>



<p>The Apache configuration file is <strong>/etc/httpd/conf/httpd.conf. </strong>Although Apache is started by the root user, <strong>User http</strong> immediately switches to work on behalf of that user for security reasons. <strong>DocumentRoot &#8220;/srv/http&#8221; </strong>sets where it will search for web files. <strong>CustomLog &#8220;/var/log/httpd/access_log&#8221; </strong>common sets where Apache access, which is successful, will be logged. <strong>ErrorLog &#8220;/var/log/httpd / error_log&#8221; </strong>sets where access to Apache is that the error will be logged.</p>



<h2 id="disabling-indexes" >Disabling Indexes </h2>



<p>If Apache is provided with a directory in which it does not find the index file with the extension that it has configured to use, it will automatically generate an index that shows the contents of the directory. To disable it, generate <strong>/etc/httpd/conf/httpd.conf</strong>., then inside<strong> &lt;Directory &#8220;/srv/http&#8221;>, </strong>from Options, remove Indexes. After restarting, Apache will give you the following: &#8220;Access is denied!&#8221;. This error message appears if the file<strong> /srv/http/index.html</strong> does not exist.</p>



<p>Restart Apache</p>



<pre class="wp-block-code"><code># systemctl restart httpd</code></pre>



<h2 id="custom-directories" >Custom directories</h2>



<p>By default, <strong>~ /public_html/</strong> the user directory will be shown at <strong>http: //YOUR-SERVER-WEB-ADDRESS-OR-IP/~ USERNAME/</strong>. But the http user must have executable bit access to the user&#8217;s directory and its <strong>public_html</strong> directory</p>



<pre class="wp-block-code"><code>$ mkdir ~/public_html
$ chmod o+x ~/
$ chmod o+x ~/public_html</code></pre>



<p>Restart Apache</p>



<pre class="wp-block-code"><code># systemctl restart httpd</code></pre>



<h2 id="virtual-hosts" >Virtual Hosts</h2>



<p>It is possible to host several domain names from one Apache web server at once and serve them with different content. <br>Create a folder to store your virtual host settings:</p>



<pre class="wp-block-code"><code># mkdir /etc/httpd/conf/vhosts</code></pre>



<p>Create a configuration file for each virtual host, for example <strong>/etc/httpd/conf/vhosts/YOUR-DOMAIN-NAME.com:</strong></p>



<pre class="wp-block-code"><code>&lt;VirtualHost *:80>
    ServerAdmin webmaster@YOUR-DOMAIN-NAME.com
    DocumentRoot "/srv/YOUR-DOMAIN-NAME.com"
    ServerName YOUR-DOMAIN-NAME.com
    ServerAlias YOUR-DOMAIN-NAME.com
    ErrorLog "/var/log/httpd/YOUR-DOMAIN-NAME.com-error_log"
    CustomLog "/var/log/httpd/YOUR-DOMAIN-NAME.com-access_log" common

    &lt;Directory "/srv/YOUR-DOMAIN-NAME.com">
        Require all granted
    &lt;/Directory>
&lt;/VirtualHost></code></pre>



<p>Create a virtual host service directory:</p>



<pre class="wp-block-code"><code># mkdir /srv/YOUR-DOMAIN-NAME.com</code></pre>



<p>At the end of <strong>/etc/httpd/conf/httpd.conf.</strong>, include each of these virtual host configuration files:</p>



<pre class="wp-block-code"><code>Include conf/vhosts/YOUR-DOMAIN-NAME.com</code></pre>



<p>Restart Apache</p>



<pre class="wp-block-code"><code># systemctl restart httpd</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-apache-2-4-on-arch-linux/feed/</wfw:commentRss>
			<slash:comments>449</slash:comments>
		
		
			</item>
		<item>
		<title>How To install Nginx 1.17.4 on Arch Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 30 Oct 2019 12:43:52 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=847</guid>

					<description><![CDATA[This guide is intended to install nginx on a server running Arch Linux. You can download this system to your ISO disk of a virtual machine. In order to install nginx you will need to enter the following command: To start Nginx after each boot you need to enter: Then [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide is intended to install nginx on a <strong><em><a href="https://hostry.com/products/vps/">server</a></em></strong> running Arch Linux. You can download this system to your ISO disk of a virtual machine. <br></p>



<p>In order to install nginx you will need to enter the following command:</p>



<pre class="wp-block-code"><code># pacman -S nginx-mainline</code></pre>



<p>To start Nginx after each boot you need to enter:</p>



<pre class="wp-block-code"><code># systemctl enable --now nginx</code></pre>



<p>Then we check the functionality of Nginx. Visit <strong>http:// YOUR-SERVER-WEB-ADDRESS-OR-IP </strong>and you will see its welcome page. (Run <strong>ip addr</strong> if you need to know, find the IP address.)</p>



<p>Nginx configuration files are located in<strong>/etc/nginx</strong>, and its main file is <strong>nginx.conf</strong>. The string <strong>server.location.root/usr/share/nginx/html; </strong>sets where it will search for web files</p>



<h2 id="virtual-host-configuration" >Virtual host configuration</h2>



<p>On a web server, you can host several domain names at once and serve them with different content and in different directions. You need to create a folder in order to store the settings of your virtual host</p>



<pre class="wp-block-code"><code># mkdir /etc/nginx/sites-enabled</code></pre>



<p>Next, you need to create a configuration file for each virtual host; Example:  <strong>/etc/nginx/sites-enabled/</strong><em>EXAMPLE.COM</em> and fill it with the following configuration:</p>



<pre class="wp-block-code"><code>server {
    listen 80;
    server_name EXAMPLE.COM;

    location / {
        root /usr/share/nginx/YOUR-DOMAIN-NAME.com;
        index  index.html index.htm;
    }
}</code></pre>



<p>At the end of the http block<strong> /etc/nginx/nginx.conf</strong>, add the following line:</p>



<pre class="wp-block-code"><code>include sites-enabled/*;</code></pre>



<p>Then you need to restart Nginx:</p>



<pre class="wp-block-code"><code># systemctl restart nginx</code></pre>



<p>Requests received by Nginx,<strong> EXAMPLE.COM</strong> will be processed by<strong> /usr/share/nginx/EXAMPLE.COM</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-nginx-1-17-4-on-arch-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Puthon 3.7 on Arch Linux Web Server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-puthon-3-7-on-arch-linux-web-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-puthon-3-7-on-arch-linux-web-server/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 07 Feb 2020 15:04:59 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1371</guid>

					<description><![CDATA[This guide will help you install Python on Arch Linux. For this you need: Hostry vps Server running on Arch Linux, running Apache or Nginx web server, access to sudo and also installed text editor. Install Python 3.7 on your web server On Nginx To use Python 3.x (any version), [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide will help you install Python on Arch Linux. For this you need: <strong><em><a href="https://hostry.com/products/vps/">Hostry vps Server</a></em></strong> running on Arch Linux, running Apache or Nginx web server, access to sudo and also installed text editor. </p>



<h2 id="install-python-3-7-on-your-web-server" >Install Python 3.7 on your web server </h2>



<p>On Nginx</p>



<p>To use Python 3.x (any version), you must enter the following:  </p>



<pre class="wp-block-code"><code># pacman -S uwsgi-plugin-python</code></pre>



<h2 id="test-python" >Test python </h2>



<p>In the appropriate <strong>test.py</strong> directory, the contents are listed below: </p>



<pre class="wp-block-code"><code>#-*- coding: utf-8 -*-
def wsgi_app(environment, start_response):
    import sys
    output = sys.version.encode('utf8')
    status = '200 OK'
    headers = [('Content-type', 'text/plain'),
               ('Content-Length', str(len(output)))]
    start_response(status, headers)
    yield output

application = wsgi_app</code></pre>



<p>On Apache </p>



<p>Add <strong><em>/etc/httpd/conf/httpd.conf</em></strong> to the end or edit the corresponding configuration file and then add to the corresponding &lt;VirtualHost&gt; block:</p>



<pre class="wp-block-code"><code>WSGIScriptAlias /wsgi_app /srv/http/test.py</code></pre>



<p>Restart Apache</p>



<pre class="wp-block-code"><code># systemctl restart httpd</code></pre>



<p>Follow the link in the browser <strong>http:// YOUR-SERVER-WEB-ADDRESS-OR-IP/wsgi_app</strong> and you can see a text page with all versions of Python and GCC.</p>



<p>Delete the <strong><em>test.py</em></strong> test file you just created and <strong><em>WSGIScriptAlias ​​</em></strong>in your Apache configuration.</p>



<p>On Nginx</p>



<p>Create the file<strong> /etc/uwsgi/wsgi_app.ini </strong>with the following contents:</p>



<pre class="wp-block-code"><code>[uwsgi]
socket = /run/uwsgi/wsgi_app.sock
uid = http
gid = http
plugins = python
chdir = /usr/share/nginx/html/
wsgi-file=test.py
callable = application</code></pre>



<p>Start service <strong>uWSGI wsqi_app:</strong></p>



<pre class="wp-block-code"><code># systemctl start uwsgi@wsgi_app</code></pre>



<p>You need to give Nginx permission to use uWSGI by editing <strong>/etc/nginx/nginx.conf</strong>, and for each server block that you want to test, add the following. Alternatively, if you use virtual hosts, edit the configuration file for each host:</p>



<pre class="wp-block-code"><code>location ~ \wsgi_app {
    root /usr/share/nginx/html/;
    include uwsgi_params;
    uwsgi_pass unix:/run/uwsgi/wsgi_app.sock;
}</code></pre>



<p>Restart Nginx:</p>



<pre class="wp-block-code"><code># systemctl restart nginx</code></pre>



<p>Visit your web browser, <strong>http://YOUR-SERVER-WEB-ADDRESS-OR-IP/wsgi_app </strong>and you will see a test page with versions of Python and GCC.</p>



<p>Delete the test.py file you just created and the location block you just added<strong> /etc/nginx/nginx.conf to wsgi_app.</strong></p>



<p>Restart Nginx</p>



<pre class="wp-block-code"><code># systemctl restart nginx</code></pre>



<p>Stop serving<strong> uWSGI wsgi_app:</strong></p>



<pre class="wp-block-code"><code># systemctl stop uwsgi@wsgi_app</code></pre>



<p>In the final episode, you need to delete<strong> /etc/uwsgi/wsgi_app.ini</strong>, test files, who you created earlier. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-puthon-3-7-on-arch-linux-web-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
