On Sun, May 10, 2009 at 12:04 PM, Mark Knecht <[email protected]> wrote:
> On Sun, May 10, 2009 at 11:19 AM, Mark Knecht <[email protected]> wrote:
>> Hi,
>>   I'm wondering if there is a wiki for getting MythWeb running on
>> Gentoo. I've emerge the package, started apache2, and if I browse the
>> Myth backend server I see an 'It works' message which is simply the
>> contents of the index.htnl file in /var/www/localhost/htdocs
>> directory. When I try http://192.168.1.59/mythweb I get a directory
>> listing and not the application.
>>
>>   I don't see a mythweb entry using rc-update so I'm assuming the
>> only thing that needs to be started is apache2. Is this correct?
>>
>>   Anyway, I presume this is pretty simple but the one official
>> sounding Gentoo Wiki for this topic I find in Google seems to have
>> disappeared. I found this one:
>>
>> http://www.gentoo-wiki.info/HOWTO_Setup_MythWeb
>>
>> and I've copied the mythweb.conf to the apache2/modules.d directory.
>> However that stops apache from even restarting as it starts
>> complaining about all the lines that have 'php_value' in them.
>>
>>   Anyway, I suspect this is pretty straight forward to do once you
>> understand the secret. Anyone want to share? ;-)
>>
>> Thanks,
>> Mark
>>
>
> More clues. MythWeb required the emerging of php with certain flags
> enabled. However I note that php has an apache2 flag which was not
> required to be enabled:
>
> Sector9 modules.d # emerge -pv mythweb
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild   R   ] www-apps/mythweb-0.21_p17573  USE="-vhosts" 0 kB
>
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> Sector9 modules.d # emerge -pv php
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild   R   ] dev-lang/php-5.2.9-r2  USE="berkdb bzip2 cli crypt
> firebird gdbm iconv ipv6 json ldap mysql ncurses nls pcre posix
> readline reflection session spell spl ssl threads truetype unicode xml
> zlib -adabas -apache2 -bcmath -birdstep -calendar -cdb -cgi -cjk
> -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker
> -debug -discard-path -doc -empress -empress-bcs -esoob -exif
> -fastbuild -fdftk -filter -flatfile -force-cgi-redirect -frontbase
> -ftp -gd -gd-external -gmp -hash -imap -inifile -interbase -iodbc
> (-java-external) -kerberos -kolab -ldap-sasl -libedit -mcve -mhash
> -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic
> -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp
> -soap -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc
> -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz
> -zip (-zip-external)" 0 kB
>
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> Sector9 modules.d #
>
> While continuing to search for the real answer I'll rebuild php with
> apache2 turned on to see what happens.
>
> Thanks,
> Mark
>

OK, it seems that the apache2 USE flag is required for php. Possibly
someone should change the ebuild to suggest using that flag since it
already prints a message telling you to add 4 other flags.

Once I emerged php again with the apache2 flag I then had to change
the mythweb path in the mythweb.conf file to

    <Directory "/var/www/localhost/htdocs/mythweb" >

Now I'm at least getting a web page, but it's complaining about other
stuff. (But it's doing it in a web page so I consider this a small
victory!) ;-)

<SNIP>
Error at /var/www/localhost/htdocs/mythweb/modules/status/handler.php, line 29:
file_get_contents() [function.file-get-contents]: URL file-access is
disabled in the server configuration

Error at /var/www/localhost/htdocs/mythweb/modules/status/handler.php, line 29:
file_get_contents(http://192.168.1.59:6544)
[function.file-get-contents]: failed to open stream: no suitable
wrapper could be found

Error at 
/var/www/localhost/htdocs/mythweb/modules/_shared/tmpl/default/header.php,
line 16:
Cannot modify header information - headers already sent by (output
started at /var/www/localhost/htdocs/mythweb/includes/errors.php:117)
<SNIP>

I'll go to the myth-users list as the first like appears to make this
specifically Myth based.

Cheers,
Mark

Reply via email to