●debian(etch)でmythtvを試してみました。(その6)
その5までと、他のmythtvの設定が終わり問題なさそうなので、続いてmythwebをやってみましたよ。
■http://localhost/mythweb/にアクセスしたがエラーがでたのでapache2の設定を変更
rootディレクトリを/var/wwwに変更
■以下のエラーが表示された。
Database Access Denied
You are most likely receiving this message because you
have failed to configure mythweb's database login info.
Please see .htaccess for instructions.
■.htaccessの設定を変更
debian:/etc/init.d# cd /var/www
debian:/var/www# ls
analog apache2-default mythweb
debian:/var/www# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jan 8 15:46 .
drwxr-xr-x 16 root root 4096 Jan 8 11:19 ..
lrwxrwxrwx 1 root root 24 Jan 7 19:51 analog -> /usr/share/analog/images
drwxr-xr-x 2 root root 4096 Jan 7 19:51 apache2-default
lrwxrwxrwx 1 root root 25 Jan 8 15:46 mythweb -> /usr/share/mythtv/mythweb
debian:/var/www# pwd
/var/www
debian:/var/www# cd mythweb
debian:/var/www/mythweb# ls
data includes js modules mythweb.php mythweb.pl skins
debian:/var/www/mythweb# ls -la
total 44
drwxr-xr-x 7 root root 4096 Jan 8 15:46 .
drwxr-xr-x 7 root root 4096 Jan 8 15:46 ..
lrwxrwxrwx 1 root root 28 Jan 8 15:46 .htaccess -> /etc/mythtv/mythweb-htaccess
-rw-r--r-- 1 root root 6294 Sep 6 19:54 .htaccess.dist
drwxr-xr-x 2 root root 4096 Jan 8 15:46 data
drwxr-xr-x 3 root root 4096 Jan 8 15:46 includes
drwxr-xr-x 2 root root 4096 Jan 8 15:46 js
drwxr-xr-x 12 root root 4096 Jan 8 15:46 modules
-rw-r--r-- 1 root root 938 Sep 6 19:54 mythweb.php
-rwxr-xr-x 1 root root 2523 Sep 6 19:54 mythweb.pl
drwxr-xr-x 6 root root 4096 Jan 8 15:46 skins
setenv db_password "ozqweeww"
の部分を適切なパスワードに変更する。
■番組情報の自動取得
debian:/var/log/mythtv# export EDITOR=vi
debian:/var/log/mythtv# crontab -e
以下を追加
30 03 * * * /usr/bin/mythfilldatabase > /var/log/mythtv/mythfilldatabase.log 2>&1
しかし、これは動作していませんでした。
コマンドラインからmythfilldatabaseを実行すればよいのでしょうけど、毎日やってては^^;
どうも、xmltvだけはaptから入れないでソースから入れた方がいいような。
(さらにいうと、mythfilldatabaseを実行してもループしてます^^;)
続きはまた今度。