ZoneMinder on Ubuntu box running as webserver

Forum for questions and support relating to the 1.24.x releases only.
Locked
Joshua2010
Posts: 4
Joined: Thu Jan 06, 2011 1:11 am

ZoneMinder on Ubuntu box running as webserver

Post by Joshua2010 »

Hello,
I just wondered if anyone had any experience running zoneminder on a webserver with a website running off it already, installing zoneminder to a Virtual server so as to avoid disruption to the website already running,
I'm pretty comfortable within the linux shell and my a log into my webserver via openSSH.
Any help will be much appreciated!

Its a headless mini itx webserver running ubuntu server (no GUI) with apache2, Openssh and mySQL running.
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

If you are running Ubuntu, an easy way out is to just install the Ubuntu package via apt-get. This won't disrupt your existing service. If you are compiling from source, you just have to add the proper <Directory> directives to your existing web-site (or make a new file and include it from apache).

For example:

Code: Select all

Alias /zm /usr/share/zoneminder

<Directory>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule>
    DirectoryIndex index.php
  </IfModule>
</Directory>
This creates an alias /zm so that I access http://<server>/zm and it goes to /usr/share/zoneminder, which is where ZM is installed on my system. That's pretty much all it takes. Stick that in your existing web-server cfg file, or create a new file and include it from httpd.conf or stick it in conf.d (every distribution is diff.).

Like I said, if you are kind of new to apache and are already running Ubuntu, just take the easy way out and install the package!
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
Joshua2010
Posts: 4
Joined: Thu Jan 06, 2011 1:11 am

Post by Joshua2010 »

Thats amazing, I changed it a little so i don't have to use the /zm at the end, got a dedicated dyndns host running on a different port for my zoneminder page. Do i need to change anything else in the conf file if i do it that way?
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

Do i need to change anything else in the conf file if i do it that way?
If it's working for you, then no :)
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
Joshua2010
Posts: 4
Joined: Thu Jan 06, 2011 1:11 am

Post by Joshua2010 »

seems to be although it won't grab the info for my usb webcams, tried three with the command (via ssh on remote machine) sudo zmu -d /dev/video0 -q -v
and it gives me a error 22 or failed the query crop capabilities

i'm guessing these cameras aren't supported!
Joshua2010
Posts: 4
Joined: Thu Jan 06, 2011 1:11 am

Post by Joshua2010 »

just read the other thread on this problem, will just keep my fingers crossed for a new release of zoneminder with the patch, so i can update and fire away!
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

You will also have to setup a virturalhost for the cgi-bin files that zoneminder uses. No i don't have an example handy.Sorry
Locked