summaryrefslogtreecommitdiff
path: root/security/zoneminder/MESSAGE
blob: d0995f10f66adc31ba590074c1eb084d1dfd2490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
===========================================================================
$NetBSD: MESSAGE,v 1.3 2015/04/05 08:51:08 dsainty Exp $

All documentation for ZoneMinder is now online at:

  http://www.zoneminder.com/wiki/index.php/Documentation


Performance:

  ZoneMinder benefits dramatically from using libjpeg-turbo.  Consider
  building from Pkgsrc with:

  JPEG_DEFAULT=libjpeg-turbo


To get ZoneMinder started a MySQL database is required.

First, create a MySQL user "zmuser":

echo "create user 'zmuser'@'localhost' identified by 'zmpass';" | mysql -u root

The default password is "zmpass".  You may change this to something else, and
update ZM_DB_PASS in ${PKG_SYSCONFDIR}/zm.conf.


Create the initial database via:

  mysql -u root < ${PREFIX}/share/zoneminder/db/zm_create.sql


Assign rights to the "zmuser" user via:

  echo "grant all on * to 'zmuser';" | mysql -u root zm


Upgrade a database from an older version of ZoneMinder via:

  zmupdate.pl -u root [-p <password>]


To enable the web interface via Apache, add the following line to httpd.conf:

  Include ${PREFIX}/share/examples/zoneminder/apache/zoneminder.conf

Also follow the configuration instructions for www/ap-php,
databases/php-mysql, databases/php-pdo and databases/php-pdo_mysql packages.
Use pkg_info to read their MESSAGE files.

PHP may log warnings if the PHP date.timezone configuration is not set.
Consider assigning a default system time zone to date.timezone in
${PKG_SYSCONFDIR}/php.ini.
===========================================================================