-<div id="outline-container-org68719d0" class="outline-3">
-<h3 id="org68719d0"><span class="section-number-3">9.20.</span> Configure MythTV Backend Logging</h3>
-<div class="outline-text-3" id="text-9-20">
-<p>
-The abbey directs MythTV log messages to <q>/var/log/mythtv.log</q> (and
-away from <q>/var/log/syslog</q>) and rotates the log file.
-</p>
-
-<div class="org-src-container">
-<a href="roles_t/abbey-tvr/tasks/main.yml"><q>roles_t/abbey-tvr/tasks/main.yml</q></a><pre class="src src-conf"><code>
-<span class="org-variable-name">- name: Install</span> =/etc/rsyslog.d/40-mythtv.conf.
- become: yes
- copy:
- content: |
- :msg,startswith,<span class="org-string">" myth"</span> -/var/log/mythtv.log
- & stop
- dest: /etc/rsyslog.d/40-mythtv.conf
-
-<span class="org-variable-name">- name: Install</span> =/etc/logrotate.d/mythtv=.
- become: yes
- copy:
- content: |
- <span class="org-type">/var/log/mythtv.log</span> {
- daily
- <span class="org-variable-name">size</span>=10M
- rotate 7
- notifempty
- copytruncate
- missingok
- postrotate
- reload rsyslog >/dev/null 2>&1 || true
- endscript
- }
- dest: /etc/logrotate.d/mythtv
-</code></pre>
-</div>
-</div>
-</div>
-<div id="outline-container-org6685a81" class="outline-3">
-<h3 id="org6685a81"><span class="section-number-3">9.21.</span> Start MythTV Backend</h3>
-<div class="outline-text-3" id="text-9-21">
-<p>
-After configuring with <code>mythtv-setup</code> as discussed above, start and
-enable (at boot time) the <code>mythtv-backend</code> service.
-</p>
-
-<div class="org-src-container">
-<pre class="src src-sh"><code>sudo systemctl enable mythtv-backend
-sudo systemctl start mythtv-backend
-systemctl status -l mythtv-backend
-sudo -u mythtv mythfilldatabase
-</code></pre>
-</div>
-</div>
-</div>
-<div id="outline-container-org766f8b7" class="outline-3">
-<h3 id="org766f8b7"><span class="section-number-3">9.22.</span> Install MythWeb</h3>
-<div class="outline-text-3" id="text-9-22">
-<p>
-MythWeb, like MythTV, is installed from a Git repository. The
-following commands create <q>/usr/local/share/mythtv/mythweb/</q> by
-cloning the MythWeb repository in <q>/usr/local/src/mythweb/</q>, checking
-out the appropriate branch, and copying the appropriate portion.
-</p>
-
-<div class="org-src-container">
-<pre class="src src-sh"><code><span class="org-builtin">cd</span> /usr/local/src/
-git clone https://github.com/MythTV/mythweb
-( <span class="org-builtin">cd</span> mythweb/; git checkout fixes/32 )
-rsync -C mythweb /usr/local/share/mythtv/
-</code></pre>
-</div>
-
-<p>
-The following tasks take care of the rest of the installation.
-</p>
-
-<div class="org-src-container">
-<a href="roles_t/abbey-tvr/tasks/main.yml"><q>roles_t/abbey-tvr/tasks/main.yml</q></a><pre class="src src-conf"><code>
-- name: Install MythWeb requisites.
- become: yes
- apt:
- pkg: [ apache2, php, php-mysql ]
-
-- name: Install MythWeb in web server DocumentRoot.
- file:
- state: link
- src: /usr/local/share/mythtv/mythweb
- dest: /var/www/html/mythweb
-
-- name: Configure MythWeb data directory.
- file:
- state: directory
- dest: /var/www/html/mythweb/data
- group: www-data
- <span class="org-variable-name">mode: u</span>=rwx,g+rwx,o=rx
-
-- name: Install MythWeb configuration.
- become: yes
- template:
- src: mythweb.conf.j2
- dest: /etc/apache2/sites-available/mythweb.conf
- notify: Restart Apache2.
-
-- name: Enable MythWeb configuration.
- become: yes
- command:
- cmd: a2ensite -q mythweb
- creates: /etc/apache2/sites-enabled/mythweb.conf
- notify: Restart Apache2.
-</code></pre>
-</div>
-
-<div class="org-src-container">
-<a href="roles_t/abbey-tvr/templates/mythweb.conf.j2"><q>roles_t/abbey-tvr/templates/mythweb.conf.j2</q></a><pre class="src src-conf"><code><span class="org-comment-delimiter">#</span>
-<span class="org-comment-delimiter"># </span><span class="org-comment">Apache configuration directives for MythWeb.</span>
-<span class="org-comment-delimiter">#</span>
-<span class="org-comment-delimiter"># </span><span class="org-comment">Note that this file is maintained by the network administration.</span>
-<Directory <span class="org-string">"/var/www/html/mythweb/data"</span>>
- <span class="org-comment-delimiter"># </span><span class="org-comment">For Apache 2.2</span>
- <span class="org-comment-delimiter">#</span><span class="org-comment">Options -All +FollowSymLinks +IncludesNoExec</span>
- <span class="org-comment-delimiter"># </span><span class="org-comment">For Apache 2.4+</span>
- Options +FollowSymLinks +IncludesNoExec
-</Directory>
-<Directory <span class="org-string">"/var/www/html/mythweb"</span> >
- <Files mythweb.*>
- setenv db_server <span class="org-string">"127.0.0.1"</span>
- setenv db_name <span class="org-string">"mythconverg"</span>
- setenv db_login <span class="org-string">"mythtv"</span>
- setenv db_password <span class="org-string">"{{ mythtv_dbpass }}"</span>
- </Files>
- <Files *.php>
- php_value file_uploads 0
- php_value allow_url_fopen On
- php_value zlib.output_handler Off
- php_value memory_limit 64M
- php_value max_execution_time 30
- php_value display_startup_errors On
- php_value display_errors On
- </Files>
- RewriteEngine on
- RewriteRule \
-^(css|data|images|js|themes|skins|README|INSTALL|[a-z_]+\.(php|pl))(/|$)\
- - [L]
- RewriteRule ^(pl(/.*)?)$ mythweb.pl/$1 [QSA,L]
- RewriteRule ^(.+)$ mythweb.php/$1 [QSA,L]
- RewriteRule ^(.*)$ mythweb.php [QSA,L]
- AllowOverride All
- Options FollowSymLinks
- AddType video/nuppelvideo .nuv
- AddType image/x-icon .ico
- <IfModule deflate_module>
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- AddOutputFilterByType DEFLATE text/html
- AddOutputFilterByType DEFLATE text/css
- AddOutputFilterByType DEFLATE application/x-javascript
- </IfModule>
- <IfModule headers_module>
- <span class="org-variable-name">Header append Vary User-Agent env</span>=!dont-vary
- </IfModule>
- <Files *.pl>
- SetHandler cgi-script
- Options +ExecCGI
- </Files>
-
-</Directory>
-</code></pre>
-</div>
-</div>
-</div>
-<div id="outline-container-orgc400edd" class="outline-3">
-<h3 id="orgc400edd"><span class="section-number-3">9.23.</span> Change Broadcast Area</h3>
-<div class="outline-text-3" id="text-9-23">