Page 1 of 1
ZoneMinder on Ubuntu box running as webserver
Posted: Thu Jan 06, 2011 1:18 am
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.
Posted: Thu Jan 06, 2011 1:22 am
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!
Posted: Thu Jan 06, 2011 2:33 am
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?
Posted: Thu Jan 06, 2011 2:34 am
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
Posted: Thu Jan 06, 2011 2:40 am
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!
Posted: Thu Jan 06, 2011 2:46 am
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!
Posted: Thu Jan 06, 2011 9:39 pm
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