View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 08, 2010 3:09 pm 
Offline
Joined: Sat Apr 21, 2007 6:55 pm
Posts: 306
Location: CA,USA
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"

_________________
Paul O'Flynn


Last edited by poflynn on Sun Jan 10, 2010 9:46 pm, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 3:51 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:17 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:19 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 08, 2010 6:49 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 09, 2010 5:54 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 10, 2010 9:45 pm 
Offline
Joined: Sat Apr 21, 2007 6:55 pm
Posts: 306
Location: CA,USA
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.

_________________
Paul O'Flynn


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu