blob: 8713fda6f78a45d25892e944447844f23fa4921f (
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
|
1. If this is a new installation, you will need to create a MySQL
database for zoneminder to use
(see https://wiki.gentoo.org/wiki/MySQL/Startup_Guide).
E.g., when logged into mysql as root,
mysql> CREATE DATABASE \`zm\`;
mysql> grant select,insert,alter,update,lock tables,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
mysql> flush privileges;
Once you completed that you should execute the following:
mysql -p < /usr/share/zoneminder/db/zm_create.sql
2. Set your database settings in /etc/zm.conf, including above zmpass
3. Configure apache to use zoneminder, see /usr/share/doc/zoneminder*/10_zoneminder.conf
for an example configuration snippet.
4. Enable PHP in your webserver configuration,
enable short_open_tags in php.ini (likely on by default now)
set the time zone in php.ini,
and restart/reload the webserver.
5. Start the zoneminder daemon:
/etc/init.d/zoneminder start
6. Finally point your browser to http://your.webserver/zm
If you are upgrading, you will need to run the zmupdate.pl script:
/usr/bin/zmupdate.pl
|