You are not logged in.

#1 2012-05-22 08:21:37

sultanoswing
Member
Registered: 2008-07-23
Posts: 317

mythweb with myth 0.25 [SOLVED]

I'm having my first stab at setting up mythweb and having problems because of the new and Arch-specific paths, meaning I get "Object Not Found" errors when accessing "localhost/mythweb" in the browser and also "srv/httpd/mythweb/: file not found" errors in the httpd log.

I've tried to follow the Arch wiki (https://wiki.archlinux.org/index.php/MythWeb) and also a recent forum thread on the new paths (https://bbs.archlinux.org/viewtopic.php?id=141233), as well as the official INSTALL guide which comes with mythweb. All to no avail.

I DO have the Apache server running, and see a list of files (the mythweb directory) when I go to address: "localhost". I DON'T get the nice, fancy mythweb interface when I try address: "localhost/mythweb".

Any help as to what and where I need to symlink and which edits to the paths in "mythweb.conf", "httpd.conf" and "php.ini" will be appreciated!


UPDATE:

After some more fiddling it's solved - thanks to the thread above (https://bbs.archlinux.org/viewtopic.php?id=141233).

My working mythweb.conf file (excluding commented lines) is as follows:

Alias /mythweb /var/lib/mythtv/mythweb

    <Directory "/var/lib/mythtv/mythweb">
        Options -All +FollowSymLinks +IncludesNoExec
        order allow,deny
        Allow from All
    </Directory>

 <Directory "/var/lib/mythtv/mythweb" >
   
        <Files mythweb.*>

            setenv db_server        "localhost"
            setenv db_name          "mythconverg"
            setenv db_login         "mythtv"
            setenv db_password      "mythtv"

          order Allow,Deny  
          Allow from All 
        </Files>

        <Files *.php>

            php_value safe_mode                     0
            php_value register_globals              0
            php_value magic_quotes_gpc              0
            php_value file_uploads                  0
            php_value allow_url_fopen               On

            php_value zlib.output_handler           Off
            php_value output_handler                NULL

            php_flag output_handler                 "NULL"

        </Files>

        RewriteEngine  on

        RewriteBase    /mythweb

        RewriteRule    ^(css|data|images|js|themes|skins|README|INSTALL|[a-z_]+\.(php|pl))(/|$)     -     [L]

        RewriteRule     ^(pl(/.*)?)$            mythweb.pl/$1               [QSA,L]

        RewriteRule     ^(.+)$                  mythweb.php/$1              [QSA,L]

        RewriteRule     ^(.*)$                  mythweb.php                 [QSA,L]

        AllowOverride   All

        Options         FollowSymLinks

        AddType video/nuppelvideo   .nuv

        AddType image/x-icon        .ico

        <Files *.pl>
            SetHandler cgi-script
            Options +ExecCGI
        </Files>

    </Directory>

I also had to symlink the video folder to get the video portion of mythweb working (and add /var/lib/mythtv/data/video to base_dir in php.ini):

ln -s /mnt/media/video /var/lib/mythtv/mythweb/data/video

I will now set about securing it and setting it loose on the web smile. LOVING the power and options provided of mythweb!

Last edited by sultanoswing (2012-05-23 11:35:31)


Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | ThinkPad X1 | ASUS ux303ua | Surface Laptop 2 | Minisforum UM780

Offline

Board footer

Powered by FluxBB