HOWTO Setup MythWeb

From Gentoo Linux Wiki

Jump to: navigation, search

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

MythTV Series Myth TV


Installation


Tips/Tweaking


Usage


edit


[edit] MythWeb Hints

When I installed Mythweb-0.19, I had little trouble, so I tried to summarise the results I found. Since it's not recommended to modify http://www.mythtv.org/wiki/index.php/MythWeb_readme I started another place for that.

There is also a wiki for setting up MythWeb with Lighttpd. See HOWTO_Setup_MythWeb_with_Lighttpd for that.


In order for the included .htaccess to work properly, you will need to set apache's "AllowOverride" setting to "All" (or at least "Options") for the root mythweb directory. This directive lives within <Directory/> tags, so make sure you're adding the setting for the correct directory. eg

File: /etc/apache2/httpd.conf
 <Directory /var/www/localhost/htdocs/mythweb>
        AllowOverride all
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>


I get the following error when trying to display http://localhost/mythweb.php
Fatal error: Call to undefined function preg_replace() in /var/www/localhost/htdocs/mythweb/includes/init.php on line 28
You need to set the pcre useflag for your dev-lang/php (Adds support for Perl Compatible Regular Expressions).


I get the following error when trying to display the status page: http://localhost/status
Error at /var/www/localhost/htdocs/mythweb/modules/status/handler.php, line 26: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration
You need to enable
allow_url_fopen = On
in your php.ini file.

NOTE: I found I needed to stop and restart Apache2 to get the change to take.

If you don't want to turn on the setting globally (which is a good idea for security reasons), you can enable it only for your VirtualHost if you are using Apache.

Add this line to your vhosts config for the entry MythWeb uses:

php_admin_flag allow_url_fopen on
See PHP configuration changes for more info.
Personal tools