Thread: Mythweb for 0.25 BE on Mac OS X help

Reply to Thread
Results 1 to 2 of 2
  1. Default [SOLVED] Mythweb for 0.25 BE on Mac OS X help #1
    browndog is offline MythTV Friend in Training
    Join Date
    Nov 2012
    Posts
    7
    MythTV Gallery
    0
    I'm trying to install Mythweb on OS X. I have followed all the directions, but I need help applying the patch. I have successfully set up 0.25 BE on my Mac.

    I tried installing and applying the patch manually, and that didn't work. Then I tried to install Mythweb via Mac Ports, but that didn't work either.

    I followed these instructions: http://www.mythtv.org/wiki/MythWeb_on_Mac_OS_X_Backend



    I don't understand how to apply this class_autoload patch: http://code.mythtv.org/trac/attachme...autoload.patch

    I've tried searching for this, but I don't see any files called class_autoload. I'm guessing I have to change this in Xcode or something? Any help please?
    Last edited by browndog; 01-05-2013 at 06:07 AM. Reason: Solved
    Reply With Quote  

  2. Default #2
    browndog is offline MythTV Friend in Training
    Join Date
    Nov 2012
    Posts
    7
    MythTV Gallery
    0
    With a little help from Reddit and some Googleing I have this working (sort of)

    The wiki should be updated with these changes

    1) Go to /Library/WebServer/MythWeb/includes and edit class_autoload.php

    Code:
     sudo nano /Library/WebServer/MythWeb/includes/class_autoload.php
    2) Delete what is in the file right below the last commented line and paste this in:

    Code:
          function autoload($className) {
             global $Path;
             $className = str_replace('_', '/', $className);
            if (file_exists("classes/$className.php"))
                 include_once "classes/$className.php";
            elseif (file_exists(modules_path.'/'.module."/classes/$className.php"))
                 include_once modules_path.'/'.module."/classes/$className.php";
             elseif (file_exists(modules_path.'/'.$Path[1]."/classes/$className.php"))
                 include_once modules_path.'/'.$Path[1]."/classes/$className.php";
             elseif (file_exists(modules_path.'/'.$Path[0]."/classes/$className.php"))
                 include_once modules_path.'/'.$Path[0]."/classes/$className.php";
            else {
                foreach (explode(PATH_SEPARATOR, ini_get('include_path')) as $path) {
                    if (!file_exists("$path/$className.php"))
                        continue;
                    include_once "$path/$className.php";
                    return true;
                }
                 return false;
            }
            return true;
         }
     
         spl_autoload_register('autoload');
    Next you have to go /Library/WebServer/MythWeb/includes/init.php and edit it if you are getting a MythBackend not found error in your logs. I installed via the packages not MacPorts so you may not get this.

    Code:
     sudo nano /Library/WebServer/MythWeb/includes/init
    Comment out the last line so it looks like this (without quotes) "// MythBackend::find()->setTimezone();"

    The MySQL portion of the wiki was not complete for Lion.

    Code:
     sudo nano /etc/php.ini
    Change the Pdo_mysql in the module section to this:

    Code:
     ; Default socket name for local MySQL connects.  If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/pdo_mysql.default-socket
    pdo_mysql.default_socket=/tmp/mysql.sock
    I now have MythWeb up and running on my Mac with a 0.25 backend. I have access to all my channels, database stats, upcoming recordings, etc... The only thing I can't get working is showing the guide data (EPG) in MythWeb... kind of a big deal, but at least I have it up and running. Hopefully this helps someone trying to get MythWeb 0.25 running on OS X Lion.
    Last edited by browndog; 01-05-2013 at 06:04 AM.


    Reply With Quote  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Mythweb
    By mrdebug in forum General
    Replies: 0
    Last Post: 11-21-2011, 08:04 PM
  2. Replies: 2
    Last Post: 03-16-2011, 11:17 PM
  3. 2 x mythweb auf 1 x Rechner? Probleme mit virtual-Hosts und mythweb
    By der_Angler in forum Probleme bei der Installation
    Replies: 2
    Last Post: 11-01-2010, 09:14 PM
  4. Replies: 7
    Last Post: 04-03-2006, 04:41 AM
  5. mythweb
    By hansp in forum Allgemeines
    Replies: 13
    Last Post: 02-07-2006, 03:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts