This is great stuff bobmyth! Thanks for posting it. I've tried getting zm working with previous versions of linhes but my linux skills aren't great and I never got it working. This week I did a clean install of 7.4 and thought I'd try it again. Following your instructions, Zoneminder is starting, and runs, I just can't get to the web interface.
I followed your instructions to the letter but when I do, lighttpd fails to start. I don't see anything in the lighttpd logs file, but when I run ps -ef | grep light here's what I see:
Quote:
root 871 1 0 Oct02 ? 00:00:02 runsvdir -P /service log: f line: 37 pos: 1 parser failed somehow near here: (EOL) ?2012-10-04 14:08:36: (configfile.c.912) source: /etc/lighttpd/conf.include line: 7 pos: 1 parser failed somehow near here: (EOL) ?2012-10-04 14:08:36: (configfile.c.912) source: /etc/lighttpd/lighttpd.conf line: 352 pos: 8 parser failed somehow near here: (EOL) ?lighttpd-angel.c.140: child (pid=2372) exited normally with exitcode: 255?
root 876 871 0 Oct02 ? 00:00:00 runsv lighttpd
root 2377 28255 0 14:08 pts/2 00:00:00 grep light
The offending code is in /etc/lighttpd/conf.include - whenever I insert your code lighttpd fails, and I have no access to any of the web sites on my mythbox. I've also tried putting your code in the supplemental config file /usr/MythVantage/etc/lighttpd-supplement.conf, with the same result.
One difference is that I use nano, not sudoedit. Of course, first I become root. Another difference may be that when I did my new clean install of Linhes 7.4, I selected the extra web application, Xymon - that may have changed some things in the lighttpd configuration. Here are contents of my /etc/lighttpd/conf.include:
Quote:
include "/usr/MythVantage/etc/lighttpd-supplement.conf"
and here are the contents of /usr/MythVantage/etc/lighttpd-supplement.conf:
Quote:
#server.errorlog-use-syslog = "enable"
#$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" }
$HTTP["url"] =~ "(mythweb)" {
server.error-handler-404 = "/error/mythweb.html"
}
$HTTP["url"] =~ "(phpMyAdmin)" {
server.error-handler-404 = "/error/phpadmin.html"
}
$HTTP["url"] =~ "(xymon)" {
server.error-handler-404 = "/error/hobbit.html"
}
$HTTP["url"] =~ "(mythexport)" {
server.error-handler-404 = "/error/mythexport.html"
}
$HTTP["url"] =~ "(call_log)" {
server.error-handler-404 = "/error/call_log.html"
}
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
server.errorfile-prefix = "/data/srv/httpd/htdocs/error/status-"
alias.url = ( "/logs/" => "/var/log/" )
$HTTP["url"] =~ "^/logs($|/)" {
dir-listing.activate= "enable"
dir-listing.hide-dotfiles = "enable"
dir-listing.external-css = "/frame.css"
}
#cgi.assign = ( ".pl" => "/usr/bin/perl",
# ".sh" => "/bin/bash" ,
# ".py" => "/usr/bin/python" ,
# ".cgi" => "/bin/bash" )
$SERVER["socket"] == ":1337" {
server.document-root = "/data/srv/httpd/cgi/"
alias.url = ( "/templates/" => "/data/home/mythtv/templates/" )
}
#### status module
status.status-url = "/server-status"
status.config-url = "/server-config"
#ssi.extension = ( ".shtml" )
As you can see, your code is not in place at this time, I removed it so that lighttpd could start. I inserted exactly what you have in your instructions, but am unsure of any placement requirements - should this go at the top of the file, or somewhere else?
Quote:
alias.url = (
"/cgi-zm" => "/srv/zoneminder/cgi-bin/",
"/zm" => "/srv/zoneminder/www/"
)
$HTTP["url"] =~ "^/cgi-zm" {
cgi.assign = ( "" => "" )
}
I have no idea how to fix this. Do you have any ideas? Anyone? I'd really like to get this working.