Hi,
who do I change the dir where Zoneminder store the events/images (normally in /var/cache/zonemindes)
I try to simlink to the mounted partition where I want the files but without results.
Thank you in advance.
Store the events/images in another directory/drive
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Here are two solutions, the first you have only partially completed...
If you go the route of creating a link, then you also need to make sure that Zoneminder has permission to write to the destination folder. This will depend on what linux distro you are running. For Redhat & CentOS, the user apache needs write permission. For Ubuntu, the user www-data needs write permission. Typically the user that needs permission is the user that your Apache web server runs under.
Another way is to simply mount the partition directly to the zoneminder events folder. You do that automatically on startup by creating the proper entry in /etc/fstab. This is the way I like to do it.
If you go the route of creating a link, then you also need to make sure that Zoneminder has permission to write to the destination folder. This will depend on what linux distro you are running. For Redhat & CentOS, the user apache needs write permission. For Ubuntu, the user www-data needs write permission. Typically the user that needs permission is the user that your Apache web server runs under.
Another way is to simply mount the partition directly to the zoneminder events folder. You do that automatically on startup by creating the proper entry in /etc/fstab. This is the way I like to do it.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Your question cannot be answered with precision because it requires detailed knowledge of your hardware and the specific os you are running.
Here is the fstab on my system:
/dev/sda3 /var/www/html/zm/events ext4 defaults,noatime,commit=120,data=writeback 0 2
From a command prompt enter "man fstab" to learn how to modify the above line for your system.
Be careful. Errors in your fstab can make your system non-bootable.
Here is the fstab on my system:
/dev/sda3 /var/www/html/zm/events ext4 defaults,noatime,commit=120,data=writeback 0 2
From a command prompt enter "man fstab" to learn how to modify the above line for your system.
Be careful. Errors in your fstab can make your system non-bootable.
-
- Posts: 15
- Joined: Wed Feb 17, 2010 1:57 am