View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 14, 2008 7:56 pm 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 14, 2008 9:25 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 15, 2008 9:57 pm 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
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!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 24, 2008 5:43 am 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 8:13 am 
Offline
Joined: Wed Dec 14, 2005 8:26 pm
Posts: 84
Location: Northeast, USA
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

_________________
KnoppMyth: R5B7
Video Output: 27 inch TV (4:3)
Motherboard: Biostar K8NHA Grand mobo w/nForce3 250Gb
CPU: AMD Sempron 3000+ (1.8 Ghz)
RAM: 1024 Mb
Videocard: Radeon 9500 (64 Mb)
TV Tuner Card: PVR-350
Harddisk: WD160 Gb + Max 300 Gb


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 11:04 am 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
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??


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 3:26 pm 
Offline
Joined: Wed Dec 14, 2005 8:26 pm
Posts: 84
Location: Northeast, USA
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

_________________
KnoppMyth: R5B7
Video Output: 27 inch TV (4:3)
Motherboard: Biostar K8NHA Grand mobo w/nForce3 250Gb
CPU: AMD Sempron 3000+ (1.8 Ghz)
RAM: 1024 Mb
Videocard: Radeon 9500 (64 Mb)
TV Tuner Card: PVR-350
Harddisk: WD160 Gb + Max 300 Gb


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 27, 2008 7:15 am 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
#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?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 101 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu