From ArchWiki
Revision as of 20:13, 14 July 2008 by Kw (talk | contribs) (Updated for MythTV 0.21)
Jump to: navigation, search

Install MythWeb

pacman -S mythweb

Create a symlink to your video directory under the mythweb directory

ln -s /home/video /home/httpd/html/mythweb/video_dir

Start editing httpd.conf

nano /etc/httpd/conf/httpd.conf

Uncomment the line

LoadModule php5_module             modules/

Set the DocumentRoot in httpd.conf

DocumentRoot "/srv/www"
<Directory "/srv/www">

Insert the following line towards the end of httpd.conf

Include /etc/httpd/conf/extra/mythweb.conf

Copy the mythweb configuration file to the Include location stated in httpd.conf

cp /srv/www/mythweb/mythweb.conf   /etc/httpd/conf/extra/mythweb.conf

Update the Directory reference in mythweb.conf

<Directory "/srv/www/mythweb">

NOTE: You should secure this directory.

Edit your mysql server settings in mythweb.conf

setenv db_server        "localhost"
setenv db_name          "mythconverg"
setenv db_login         "login"
setenv db_password      "password"

Activate the mysql and posix modules in PHP

nano /etc/php/php.ini

Uncomment the following lines

Update open_basedir to include the DocumentRoot

open_basedir= /home/:/srv/www/:/tmp/

Start Apache

/etc/rc.d/httpd start

Browse to MythWeb