Page 2 of 2

Posted: Fri Aug 11, 2006 10:05 pm
by zozo6015
mjskier wrote:
zozo6015 wrote: I am using a SuSe 10.1 linux with zomeminder 1.22.2
What driver? I have the same camera, also on SuSE 10.1 and I had to compile the driver (OV511) myself since it didn't come with the distribution.
(A DVD disk I got from one of the Linux mags...)

No problem running it at 640x480 on a laptop...

My zmu command gives me the exact same output as yours except
that under "Window Attributes" it shows 640 and 480, not 384x288

bruno.
I use spca5xx for the webcam

Posted: Fri Aug 11, 2006 10:23 pm
by mjskier
zozo6015 wrote:problem solved. cgi-bin directory patch was wrong.
Now that you mention it, I ran into something similar:

Originally I pointed to the root of the web server tree when specifying htdocs and cgi-bin paths to the configure script. Then I thought better of it and reconfigured/recompiled/reinstalled zoneminder to use subdirectories.
I removed the old db and recreated a new one.
Yet I found out that nph-zms was expected in cgi-bin, not cgi-bin/jackcam as it got installed...
I don't know what part of zm does what yet so I just attributed that to not cleaning things right between the 2 installs...
Maybe there is an issue with the configure script?

bruno.

Posted: Sat Aug 12, 2006 6:03 pm
by cordel
The cgi-bin directory that exists in each distro is already configured in apache to allow execution of files in that directory. If it will follow through to subdirectories depends on how the cgi-bin directory is configured in apache as well. If you want zms somewhere other than the default cgi-bin directory it must be configured in apache's httpd.conf.

Regards,
Corey

Posted: Sun Aug 13, 2006 12:21 am
by zmskier
cordel wrote: If you want zms somewhere other than the default cgi-bin directory it must be configured in apache's httpd.conf.
I think that there is something else going on: I just looked at the old log and here's the error message:

[client 192.168.1.8] script not found or unable to stat: /srv/www/cgi-bin/nph-zms, referer: http://192.168.1.186/jackcam/index.php? ... 0&control=

And the error is correct since I specified this to the configure script:
--with-cgidir=/srv/www-cgi-bin/jackcam
nph-zms got installed in /srv/www/cgi-bin/jackcam yet some other part of zoneminder is expecting the script to be in /srv/www/cgi-bin.
If it were an apache configuration issue I would expect it to complain about permission, not about a missing file.

Bruno.

Posted: Sun Aug 13, 2006 6:19 pm
by cordel
Check your config in options under your paths tab ;) and keep in mind my above post, you may have to configure apache to allow cgi execution on subfolders.

Cheers,
Corey

Posted: Sun Aug 13, 2006 6:34 pm
by zozo6015
you cannot use other dirs or subdirs in cgi-bin. This can be done only with virtual hosts and you have to set there the cgi-bin directory for that vhost.

Posted: Sun Aug 13, 2006 7:07 pm
by cordel
zozo6015 wrote:you cannot use other dirs or subdirs in cgi-bin. This can be done only with virtual hosts and you have to set there the cgi-bin directory for that vhost.
You can if you properly configure them. As I do this for the RPM.
http://httpd.apache.org/docs/2.2/mod/co ... #directory

Corey