LinHES Forums
http://forums.linhes.org/

Can't connect using MythWeb
http://forums.linhes.org/viewtopic.php?f=17&t=17632
Page 1 of 1

Author:  mkaz [ Mon Jan 14, 2008 7:56 pm ]
Post subject:  Can't connect using MythWeb

Can't connect using MythWeb (r5f27) from within my local network using firefox.

I get the error message:

Code:
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.


Although I did this below to set the password.

Code:
log in to a command line as root
use the command "htdigest -c /etc/htdigest MythTV -username-"
enter your new password twice
restart Apache with "/etc/init.d/apache2 restart"


If I try to connect using http://local IP:8888/ everything works fine (I set the port to 8888), but adding the mythweb/mythweb.php doesn't connect.

Question.
Is there anything I left out?

Author:  tjc [ Mon Jan 14, 2008 9:25 pm ]
Post subject: 

Try (you may need to do it twice):
Code:
ToggleWebSecurity.sh -all

As described in the R5F27 Hints under Known Change #6.2.

Oh, and "-username-" there looks like it was meant as a fill in the blank. You should be using:
Code:
htdigest -c /etc/htdigest MythTV mythtv

This is normally done for you by the KnoppMyth phase2 installer script in "/usr/local/bin/KnoppMyth-run".

Author:  mkaz [ Tue Jan 15, 2008 9:57 pm ]
Post subject: 

Oops. I missed the #6.2 change.

I tried the togglewebsecurity command and it indicated that it turned the security off, then on.

I redid the htdigest command as you indicated. Then I reset the apache2.

Unfortunately, I am still getting the same error.

Thanks for all your help, tjc!

Author:  mkaz [ Thu Jan 24, 2008 5:43 am ]
Post subject: 

Still no luck...

This is what I did.

Code:
root@mythtv:/home/mkaz# ToggleWebSecurity.sh -all
/usr/bin/ToggleWebSecurity.sh: Turning OFF Apache security
/usr/bin/ToggleWebSecurity.sh: Apache security OFF
root@mythtv:/home/mkaz# ToggleWebSecurity.sh -all
/usr/bin/ToggleWebSecurity.sh: Turning ON Apache security
/usr/bin/ToggleWebSecurity.sh: Apache security ON
root@mythtv:/home/mkaz# htdigest -c /etc/htdigest MythTV mkaz
Adding password for mkaz in realm MythTV.
New password:
Re-type new password:
root@mythtv:/home/mkaz# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)....
root@mythtv:/home/mkaz#


Still getting the .htaccess error message. :(

Any other ideas?

Author:  Dr. Hood [ Sat Jan 26, 2008 8:13 am ]
Post subject: 

mkaz wrote:
Still no luck...

Any other ideas?


Login with root access and try executing either...

Quote:
sh /usr/local/bin/KnoppMyth-run


If the script does not work, then check the PWD that mysql is using

Quote:
updatedb
locate mysql.txt
cat /path/mysql.txt

Look for the DBHostName, DBName, DBUserName, and DBPassword lines.

Then update mythweb-htaccess file with the same username and pwd..

Quote:
locate mythweb-htaccess
nano /path/mythweb-htaccess

Update the following lines in this file with the same information found in mysql.txt

Quote:
setenv db_server
setenv db_name
setenv db_login
setenv db_password


Restart apache
Quote:
/etc/init.d/apache2 restart


I hope this helps. If not, we will do something else....

Al

Author:  mkaz [ Sat Jan 26, 2008 11:04 am ]
Post subject: 

Still didn't get it to go.

There were several mysql.txt files all with mythtv as login and password. I looked at the one in /etc/mythtv

Code:
DBHostName=localhost
DBUserName=mythtv
DBName=mythconverg
DBPassword=mythtv


looking in /etc/mythtv/mythweb-htacess I see

Code:
        setenv db_server        "localhost"
        setenv db_name          "mythconverg"
        setenv db_login           "my web login"
        setenv db_password    "my web pw"


So that looked OK. Other lines above were commented out. Should they be?

Code:
#    AuthType           Digest
#    AuthName           "MythTV"
#    AuthUserFile       /var/www/htdigest#    Require            valid-user
#    BrowserMatch       "MSIE"      AuthDigestEnableQueryStringHack=On
AU


Next things to try??

Author:  Dr. Hood [ Sat Jan 26, 2008 3:26 pm ]
Post subject: 

I would try the following:

Modify /etc/mythtv/mythweb-htacess to
Quote:
setenv db_server "localhost"
setenv db_name "mythconverg"
setenv db_login "mythtv"
setenv db_password "mythtv"


Restart Apache...

If still no go...Then check the apache2.conf file.

Quote:
locate apache2.conf
nano /path/apache2.conf


Look for the following:
Quote:
<Directory /var/www/html/mythweb>
Options FollowSymLinks
AllowOverride All
</Directory>


Make sure that AllowOverride is set to All.

Note that the 'Directory' above must be set to the mythweb root directory.

Al

Author:  mkaz [ Sun Jan 27, 2008 7:15 am ]
Post subject: 

#1 didn't work.

Code:
<Directory /var/www/html/mythweb>
Options FollowSymLinks
AllowOverride All
</Directory>


Neither the above directory path nor the FollowSymLinks Option were in the file /etc/apache2/apache2.conf

What is the mythweb root directory?

What now to try?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/