[mythtv-users] mythweb and lighttpd: How to fix the "Database Setup Error"
Michael T. Dean
mtdean at thirdcontact.com
Thu Feb 7 16:36:23 UTC 2008
On 02/07/2008 07:04 AM, Tino Keitel wrote:
> On Thu, Feb 07, 2008 at 12:09:52 +0100, Tino Keitel wrote:
> [CC: to -dev, as it seems like the provided lighttpd config should be
>> I tried to use lighttpd with mythweb from current trunk. I took the
>> provided config file, but I had no success.
>> I got either the "database setup error", or just a 404 after I adjusted
>> the $HTTP["host"] line to match my hostname.
>> After commenting out the url.rewrite-once part, the start page works,
>> but all other pages still throw a 404 error.
>> How can I get mythweb to really work with lighttpd?
> It looks like the rewrite rules expect mythweb in the root directory of
> the web server. However, I have mythweb in a subdirectory mythweb/.
> I changed the rewrite rules accordingly, and now it works. Here are my
> rewrite rules:
> url.rewrite-once = (
> "^/mythweb/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0",
> "^/mythweb/(pl(/.*)?)$" => "/mythweb/mythweb.pl/$1",
> "^/mythweb/(.+)$" => "/mythweb/mythweb.php/$1",
> "^/mythweb/(.*)$" => "/mythweb/mythweb.php"
> Maybe they should be changed so that they work for arbitrary
In the Apache httpd configuration file, there's a "RewriteBase /mythweb"
line commented out with the instruction:
# If MythWeb is installed outside of the document root (eg. using Alias)
# you will need to set this directive to the base URL that MythWeb is
# from externally. If you do not, the web server will return 'not found'.
If there's a way to do something similar in lighttpd, please make a
patch and submit a ticket.
More information about the mythtv-users