[mythtv-users] Mythcut (Web based cutlist editer) and MythTV .28

Mark Boyum mark at boyum.us
Wed May 11 15:27:33 UTC 2016


On Tue, May 10, 2016 at 8:11 PM Anthony Giggins <seven at seven.dorksville.net>
wrote:

> On 11 May 2016 at 08:48, Mark Boyum <circushair at gmail.com> wrote:
>
>>
>>
>> On Tue, May 10, 2016 at 7:26 AM Anthony Giggins <
>> seven at seven.dorksville.net> wrote:
>>
>>> On 10 May 2016 at 18:25, Mike Perkins <mikep at randomtraveller.org.uk>
>>> wrote:
>>>
>>>> On 10/05/16 05:04, Anthony Giggins wrote:
>>>>
>>>>>
>>>>> what are your permission to /etc/mythtv/config.xml
>>>>>
>>>>> $ ls -al /etc/mythtv/config.xml
>>>>> -rw-r--r-- 1 www-data mythtv 425 Feb 17 13:09 /etc/mythtv/config.xml
>>>>>
>>>>> That isn't going to work. If mythtv is using this file, it is going to
>>>> need write permissions to it. Having owner=www-data implies that this file
>>>> was set up by mythweb which sounds strange.
>>>>
>>>> --
>>>>
>>>> Mike Perkins
>>>>
>>>>
>>>> I probably changed this somewhere along the line, probably for this
>>> exact issue. I don't see why mythtv would "need" write permissions in
>>> theory the file should not change, anyway I tested on the 0.28 system with
>>> the same permission and I'm getting the same error, I'll do some further
>>> testing tomorrow.
>>>
>>> Cheers,
>>>
>>> Anthony
>>>
>>> Hi Anthony,
>>
>> /etc/mythtv/config.xml has these perms:
>> -rw-rw-r-- 1 mythtv mythtv  455 May  2 15:16 config.xml
>>
>> I am still on Ubuntu 14.04.4 but did do apt-get --dist-upgrade when
>> switching from .27 to .28.
>> -Mark
>>
>>
> Just tested and it appears to get past those original errors if you create
> the /etc/apache2/sites-enabled/mythcut.conf as per the install instructions
> in the README, so it appears the xml parsing code is the problem as I've
> confirmed this is not a permissions problem (still getting the same results
> with 777 permissions on the file)
>
> <Directory /var/www/mythcut/>
>         DirectoryIndex index.php
>
>         setenv db_server        "ip-address-of-your-db-server"
>         setenv db_name          "mythtv database name, probably
> mythconverg"
>         setenv db_login         "mythtv"
>         setenv db_password      "your-super-secret-password"
> </Directory>
>
> * Then reload your apache (apachectl graceful)
>
> looking at the differences from a 0.27 & a 0.28 config.xml they are very
> different (as shown below) so may need to add some mythtv version checking
> code in and parse them appropriately or alternatively rewrite to use the
> mythtv php bindings or whatever mythweb uses
>
> 0.27
> <Configuration>
>   <UPnP>
>     <MythFrontend>
>       <DefaultBackend>
>         <DBHostName>localhost</DBHostName>
>         <DBUserName>mythtv</DBUserName>
>         <DBPassword>PASSWORD</DBPassword>
>         <DBName>mythconverg</DBName>
>         <DBPort>3306</DBPort>
>       </DefaultBackend>
>     </MythFrontend>
>     <UDN>
>       <MediaRenderer>{83c101f1-70a7-4372-8eb8-4f047561f59</MediaRenderer>
>     </UDN>
>   </UPnP>
> </Configuration>
>
> 0.28
> <Configuration>
>   <Database>
>     <PingHost>1</PingHost>
>     <Host>localhost</Host>
>     <UserName>mythtv</UserName>
>     <Password>PASSWORD</Password>
>     <DatabaseName>mythconverg</DatabaseName>
>     <Port>3306</Port>
>   </Database>
>   <WakeOnLAN>
>     <Enabled>0</Enabled>
>     <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
>     <SQLConnectRetry>5</SQLConnectRetry>
>     <Command>echo 'WOLsqlServerCommand not set'</Command>
>   </WakeOnLAN>
> </Configuration>
>
> Cheers,
>
> Anthony
>

Anthony,
I had tried that the other day and failed.  But since it worked for you I
took another look at the mythcut.conf file and found that the path to
mythcut was incorrect.

After correcting that to <Directory /var/www/html/mythcut/> it now works!

Thanks for the assistance,
-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160511/59b66972/attachment.html>


More information about the mythtv-users mailing list