[mythtv] [mythtv-users] mythweb and lighttpd: How to fix the "Database Setup Error"

Tino Keitel tino.keitel at gmx.de
Thu Feb 7 12:04:30 UTC 2008

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

> Hi,
> 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


More information about the mythtv-dev mailing list