Symlinks and Zoneminder: what am I doing wrong?!?

Forum for questions and support relating to the 1.24.x releases only.
Locked
Jim March
Posts: 88
Joined: Thu Oct 04, 2007 8:31 am

Symlinks and Zoneminder: what am I doing wrong?!?

Post by Jim March »

I am unable to tell Zoneminder to store data (events and images) out on my ReiserFS 500gig drive. Somebody said "gotta use symlinks" with no details.

I was able to sort out that ZM is by default storing to "images" and "events" as the "path" locations under options - no quotes of course and NO slashes at all.

Those are pointing it appears to /var/www/events and /var/www/images - and they are in fact storing stuff. System works but my boot volume is Ext3 and 250gig.

I tried the following type of commands:

sudo ln -s /media/disk/events /var/www/events
sudo ln -s /media/disk/images /var/www/images

...and it appears a symlink is there, but it's not being followed...stuff is still going to the /var/www/events and /images locations.

If I set ZM's paths to /media/disk/events it won't save data at all. And yes, I've got the permissions all sorted out.

Guys, what the heck?

Help!

Jim

PS: I'm using a disk-installed setup from the Bluecherry liveCD, which is XUbuntu based. This is the Beta2 based on ZM 1.24,
Jim March
Posts: 88
Joined: Thu Oct 04, 2007 8:31 am

Post by Jim March »

For anyone finding this thread in search, go here:

http://www.zoneminder.com/forums/viewtopic.php?t=13949

Symlinks aren't the best cure. Best bet is to mount the external disk at whatever location ZM expects to save data at, and not try and change what save path ZM uses. Basically, the "path" options in the options menu just don't work correctly, it just won't obey them.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

This is another very good option.
Mounting the drive at the location is far simpler.

If Using a symlink did not work, then you are likely using a distro that has not enabled following symlinks to be allowed. Most do but not all and would require setting the directive in apache for that directory to followsymlinks.

Glad you found a viable way to make it work though.
Locked