LinHES Forums http://forums.linhes.org/ |
|
Moving zoneminder "events" to from /data to /myth http://forums.linhes.org/viewtopic.php?f=21&t=20750 |
Page 1 of 1 |
Author: | poflynn [ Fri Jan 08, 2010 3:09 pm ] |
Post subject: | Moving zoneminder "events" to from /data to /myth |
Hi All, I have Zoneminder running just fine but by default it stores all of its snapshots under /data/srv/httpd/htdocs/zm but on my system (and by default) there's not much room there. OTOH I have /myth mounted on a central nfs server with gobs of room so I'd like to move all of the ZM stuff to /myth/zm or similar. I changed the zoneminder config to write to /myth/zm and I copied all of the files over there and modified lighttpd.conf as follows: Quote: #alias.url = ("/zm" => "/data/srv/httpd/htdocs/zm") alias.url = ("/zm" => "/myth/zm") but as I expected lighttpd wouldn't serve content from that dir. So my question is, how do I get it to serve content from there? I see this directive but of course I want to leave all the Myth web stuff alone so I don't think I'll be changing this. Quote: server.document-root = "/data/srv/httpd/htdocs"
|
Author: | christ [ Fri Jan 08, 2010 3:51 pm ] |
Post subject: | |
I'm not familiar yet with lighttpd but you should be looking for something like "php basedir". So perhaps googling that with lighttpd may turn something up. |
Author: | Girkers [ Fri Jan 08, 2010 6:17 pm ] |
Post subject: | |
In theory would using a symlink work? From what I understand it should do as you can give the symlink permissions for whatever web user needs it. Just a thought. |
Author: | christ [ Fri Jan 08, 2010 6:19 pm ] |
Post subject: | |
Girkers wrote: In theory would using a symlink work? From what I understand it should do as you can give the symlink permissions for whatever web user needs it.
A symlink should not work as it is supposed to be a security mechanism. But you never know. |
Author: | Girkers [ Fri Jan 08, 2010 6:49 pm ] |
Post subject: | |
How does mythweb get to the videos directory? Looking into the file structure, under /data/srv/httpd/htdocs/mythweb/data/video it is a symlink to /myth/video Tried to find how that is referenced in mythweb, but could not find it. |
Author: | christ [ Sat Jan 09, 2010 5:54 pm ] |
Post subject: | |
Because the "/data/srv/httpd/htdocs/mythweb/data/video" is in the allowed Basedir by default. The relevant file is /etc/php/php.ini Look for the variable "open_basedir" Add the path you would like zm to use (symlinked or otherwise) and it should work. |
Author: | poflynn [ Sun Jan 10, 2010 9:45 pm ] |
Post subject: | |
Thx for all the prompt & extremely helpful replies guys. The symlink sort of worked - lighttpd could serve up the HTML & php pages but for some reason no images, not even up & down arrows from the graphics directory. Dunno why that was. In the end I decided it might be easier to make my HD bigger - I am running my MBE in VirtualBox so I did the following: 1: Added a new big slave drive to my MBE 2: Booted from Clonezilla 3: Cloned the original HD to the new bigger one 4: Reboot into GParted 5: Extend the partitions to fill the new HD 6: Shutdown, delete original HD 7: Reboot: voila! Everything the same but with a bigger HD It probably would have been better to store my security images on my nfs share for a few reasons but this is ok & took less time than becoming an expert in lighttpd. Thanks again. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |