MythWeb

Introduction
This guide describes how to get MythWeb working with the Lighttpd web server. By default, MythWeb uses the Apache webserver, but lighttpd is a popular and lightweight alternative.

lighttpd and PHP
MythWeb requires you have installed PHP and lighttpd. Be sure you compiled lighttpd with the USE flags. The minimal flag must not be set as it stops mod_setenv from being built. PHP must be built with support. If not, put the following USE flags set in /etc/portage/package.use:

And then remerge lighttpd and PHP.

You may be interested in investigating how to configure webapp-config as well. This document assumes that the document-root is.

Install and Configure MythWeb
Now that lighttpd and php are installed, install MythWeb:

This should install MythWeb into.

You'll also need to make sure that the mythweb data directory at is writable by the lighttpd daemon. The simplest thing to do is probably to make it owned by the lighttpd user: drwxr-xr-x 3 lighttpd lighttpd 4096 Sep 22 21:20 /var/www/localhost/htdocs/mythweb/data
 * 1) ls -ld /var/www/localhost/htdocs/mythweb/data

By default, MythWeb uses Apache's .htaccess file to set the database access options and define some address re-directs for the PHP scripts. First, we have to tell MythWeb where the to find the MythTV database. Due to an issue translating variable names to all capitals (see ticket 420), you'll need to edit and add these lines near the top:

Configure LigHTTPd and PHP
MythWeb needs this option to be set in your php.ini:

MythWeb requires address rewrites, so modify :

Finally, setup address re-writes and environment variable settings. It is recommendet to use a virtual domain, because:
 * 1) it has minimal impact on other things your webserver might be doing, and
 * 2) it makes the address rewrite regex simpler.

Now, restart lighttpd and point a browser at whatever you set in, for example http://mythtv.my-domain.tld.