summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/local-website/htdocs/mythtv-doc/mythtv-HOWTO-14.html
blob: f1ab3cbc046eff685b7bbdacb460219bcdd2913b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Installing and using MythTV: MythWeb.</TITLE>
 <LINK HREF="mythtv-HOWTO-15.html" REL=next>
 <LINK HREF="mythtv-HOWTO-13.html" REL=previous>
 <LINK HREF="mythtv-HOWTO.html#toc14" REL=contents>
</HEAD>
<BODY>
<A HREF="mythtv-HOWTO-15.html">Next</A>
<A HREF="mythtv-HOWTO-13.html">Previous</A>
<A HREF="mythtv-HOWTO.html#toc14">Contents</A>
<HR>
<H2><A NAME="s14">14.</A> <A HREF="mythtv-HOWTO.html#toc14">MythWeb.</A></H2>

<P>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.</P>

<H2><A NAME="ss14.1">14.1</A> <A HREF="mythtv-HOWTO.html#toc14.1">Installation and prerequisites</A>
</H2>

<P>Mythweb is a part of the <B>mythplugins</B> package.  See 
<A HREF="mythtv-HOWTO-13.html#mythplugins_">MythPlugins</A> for instructions on downloading the
tarball. The next step depends on whether your distribution has a web server
and if you have PHP support.</P>

<H3>Mandriva</H3>

<P>Mandriva has <B>apache</B> and <B>PHP</B> pre-packaged, so
installation is quite simple.  </P>
<P>
<FIGURE>
<EPS FILE="stop.eps">
<IMG SRC="stop.png">
<CAPTION><B>NOTE</B>: Mandriva 9.1 users, perform the following:</CAPTION>
</FIGURE>

<BLOCKQUOTE><CODE>
<PRE>
# urpmi apache2 apache2-mod_php php-mysql
# chkconfig --level 345 httpd on
# /etc/rc.d/init.d/httpd restart
</PRE>
</CODE></BLOCKQUOTE>
</P>

<H2><A NAME="ss14.2">14.2</A> <A HREF="mythtv-HOWTO.html#toc14.2">Completing the installation</A>
</H2>

<P>
<BLOCKQUOTE><CODE>
<PRE>
$ cd ~/mythplugins-0.21/mythweb
$ su
# mkdir /var/www/html/mythweb
# cp -r . /var/www/html/mythweb
# exit
$ 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>By default, MythWeb uses an Apache <CODE>.htaccess</CODE> file to restrict
access to the website and to configure some variables.</P>
<P>To create the password file for Apache (if your system doesn't already have
one), you could do something like this:
<BLOCKQUOTE><CODE>
<PRE>
# cd /var/www
# htpasswd -c htpasswd mythtv
New password:
Re-type new password:
Adding password for user mythtv
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>See the man page for <B>htpasswd</B> for more examples.</P>
<P>To access the web page, open a web browser and use <B>http://[name or ip
address]/mythweb/</B></P>
<P>
<FIGURE>
<EPS FILE="stop.eps">
<IMG SRC="stop.png">
<CAPTION><B>NOTE</B>: Make sure that you have a trailing slash on the URL,
otherwise you will get a <CODE>404 Page not Found</CODE> error.</CAPTION>
</FIGURE>
</P>
<H2><A NAME="ss14.3">14.3</A> <A HREF="mythtv-HOWTO.html#toc14.3">Resetting the key binding table</A>
</H2>

<P>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:
<BLOCKQUOTE><CODE>
<PRE>
$ echo "delete from keybindings ;" | mysql -u mythtv -pmythtv mythconverg
</PRE>
</CODE></BLOCKQUOTE>
</P>
<H2><A NAME="ss14.4">14.4</A> <A HREF="mythtv-HOWTO.html#toc14.4">Resetting the theme.</A>
</H2>

<P>If you find yourself wedged into a theme that isn't working, open your
web browser and go to site:
<CODE>http://mythweb_name_or_ip_address/mythweb/settings.php?RESET_THEME=yes</CODE></P>
<HR>
<A HREF="mythtv-HOWTO-15.html">Next</A>
<A HREF="mythtv-HOWTO-13.html">Previous</A>
<A HREF="mythtv-HOWTO.html#toc14">Contents</A>
</BODY>
</HTML>