[mythtv-users] Help, Mythweb Hates me
Graeme Woollett
graeme.joy at paradise.net.nz
Tue Jul 19 05:02:40 EDT 2005
I'm having problems getting mythweb to work on my debian sid box
When I try to access mythweb I get this error on the browser:
I'm running mythweb 0.18 and apache2
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster at localhost and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error log.
------------------------------------------------------------------------
Apache/2.0.54 (Debian GNU/Linux) Server at 192.168.1.114 Port 80
This is what I get in my apache2 error log:
[Tue Jul 19 20:49:07 2005] [error] [client 192.168.1.113] (8)Exec format
error: exec of '/var/www/apache2-default/mythweb/program_listing.php' failed
[Tue Jul 19 20:49:07 2005] [error] [client 192.168.1.113] Premature end
of script headers: program_listing.php
I have this in my httpd.conf which is included in apache2.conf:
ScriptAlias /mythweb/ "/var/www/apache2-default/mythweb/"
<Directory /var/www/apache2-default/mythweb/>
AllowOverride All
Options +ExecCGI
</Directory>
AddHandler cgi-script .php
This is my config.php, I'm sure that I've stuffed up the IP addresses...
The master backend is on 192.168.1.114
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
//
// All end-user customizations (should?) happen here
// Most of this should really by in a MySQL table with
// a php interface to change it (someday...)
//
//
// How to access the database
//
define('db_host', 'localhost');
define('db_username', 'mythtv');
define('db_password', '8oZ8HP6o');
define('db_dbname', 'mythconverg');
// The domain of this webserver, for cookie validation and other
things. If you
// don't have "canonical names" turned on in apache, you need to set
this to the
// name or IP you use to access this server, or session data will not work.
// Turning on "canonical names" in apache's httpd.conf is the preferred
option.
define('server_domain', $_SERVER['192.168.1.114'] ?
$_SERVER['192.168.1.114'] : $_SERVER['192.168.1.114']);
// Email address to which php and database errors are mailed to
define('Error_Email',
'graeme.joy@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1',
server_domain));
// Path to the image cache directory
define('image_cache', '/var/www/apache2-default/mythweb/image_cache');
// Local (web-friendly) path to the mythtv video dir (use a symlink to
the real one - one will be auto-created if it can be)
define('video_dir', '/home/mythtv/video');
// Type of url for the links to recorded programs. Filename will be
added at the end
define('video_url', video_dir); //Normal http url
// Type of url for the links to mythvideo videos. Filename will be added
to the end.
// For this to work, create a 'videos' symlink in mythweb which points
to the path for mythvideo videos
// Link can set as either html:// or file://. file:// is useful over
lan for avi's to play immediately.
// Replace 'machine_name/path_to_videos' with relevent info for file://
#define('video_url', videos);
#define('video_url','file://192.168.1.114/home/mythtv/video');
//Url for windows filters. This need to be changed if you use a
different
//port or the webserver is not running on the backend machine.
//You may have to adjust the playback app in the filter
configuration program.
#define('video_url', 'myth://'.$_SERVER['192.168.1.114'].':6543');
#define('video_url', 'myth://192.168.1.114:6543');
// Type of url for the links to mythmusic files. Filename will be added
to the end.
// For this to work, create a 'music' symlink in mythweb which points to
the path for mythmusic files.
define('music_url', music);
// Path to the mythvideo "covers" directory
define('video_img_path', '');
// Movie word
define('movie_word', 'Movie');
// Language
define('default_language', 'English');
?>
mercury:/var/www#
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is my mysql.txt
DBHostName=localhost
DBUserName=mythtv
DBName=mythconverg
# Set the following if you want to use something other than the
# machine's real hostname for identifying settings in the database.
# This is useful if your hostname changes often, as otherwise
# you'll need to reconfigure mythtv (or futz with the DB) every time.
# TWO HOSTS MUST NOT USE THE SAME VALUE
#
#LocalHostName=my-unique-identifier-goes-here
# If you want your frontend to be able to wake your MySQL server
# using WakeOnLan, have a look at the following settings:
#
# Set the time the frontend waits (in seconds) beetween reconnect tries.
# This should be the rough time your MySQL server needs for startup
#WOLsqlReconnectWaitTime=0
#
#
# This is the amount of retries to wake the MySQL server until the frontend
# gives up
#WOLsqlConnectRetry=5
#
#
# This is the command executed to wake your MySQL server.
#WOLsqlCommand=echo \'WOLsqlServerCommand not set\'
DBPassword=8oZ8HP6o
--------------------------------------------------------------------------------------------------------------------------------
I'm out of ideas as to what the problem could be and a bit out of my
depth as well.
Thanks for your help
Graeme Woollett
More information about the mythtv-users
mailing list