HOWTO Setup MythWeb
From Gentoo Linux Wiki
This article is still a Stub. You can help Gentoo-Wiki by expanding it.
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
|
|
|
Installation
Tips/Tweaking Usage |
| edit |
[edit] Setting up Mythweb
Install apache2 and php 5, if you have not already done so. If you would like a more lightweight web server, you can use Lighttpd instead of Apache. See HOWTO_Setup_MythWeb_with_Lighttpd for that.
If you want mythweb to be installed automatically, make sure that the vhosts use flag is not set when emerging.
So, emerge it:
emerge -av mythweb
Copy mythweb's config to your /etc/apache2/modules.d, substituting the current version of mythweb for 0.21_p16809 (used here):
cp /usr/share/webapps/mythweb/0.21_p16809/htdocs/mythweb.conf.apache /etc/apache2/modules.d/mythweb.conf
Edit your new /etc/apache2/modules.d/mythweb.conf to reflect your setup, including the directory of your mythweb install, and your mythtv's mysql credentials.
Start or restart apache:
/etc/init.d/apache2 restart
And you should have mythweb accessible at http://localhost/mythweb!
See the mythweb page at wiki.mythtv.org and mythweb's INSTALL for more on installing mythweb.
[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.
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>
|
allow_url_fopen = Onin 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 onSee PHP configuration changes for more info.

