[mythtv-users] Myth web forward

Keller Giacomarro keller.g at gmail.com
Fri Apr 20 06:16:12 UTC 2007


On Fri, 2007-04-20 at 00:50 -0500, Mitch Gore wrote:

> I am trying to use Jarod's guide to set up mythweb so when i put my
> machines name in the address bar it takes me right to mythweb.
> 
> Here are his instructions:
> 
> 
>         Personally, I don't plan on using the web server on this box
>         for anything *but* MythWeb, so I opted to move everything
>         in /var/www/html/mythweb/ to /var/www/html/ and remove the
>         mythweb folder, so I get to MythWeb with just http://htpc/
>         (htpc is the hostname for MythTV box). Alternatively, Zachary
>         Hamm suggests creating an index.php file in /var/www/html/,
>         containing the following to achieve the same effect:
>         
>         
>         <?php header("Location: /mythweb"); ?>
>         
>         This works better for those who also run other web-based apps
>         on their MythTV box (like phpMyAdmin, for example), and keeps
>         the apache doc root a bit tidier.
>         
>         
> 
> I want to use the php forward method.  But when i do all I see is a
> blank white page.  If i run "/usr/sbin/setsebool -P
> httpd_can_network_connect=1" like the guide says it says that SELinux
> is disabled (what i want) 
> 
> Why is it doing this?  If i remove the index.html file I see the
> Apache test page.  And if i put the /mythweb after the address i can
> use mythweb.
> 
> 
>         [root at Mitchell_mc html]# ls
>         mythweb
>         [root at Mitchell_mc html]# echo "<?php
>         header("Location: /mythweb"); ?>" > index.html
>         [root at Mitchell_mc html]# ls
>         index.html  mythweb
>         [root at Mitchell _mc html]# 
> 
> 
> 
> Thanks,
> Mitchell
>  
> 
> 
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


There may be a more elegant solution, but here's what I did when I
accidentally deleted the MySQL root account once (!).

Use the following command to dump your database to disk.

mysqldump -u mythtv -p mythconverg -c > mythtv_backup.sql

In Ubuntu, I just go into Synaptic and tell it to "Completely remove"
the MySQL server.  This basically strips everything MySQL server off the
system including configuration files.

Now, reinstall MySQL server - you'll have a clean slate.  Change the
root password to "password" or something else easy to remember.  =P

Now use the following commands to restore your database.

$ mysql -u root -p
  mysql>create database mythconverg;
  mysql>exit
$ mysql -u mythtv -p mythconverg < mythtv_backup.sql


That should restore your data correctly and give you a fresh database with a root password you know.

Good luck!

-Keller

Reference : http://www.mythtv.org/wiki/index.php/User_Manual:Periodic_Maintenance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070420/6faca12c/attachment.htm 


More information about the mythtv-users mailing list