Updated Install Tracks on Ubuntu 20.10 (markdown)

ghost-from-the-past 2021-04-14 16:10:58 +02:00
parent 8d83225fa4
commit c0f2ce34a1

@ -261,44 +261,74 @@ mysql> quit
&gt;systemctl status apache2.service<br/>
&gt;journalctl -xe
</blockquote>
<p>if apache was installed correctly and is running go with your browser to http://localhost you should see the Apache webserver page</p>
<p>if apache was installed correctly and is running go with your browser to http://localhost you should see the Apache webserver page.</p>
<p>For more information see [[Apache tips]]</p>
<p>------------</p>
<h3>Setup Apache to run your website</h3>
<p>at /etc/apache2/sites-available/ create the file tracks.conf</p>
<p>you can make a copy from 000-default.conf</p>
<p>Note:</p>
<p>The default/standard port for http is 80. As I already have a web site running on port 80 the next common choice is to use port 8080 where in my case is running a VNC then finally I selected the port 8079</p>
<p>If you go for the standard port 80 you need to use 80 where I refer to 8079 and you need to remove the symbolic link "000-default.conf" in /etc/apache2/sites-enabled to have only your Tracks web "enabled" and running for port 80.</p>
<p>
<br/>
</p>
<p>IMPORTANT</p>
<p>The default/standard port for http is 80.</p>
<p>As I already have a web site already running I select the port 8079</p>
<p>(the port 8080 is another usual choice, that in my case is also already in use for VNC)</p>
<p>NOTE: if you go for the standard port 80, you need to remove the symbolic link "000-default.conf" in /etc/apache2/sites-enabled to have only your Tracks web "enabled" and running for Port 80 (also you need to use 80 where I refer to 8079)</p>
<p>
<br/>
</p>
<p>(the use of libapache2-mod-passenger makes Passenger in Apache to auto-detect the rails app)</p>
<p>Just for information the use of libapache2-mod-passenger makes Passenger in Apache to auto-detect the rails app</p>
<p>
<br/>
</p>
<p>edit your website configuration file</p>
<blockquote>&gt;nano /etc/apache2/sites-available/tracks.conf</blockquote>
<blockquote>
&gt;nano /etc/apache2/sites-available/tracks.conf
</blockquote>
<p>------------</p>
&lt;VirtualHost *:8079&gt;<br/> ServerName tracks.local<br/> <br/> DocumentRoot /var/www/tracks/public<br/> AcceptPathInfo on<br/> <br/> ErrorDocument 403 "&lt;h1&gt;Site update in progress. Check back in a few minutes.&lt;/h1&gt;"<br/> <br/> &lt;Directory /var/www/tracks/public&gt;<br/> Require all granted<br/> AllowOverride All<br/> &lt;/Directory&gt;<br/> <br/> ## Logging<br/> ErrorLog "/var/log/apache2/tracks_error.log"<br/> ServerSignature Off<br/> CustomLog "/var/log/apache2/tracks_access.log" combined<br/>&lt;/VirtualHost&gt;
<blockquote>
&lt;VirtualHost *:8079&gt;<br/>
ServerName tracks.local<br/> <br/>
DocumentRoot /var/www/tracks/public<br/>
AcceptPathInfo on<br/> <br/>
ErrorDocument 403 "&lt;h1&gt;Site update in progress. Check back in a few minutes.&lt;/h1&gt;"<br/>
<br/>
&lt;Directory /var/www/tracks/public&gt;<br/>
Require all granted<br/>
AllowOverride All<br/>
&lt;/Directory&gt;<br/>
<br/>
## Logging<br/>
ErrorLog "/var/log/apache2/tracks_error.log"<br/>
ServerSignature Off<br/>
CustomLog "/var/log/apache2/tracks_access.log" combined<br/>
&lt;/VirtualHost&gt;
</blockquote>
<p>------------</p>
<p>now edit the file /etc/apache2/ports.conf and add the Listen for port 8079</p>
<blockquote>&gt;nano /etc/apache2/ports.conf</blockquote>
<blockquote>
&gt;nano /etc/apache2/ports.conf
</blockquote>
<p>------------</p>
<p>Listen 80<br/>Listen 8079<br/> <br/>&lt;ifmodule ssl_module=""&gt;<br/> Listen 443<br/>&lt;/ifmodule&gt;<br/> <br/>&lt;ifmodule mod_gnutls.c=""&gt;<br/> Listen 443<br/>&lt;/ifmodule&gt; create link</p>
<blockquote>
Listen 80<br/>
Listen 8079<br/>
<br/>
&lt;ifmodule ssl_module=""&gt;<br/>
Listen 443<br/>
&lt;/ifmodule&gt;<br/>
<br/>
&lt;ifmodule mod_gnutls.c=""&gt;<br/>
Listen 443<br/>
&lt;/ifmodule&gt; create link
</blockquote>
<p>------------</p>
<p>finally create a symbolic link so Apache services it</p>
<blockquote>&gt;cd /etc/apache2/sites-enabled<br/>&gt;ln -s ../sites-available/tracks.conf ./</blockquote>
<blockquote>
&gt;cd /etc/apache2/sites-enabled<br/>
&gt;ln -s ../sites-available/tracks.conf ./
</blockquote>
<p>restart Apache</p>
<blockquote>&gt;systemctl restart apache2</blockquote>
<blockquote>
&gt;systemctl restart apache2
</blockquote>
<p>------------</p>
<p> By default, the Passenger log file is the global (not the per-vhost) Apache error log file.</p>
<p>By default, the Passenger log file is the global (not the per-vhost) Apache error log file.</p>
<p>This is typically located in /var/log/apache2/error_log.</p>
<p>
<br/>