Next Previous Contents

12. MythWeb.

The MythWeb allows you to use a web page to control various aspects of your MythTV system. MythWeb is a separate application, but it's dependent on MythTV being installed and operational.

12.1 Installation and prerequisites

Download mythweb from http://www.mythtv.org/ and save it to a location where you can find it. The next step depends on whether your distribution has a web server and if you have PHP support.

Mandrake 9.0

Mandrake 9.0 has apache and PHP pre-packaged, so installation is quite simple. Once you have installed the two programs, either with the graphical installer (see instructions in Graphic Install Tools) or through the command line (section Command Line), and you've ensured that the apache server will start at boot using the Mandrake Control Center.

NOTE: Mandrake 9.1 users, perform the following:
# urpmi apache2 apache2-mod_php php-mysql
# chkconfig --level 345 httpd on
# /etc/rc.d/init.d/httpd restart

12.2 Completing the installation

$ tar -xjf mythweb-0.17.tar.bz2
$ cd mythweb-0.17
$ su
# mkdir /var/www/html/mythweb
# cp -r . /var/www/html/mythweb
# exit
$ 

Edit the /var/www/html/mythweb/config/conf.php file if required.

By default, MythWeb uses an Apache .htaccess file to restrict access to the website and to configure some variables.

To create the password file for Apache (if your system doesn't already have one), you could do something like this:

# cd /var/www
# htpasswd -c htpasswd mythtv
New password:
Re-type new password:
Adding password for user mythtv

See the man page for htpasswd for more examples.

To access the web page, open a web browser and use http://[name or ip address]/mythweb/

NOTE: Make sure that you have a trailing slash on the URL, otherwise you will get a 404 Page not Found error.

12.3 Resetting the key binding table.

MythWeb allows you to configure which keys are bound to which actions within MythTV. If you'd like to reset this back to the default, execute the following command:

$ echo "delete from keybindings ;" | mysql -u mythtv -pmythtv mythconverg


Next Previous Contents