Difference between revisions of "MythWeb"

From ArchWiki
Jump to: navigation, search
m
(Updated for MythTV 0.21)
Line 5: Line 5:
 
  ln -s /home/video /home/httpd/html/mythweb/video_dir
 
  ln -s /home/video /home/httpd/html/mythweb/video_dir
  
 +
Start editing httpd.conf
 
  nano /etc/httpd/conf/httpd.conf
 
  nano /etc/httpd/conf/httpd.conf
  
Line 10: Line 11:
 
  LoadModule php5_module            modules/libphp5.so
 
  LoadModule php5_module            modules/libphp5.so
  
Add the following
+
Set the DocumentRoot in httpd.conf
 
+
DocumentRoot "/srv/www"
  <Directory "/home/httpd/html/mythweb">
+
.
    AllowOverride Options FileInfo
+
.
    php_admin_value allow_url_fopen On
+
.
    Options Indexes FollowSymLinks
+
  <Directory "/srv/www">
    Allow from all
+
.
 +
.
 +
.
 
  </Directory>
 
  </Directory>
 +
 +
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.
 
NOTE: You should secure this directory.
  
Activate the mysql module in PHP
+
 
 +
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
 
  nano /etc/php/php.ini
  
Uncomment the mysql line
+
Uncomment the following lines
 
  extension=mysql.so
 
  extension=mysql.so
 +
extension=posix.so
  
Edit the MythWeb .htaccess file
+
Update open_basedir to include the DocumentRoot
  nano /home/httpd/html/mythweb/.htaccess
+
  open_basedir= /home/:/srv/www/:/tmp/
  
Edit your mysql server settings
 
        setenv db_server        "localhost"
 
        setenv db_name          "mythconverg"
 
        setenv db_login        "login"
 
        setenv db_password      "password"
 
  
 
Start Apache
 
Start Apache

Revision as of 20:13, 14 July 2008

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/libphp5.so

Set the DocumentRoot in httpd.conf

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

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

extension=mysql.so
extension=posix.so

Update open_basedir to include the DocumentRoot

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


Start Apache

/etc/rc.d/httpd start

Browse to MythWeb

http://localhost/mythweb