Page 1 of 1

Path issues

Posted: Tue Jul 26, 2005 3:02 pm
by r6rider
1.21.3

I have zm installed in /var/www/html/zm/ and /var/www/cgi-bin/zm/

If I set my images and events folder to be zm/images/ and zm/events, most things work, and video is recorded and I can watch it. However, when I attempt to look at a single frame, the path it is trying to get the image at looks like .../zm/zm/images...
it is referencing the file differently. If I try to set the paths to images and events without the zm, I can't look at any recorded video at all, and get errors like:

Jul 26 08:56:31 madman zma_m1[10517]: ERR [Can't make images/1/134: No such file or directory]
Jul 26 08:56:31 madman zma_m1[10517]: INF [WebCam: 041 - Starting new event 134]
Jul 26 08:56:31 madman zma_m1[10517]: ERR [Can't open images/1/134/001-capture.jpg: No such file or directory
Jul 26 08:57:11 madman zma_m1[10519]: INF [Debug Level = 0, Debug Log = <none>]
Jul 26 08:57:11 madman zma_m1[10519]: ERR [Can't make images: Permission denied]
Jul 26 08:57:11 madman zma_m1[10519]: ERR [Can't make images/1: No such file or directory]
Jul 26 08:57:11 madman zma_m1[10519]: INF [Warming up]

in /var/log/messages.

Inconsistencies in how the paths are used??

Thanks,

Adam

Posted: Tue Jul 26, 2005 5:20 pm
by cordel
Under your paths tab in options you should have set
ZM_DIR_EVENTS zm/events
ZM_DIR_IMAGES zm/images
ZM_PATH_ZMS /cgi-bin/zm/zms

Unless you have some wierd aliases set up this should work.
Regards,
Cordel

Posted: Tue Jul 26, 2005 7:44 pm
by r6rider
That is how I have the paths set up. If I try to drill down to an individual frame, the url for the image looks like this:
http://mysite/zm/zm/images/1/165/1000-capture.jpg, which obviously will not work.

Thanks,

Adam

Posted: Tue Jul 26, 2005 11:50 pm
by r6rider
If i add a symbolic link like so in the /var/www/html/zm folder:

ln -s ../zm

everything works.

Adam

Posted: Fri Sep 16, 2005 3:56 pm
by jameswilson
if i add another drive and mount it as /big if i chnage the path vaules in zm options will my images end up on there instead?

James

Posted: Sat Sep 17, 2005 1:34 am
by cordel
That should be possible, you might have to create the initial folders and set the permisions. I haven't had the need to try that as I'm some what anal about planning things a bit in advance.
You would probably need to create an alias for apache though.
Regards,
Cordel