[mythtv-users] Mythweb troubles

Peter Buelow goballstate at gmail.com
Sat Jan 18 16:18:27 UTC 2014


Hoping someone can help. I seem to be having some odd issues that I haven't
previously seen. I have been running Myth in Fedora for years now, but only
recently decided to start making use of mythweb. Didn't really need it
prior, as I didn't have TV tuning ability. I got an InfiniTV, so now I have
TV and a use for mythweb. However, the config is behaving oddly.

First, I am running a fully updated F18 + Myth from rpmfusion. No patches,
no manual steps. My BE + FEs work fine. Database is on the same machine as
the BE and the webserver. Access to the webserver is local network or
portforwarded through my cable router via a ddns hostname.

mythweb-0.27-1.fc18.noarch
mythtv-libs-0.27-4.fc18.x86_64
mythtv-0.27-4.fc18.x86_64
php-MythTV-0.27-4.fc18.noarch
php-5.4.23-1.fc18.x86_64
httpd-2.4.6-2.fc18.x86_64

It is effectively a default config, no interesting changes to httpd.conf
(other than to update the admin email) or mythweb.conf in
/etc/httpd/conf.d. Mythweb works fine, I can do everything, and have no
issues (sort of, follow along). So now I want to turn on htdigest
authentication, which is when things get screwy. When, I check the error
logs looking for issues, and I find a bunch of them.

[Sat Jan 18 10:13:06.577446 2014] [access_compat:error] [pid 1857] [client
xxxx:45706] AH01797: client denied by server configuration:
/usr/share/mythweb/tv, referer:
http://xxx/mythweb/settings/settings/mythweb/session
[Sat Jan 18 10:13:06.577753 2014] [access_compat:error] [pid 1857] [client
xxxx:45706] AH01797: client denied by server configuration:
/usr/share/mythweb/mythweb.php, referer:
http://xxx/mythweb/settings/settings/mythweb/session
[Sat Jan 18 10:13:06.578137 2014] [:error] [pid 1857] [client xxxx:45706]
PHP Warning:  Unknown: function '0' not found or invalid function name in
Unknown on line 0, referer:
http://xxx/mythweb/settings/settings/mythweb/session
[Sat Jan 18 10:13:06.821019 2014] [access_compat:error] [pid 1857] [client
xxxx:45706] AH01797: client denied by server configuration:
/usr/share/mythweb/js/prototip/prototip.css, referer: http://xxx/mythweb/
[Sat Jan 18 10:13:06.821227 2014] [access_compat:error] [pid 1858] [client
xxxx:45708] AH01797: client denied by server configuration:
/usr/share/mythweb/skins/clean_blue/style.css, referer:
http://xxx/mythweb/settings

Note that the client denied actually doesn't stop me from viewing content,
and the site works as expected. However, it does not ask me to
authenticate, which is the problem. I thought this was an selinux issue,
but disabling it completely doesn't change the behavior. I would like to
turn it back on when I get this fixed.

I've been though a lot of apache tutorials, and several mythweb setup sites
as well. Again, my conf file is unchanged, and mythweb is in the default
location. Below is the section of the conf file I have edited to turn on
authentication. And yes the auth file exists in the location specified.

Alias /mythweb "/usr/share/mythweb"
<Directory "/usr/share/mythweb">

    <IfModule mod_authz_core.c>
        # Apache 2.4
        <RequireAll>
                Require all granted
        </RequireAll>
    </IfModule>


############################################################################
    # I *strongly* urge you to turn on authentication for MythWeb.  It is
disabled
    # by default because it requires you to set up your own password file.
 Please
    # see the man page for htdigest and then configure the folowing four
directives
    # to suit your authentication needs.
    #
        AuthType           Digest
        AuthName           "MythWeb"
        AuthUserFile       /etc/httpd/conf.d/mythweb-htdigest
        Require            valid-user
        BrowserMatch       "MSIE"      AuthDigestEnableQueryStringHack=On
        Order              allow,deny
        Satisfy            any

    #  * If you're running Apache earlier than 2.2, you will need to use
    #    the AuthDigestFile command instead of AuthUserFile (3rd line
above).
    #


############################################################################
    # Some special instructions for the MythWeb controller files
    #
        <Files mythweb.*>

        #
        # Use the following environment settings to tell MythWeb where you
want it to
        # look to connect to the database, the name of the database to
connect to, and
        # the authentication info to use to connect.  The defaults will
usually work
        # fine unless you've changed mythtv's mysql.txt file, or are
running MythWeb on
        # a different server from your main backend.  Make sure you have
mod_env enabled.
        #
            setenv db_server        "localhost"
            setenv db_name          "mythconverg"


I don't want to upgrade the BE right now because it all works so well.
Except this part. Other php (phpMyAdmin) applications work without error,
so I'm sure it's a config issue somewhere. Any help would be appreciated.

-- 
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140118/74e9b1c3/attachment.html>


More information about the mythtv-users mailing list