mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 04:06:11 +01:00
Updated Install Tracks on Ubuntu 20.10 (markdown)
parent
8d83225fa4
commit
c0f2ce34a1
1 changed files with 49 additions and 19 deletions
|
|
@ -261,44 +261,74 @@ mysql> quit
|
|||
>systemctl status apache2.service<br/>
|
||||
>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>>nano /etc/apache2/sites-available/tracks.conf</blockquote>
|
||||
<blockquote>
|
||||
>nano /etc/apache2/sites-available/tracks.conf
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<VirtualHost *:8079><br/> ServerName tracks.local<br/> <br/> DocumentRoot /var/www/tracks/public<br/> AcceptPathInfo on<br/> <br/> ErrorDocument 403 "<h1>Site update in progress. Check back in a few minutes.</h1>"<br/> <br/> <Directory /var/www/tracks/public><br/> Require all granted<br/> AllowOverride All<br/> </Directory><br/> <br/> ## Logging<br/> ErrorLog "/var/log/apache2/tracks_error.log"<br/> ServerSignature Off<br/> CustomLog "/var/log/apache2/tracks_access.log" combined<br/></VirtualHost>
|
||||
<blockquote>
|
||||
<VirtualHost *:8079><br/>
|
||||
ServerName tracks.local<br/> <br/>
|
||||
DocumentRoot /var/www/tracks/public<br/>
|
||||
AcceptPathInfo on<br/> <br/>
|
||||
ErrorDocument 403 "<h1>Site update in progress. Check back in a few minutes.</h1>"<br/>
|
||||
<br/>
|
||||
<Directory /var/www/tracks/public><br/>
|
||||
Require all granted<br/>
|
||||
AllowOverride All<br/>
|
||||
</Directory><br/>
|
||||
<br/>
|
||||
## Logging<br/>
|
||||
ErrorLog "/var/log/apache2/tracks_error.log"<br/>
|
||||
ServerSignature Off<br/>
|
||||
CustomLog "/var/log/apache2/tracks_access.log" combined<br/>
|
||||
</VirtualHost>
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<p>now edit the file /etc/apache2/ports.conf and add the Listen for port 8079</p>
|
||||
<blockquote>>nano /etc/apache2/ports.conf</blockquote>
|
||||
<blockquote>
|
||||
>nano /etc/apache2/ports.conf
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<p>Listen 80<br/>Listen 8079<br/> <br/><ifmodule ssl_module=""><br/> Listen 443<br/></ifmodule><br/> <br/><ifmodule mod_gnutls.c=""><br/> Listen 443<br/></ifmodule> create link</p>
|
||||
<blockquote>
|
||||
Listen 80<br/>
|
||||
Listen 8079<br/>
|
||||
<br/>
|
||||
<ifmodule ssl_module=""><br/>
|
||||
Listen 443<br/>
|
||||
</ifmodule><br/>
|
||||
<br/>
|
||||
<ifmodule mod_gnutls.c=""><br/>
|
||||
Listen 443<br/>
|
||||
</ifmodule> create link
|
||||
</blockquote>
|
||||
<p>------------</p>
|
||||
<p>finally create a symbolic link so Apache services it</p>
|
||||
<blockquote>>cd /etc/apache2/sites-enabled<br/>>ln -s ../sites-available/tracks.conf ./</blockquote>
|
||||
<blockquote>
|
||||
>cd /etc/apache2/sites-enabled<br/>
|
||||
>ln -s ../sites-available/tracks.conf ./
|
||||
</blockquote>
|
||||
<p>restart Apache</p>
|
||||
<blockquote>>systemctl restart apache2</blockquote>
|
||||
<blockquote>
|
||||
>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/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue