Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

MythWeb problem?

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


mythtv at biased

Dec 22, 2005, 6:32 PM

Post #1 of 9 (1258 views)
Permalink
MythWeb problem?

Hello all,

Have decided to upgrade MythTV via SVN to incorporate all the DVB
subtitle bugfixes, works fine on my main playback machine (but not my
secondary machine but that's for another time) but I do most of my
management via the web interface, and I haven't updated mythtv for 3 1/2
months, so I decided to upgrade mythweb as obviously the old version
won't work with the new version of the backend. Downloaded it via SVN,
backed up the old copy and copied the new version over and followed the
README file but I kept getting something like an "program_listing.php
file not found" errors. After hitting it with a stick, gave up and
redownloaded the plugin via SVN, did the above again and now I get:

==================================
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, webmaster[at]biased.org and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.
==================================

Looked in the logs, and found:

[Fri Dec 23 02:07:17 2005] [alert] [client 192.168.1.17]
/var/www/mythweb/.htaccess: Invalid command 'RewriteEngine', perhaps
mis-spelled or defined by a module not included in the server configuration

So looked up on Google, and added in:

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

and restarted apache and tried again. Same error. Back to the logs,
and I found:

[Fri Dec 23 02:22:17 2005] [alert] [client 192.168.1.17]
/var/www/mythweb/.htaccess: Invalid command 'AuthDigestFile', perhaps
mis-spelled or defined by a module not included in the server
configuration, referer: https://mythtv:80/mythweb/

Again, looked it up and tried:

LoadModule digest_auth_module /usr/lib/apache2/modules/mod_auth_digest.so

but this time on restarting Apache:

Can't locate API module structure `digest_auth_module' in file
/usr/lib/apache2/modules/mod_auth_digest.so: /usr/lib/libapr-0.so.0:
undefined symbol: digest_auth_module

Googling for "Can't locate API module structure `digest_auth_module'"
gets zero results.

Any ideas what I'm doing wrong?

The server is Apache v2.0.54 with PHP v4.3.10-15 on Debian Sarge.

Thanks very much for your help in advance.

Regards - Piers
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


jochen.kuehner at gmx

Dec 23, 2005, 12:08 AM

Post #2 of 9 (1242 views)
Permalink
Re: MythWeb problem? [In reply to]

maybe you try to edit the .htaccess and disable the auth lines for testing
with an #
----- Original Message -----
From: "Piers Kittel" <mythtv[at]biased.org>
To: <mythtv-dev[at]mythtv.org>
Sent: Friday, December 23, 2005 3:32 AM
Subject: [mythtv] MythWeb problem?


> Hello all,
>
> Have decided to upgrade MythTV via SVN to incorporate all the DVB subtitle
> bugfixes, works fine on my main playback machine (but not my secondary
> machine but that's for another time) but I do most of my management via
> the web interface, and I haven't updated mythtv for 3 1/2 months, so I
> decided to upgrade mythweb as obviously the old version won't work with
> the new version of the backend. Downloaded it via SVN, backed up the old
> copy and copied the new version over and followed the README file but I
> kept getting something like an "program_listing.php file not found"
> errors. After hitting it with a stick, gave up and redownloaded the
> plugin via SVN, did the above again and now I get:
>
> ==================================
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator, webmaster[at]biased.org and inform
> them of the time the error occurred, and anything you might have done that
> may have caused the error.
>
> More information about this error may be available in the server error
> log.
> ==================================
>
> Looked in the logs, and found:
>
> [Fri Dec 23 02:07:17 2005] [alert] [client 192.168.1.17]
> /var/www/mythweb/.htaccess: Invalid command 'RewriteEngine', perhaps
> mis-spelled or defined by a module not included in the server
> configuration
>
> So looked up on Google, and added in:
>
> LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
>
> and restarted apache and tried again. Same error. Back to the logs, and
> I found:
>
> [Fri Dec 23 02:22:17 2005] [alert] [client 192.168.1.17]
> /var/www/mythweb/.htaccess: Invalid command 'AuthDigestFile', perhaps
> mis-spelled or defined by a module not included in the server
> configuration, referer: https://mythtv:80/mythweb/
>
> Again, looked it up and tried:
>
> LoadModule digest_auth_module /usr/lib/apache2/modules/mod_auth_digest.so
>
> but this time on restarting Apache:
>
> Can't locate API module structure `digest_auth_module' in file
> /usr/lib/apache2/modules/mod_auth_digest.so: /usr/lib/libapr-0.so.0:
> undefined symbol: digest_auth_module
>
> Googling for "Can't locate API module structure `digest_auth_module'" gets
> zero results.
>
> Any ideas what I'm doing wrong?
>
> The server is Apache v2.0.54 with PHP v4.3.10-15 on Debian Sarge.
>
> Thanks very much for your help in advance.
>
> Regards - Piers
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev[at]mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


lists at forevermore

Dec 23, 2005, 12:21 AM

Post #3 of 9 (1247 views)
Permalink
Re: MythWeb problem? [In reply to]

> [Fri Dec 23 02:22:17 2005] [alert] [client 192.168.1.17]
> /var/www/mythweb/.htaccess: Invalid command 'AuthDigestFile', perhaps
> mis-spelled or defined by a module not included in the server
> configuration, referer: https://mythtv:80/mythweb/

How about trying to get it working with the default settings first
before turning on authentication?

-Chris
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at biased

Dec 23, 2005, 1:31 AM

Post #4 of 9 (1239 views)
Permalink
Re: MythWeb problem? [In reply to]

Aha!

Disabed the auth lines and got:

Error - data directory is not writable by www-data. Please check
permissions.

Not in the README file. Hmm... Chowned the data folder to www-data and
all is OK - works perfectly fine.

Re-enabled the auth lines in the .htaccess file and naturally it fails.
As mythweb is exposed to the big bad old WWW, I think it might be a
good idea to fix it :) Should I ask here or on the apache mailing list?

Thanks very much for your help in advance

Regards - Piers

Jochen Kühner wrote:
> maybe you try to edit the .htaccess and disable the auth lines for
> testing with an #
> ----- Original Message ----- From: "Piers Kittel" <mythtv[at]biased.org>
> To: <mythtv-dev[at]mythtv.org>
> Sent: Friday, December 23, 2005 3:32 AM
> Subject: [mythtv] MythWeb problem?
>
>
>> Hello all,
>>
>> Have decided to upgrade MythTV via SVN to incorporate all the DVB
>> subtitle bugfixes, works fine on my main playback machine (but not my
>> secondary machine but that's for another time) but I do most of my
>> management via the web interface, and I haven't updated mythtv for 3
>> 1/2 months, so I decided to upgrade mythweb as obviously the old
>> version won't work with the new version of the backend. Downloaded it
>> via SVN, backed up the old copy and copied the new version over and
>> followed the README file but I kept getting something like an
>> "program_listing.php file not found" errors. After hitting it with a
>> stick, gave up and redownloaded the plugin via SVN, did the above
>> again and now I get:
>>
>> ==================================
>> Internal Server Error
>>
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>
>> Please contact the server administrator, webmaster[at]biased.org and
>> inform them of the time the error occurred, and anything you might
>> have done that may have caused the error.
>>
>> More information about this error may be available in the server error
>> log.
>> ==================================
>>
>> Looked in the logs, and found:
>>
>> [Fri Dec 23 02:07:17 2005] [alert] [client 192.168.1.17]
>> /var/www/mythweb/.htaccess: Invalid command 'RewriteEngine', perhaps
>> mis-spelled or defined by a module not included in the server
>> configuration
>>
>> So looked up on Google, and added in:
>>
>> LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
>>
>> and restarted apache and tried again. Same error. Back to the logs,
>> and I found:
>>
>> [Fri Dec 23 02:22:17 2005] [alert] [client 192.168.1.17]
>> /var/www/mythweb/.htaccess: Invalid command 'AuthDigestFile', perhaps
>> mis-spelled or defined by a module not included in the server
>> configuration, referer: https://mythtv:80/mythweb/
>>
>> Again, looked it up and tried:
>>
>> LoadModule digest_auth_module /usr/lib/apache2/modules/mod_auth_digest.so
>>
>> but this time on restarting Apache:
>>
>> Can't locate API module structure `digest_auth_module' in file
>> /usr/lib/apache2/modules/mod_auth_digest.so: /usr/lib/libapr-0.so.0:
>> undefined symbol: digest_auth_module
>>
>> Googling for "Can't locate API module structure `digest_auth_module'"
>> gets zero results.
>>
>> Any ideas what I'm doing wrong?
>>
>> The server is Apache v2.0.54 with PHP v4.3.10-15 on Debian Sarge.
>>
>> Thanks very much for your help in advance.
>>
>> Regards - Piers
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev[at]mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev[at]mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


lists at forevermore

Dec 23, 2005, 8:39 AM

Post #5 of 9 (1246 views)
Permalink
Re: MythWeb problem? [In reply to]

> Error - data directory is not writable by www-data. Please check
> permissions.
>
> Not in the README file. Hmm... Chowned the data folder to www-data and
> all is OK - works perfectly fine.

That's fairly new. Guess I forgot to update the README when I added
that stuff. But at least the error message now is informative, rather
than just failing like it used to. :)

> Re-enabled the auth lines in the .htaccess file and naturally it fails.
> As mythweb is exposed to the big bad old WWW, I think it might be a
> good idea to fix it :) Should I ask here or on the apache mailing list?

It's more of an apache issue. Odd, though, since I thought every major
distro included all of the auth modules by default.

-Chris
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at biased

Dec 23, 2005, 8:44 AM

Post #6 of 9 (1241 views)
Permalink
Re: MythWeb problem? [In reply to]

Aha no worries then!

Yeah, Apache does have that module, it exists and it's in the correct
location but apparently the specific module name is wrong hence:

Can't locate API module structure `digest_auth_module' in file
/usr/lib/apache2/modules/mod_auth_digest.so: /usr/lib/libapr-0.so.0:
undefined symbol: digest_auth_module

rather than something like:

[Fri Dec 23 02:07:17 2005] [alert] [client 192.168.1.17]
/var/www/mythweb/.htaccess: Invalid command 'RewriteEngine', perhaps
mis-spelled or defined by a module not included in the server configuration

/usr/lib/apache2/modules/mod_auth_digest.so does exist, but I think the
module name (i.e. digest_auth_module) might have changed?

Will go and ask the Apache list if no-one knows off the top of their
heads here.

Cheers - Piers

Chris Petersen wrote:
>> Error - data directory is not writable by www-data. Please check
>> permissions.
>>
>> Not in the README file. Hmm... Chowned the data folder to www-data
>> and all is OK - works perfectly fine.
>
>
> That's fairly new. Guess I forgot to update the README when I added
> that stuff. But at least the error message now is informative, rather
> than just failing like it used to. :)
>
>> Re-enabled the auth lines in the .htaccess file and naturally it
>> fails. As mythweb is exposed to the big bad old WWW, I think it might
>> be a good idea to fix it :) Should I ask here or on the apache
>> mailing list?
>
>
> It's more of an apache issue. Odd, though, since I thought every major
> distro included all of the auth modules by default.
>
> -Chris
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev[at]mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at biased

Dec 27, 2005, 10:49 AM

Post #7 of 9 (1215 views)
Permalink
Re: MythWeb problem? [In reply to]

Hi all,

> [Fri Dec 23 02:22:17 2005] [alert] [client 192.168.1.17]
> /var/www/mythweb/.htaccess: Invalid command 'AuthDigestFile', perhaps
> mis-spelled or defined by a module not included in the server
> configuration, referer: https://mythtv:80/mythweb/

Comparing the .htaccess files in the old mythweb and the new one, I
found the old .htaccess has an "AuthUserFile" while the new .htaccess
has an "AuthDigestFile" - I tried changing the new one to "AuthUserFile"
- it works, but throws a completely different error message. I want to
know if it's supposed to be AuthDigestFile or is AuthUserFile correct?

Thanks very much for your help in advance.

Regards - Piers
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


lists at forevermore

Dec 27, 2005, 12:41 PM

Post #8 of 9 (1214 views)
Permalink
Re: MythWeb problem? [In reply to]

> Comparing the .htaccess files in the old mythweb and the new one, I
> found the old .htaccess has an "AuthUserFile" while the new .htaccess
> has an "AuthDigestFile" - I tried changing the new one to "AuthUserFile"
> - it works, but throws a completely different error message. I want to
> know if it's supposed to be AuthDigestFile or is AuthUserFile correct?

It's whatever you want it to be. I changed the sample config to digest
because digest is slightly more secure than standard auth.. But you
need to use htdigest instead of htpasswd in order to create the files
(that's explained in the comment right above the config, which tells you
to read the man page for htdigest)

-Chris
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mythtv at biased

Dec 28, 2005, 5:17 AM

Post #9 of 9 (1195 views)
Permalink
Re: MythWeb problem? [In reply to]

*bangs head on desk*

Yeah you're right. Sorry for not reading that small section!

My main problem (along with the non-existent htdigest file) was that the
mod_auth_digest wasn't loaded, and I had lots of problems trying to load
it. Googling for it anywhere says use "digest_auth_module" to call the
mod_auth_digest module. The Apache docs confirms this here:

http://httpd.apache.org/docs/1.3/mod/mod_auth_digest.html

But the sticker is that I'm not using version 1.3 but rather version 2.0
of Apache, so I thought "Hmm, lets check out the 2.0 docs" (pretty
obvious you would have thought...) and found:

http://httpd.apache.org/docs/2.0/mod/mod_auth_digest.html

and it says it's called with "auth_digest_module". 2 words's placements
has been changed over. Which is why all of the advice on Google I read
didn't work - it was for Apache 1.3. Wasn't clear!

Argh! Least it all works beautifully now!

Thanks very much for your help :) Much appreciated!

Cheers - Piers

Chris Petersen wrote:
>> Comparing the .htaccess files in the old mythweb and the new one, I
>> found the old .htaccess has an "AuthUserFile" while the new .htaccess
>> has an "AuthDigestFile" - I tried changing the new one to
>> "AuthUserFile" - it works, but throws a completely different error
>> message. I want to know if it's supposed to be AuthDigestFile or is
>> AuthUserFile correct?
>
>
> It's whatever you want it to be. I changed the sample config to digest
> because digest is slightly more secure than standard auth.. But you
> need to use htdigest instead of htpasswd in order to create the files
> (that's explained in the comment right above the config, which tells you
> to read the man page for htdigest)
>
> -Chris
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev[at]mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.