2015-02-09 23:28:35 +08:00
|
|
|
What's New
|
|
|
|
==========
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
1. The ZoneMinder mysql account now requires "Create" permission. This change
|
|
|
|
must be done manually before ZoneMinder will run. See the installation steps
|
|
|
|
below.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
2. A new permission group called "Groups" has been added. This allows the
|
|
|
|
system administrator to assign "view", "edit", or "none" permission to
|
|
|
|
normal users, without giving them access to the rest of the ZoneMinder
|
|
|
|
system. During an upgrade, existing accounts will default to a Groups
|
|
|
|
permission of "none".
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
3. This package now requires the HTTPS protocol to access the web portal.
|
|
|
|
Requests using HTTP will auto-redirect to HTTPS. See README.https for
|
|
|
|
more information.
|
2015-09-08 05:54:13 +08:00
|
|
|
|
|
|
|
4. This package ships with the new ZoneMinder API enabled.
|
2015-02-09 23:28:35 +08:00
|
|
|
|
|
|
|
New installs
|
|
|
|
============
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-10 03:29:21 +08:00
|
|
|
1. Unless you are already using MariaDB server, you need to ensure that
|
|
|
|
the server is configured to start during boot and properly secured
|
2015-02-09 23:28:35 +08:00
|
|
|
by running:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
sudo systemctl enable mariadb
|
|
|
|
sudo systemctl start mariadb
|
2015-02-10 03:29:21 +08:00
|
|
|
sudo mysql_secure_installation
|
2015-02-09 23:28:35 +08:00
|
|
|
|
|
|
|
2. Using the password for the root account set during the previous step, you
|
|
|
|
will need to create the ZoneMinder database and configure a database
|
|
|
|
account for ZoneMinder to use:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
|
2015-02-09 06:16:31 +08:00
|
|
|
mysql -u root -p
|
2015-09-08 04:50:42 +08:00
|
|
|
mysql> grant select,insert,update,delete,lock tables,alter,create
|
2015-08-30 03:01:45 +08:00
|
|
|
on zm.* to 'zmuser'@localhost identified by 'zmpass';
|
2015-02-09 23:28:35 +08:00
|
|
|
mysql> exit;
|
|
|
|
mysqladmin -u root -p reload
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
|
|
|
|
anything that suits your envinroment.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
3. If you have chosen to change the zoneminder database account credentials to
|
|
|
|
something other than zmuser/zmpass, you must now edit /etc/zm/zm.conf.
|
|
|
|
Change ZM_DB_USER and ZM_DB_PASS to the values you created in the previous
|
|
|
|
step.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
4. Edit /etc/php.ini, uncomment the date.timezone line, and add your local
|
2015-09-08 04:50:42 +08:00
|
|
|
timezone. PHP will complain loudly if this is not set, or if it is set
|
|
|
|
incorrectly, and these complaints will show up in the zoneminder logging
|
|
|
|
system as errors.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
|
|
|
If you are not sure of the proper timezone specification to use, look at
|
|
|
|
http://php.net/date.timezone
|
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
5. Disable SELinux
|
|
|
|
|
|
|
|
We currently do not have the resources to create and maintain an accurate
|
|
|
|
SELinux policy for ZoneMinder on CentOS 7. We will gladly accept pull
|
|
|
|
reqeusts from anyone who wishes to do the work. In the meantime, SELinux
|
|
|
|
will need to be disabled or put into permissive mode.
|
2015-02-09 23:28:35 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
To immediately disbale SELinux for the current seesion, issue the following
|
|
|
|
from the command line:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
|
|
|
sudo setenforce 0
|
|
|
|
|
2015-02-13 20:55:45 +08:00
|
|
|
To permanently disable SELinux, edit /etc/selinux/config and change the
|
2015-02-09 23:28:35 +08:00
|
|
|
SELINUX line from "enforcing" to "disabled". This change will take
|
|
|
|
effect after a reboot.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-10 03:36:22 +08:00
|
|
|
6. Now start the web server:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
sudo systemctl enable httpd
|
|
|
|
sudo systemctl start httpd
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-10 03:36:22 +08:00
|
|
|
7. Now start zoneminder:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
sudo systemctl enable zoneminder
|
|
|
|
sudo systemctl start zoneminder
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
Upgrades
|
|
|
|
========
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
1. Verify /etc/zm/zm.conf.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
If zm.conf was manually edited before running the upgrade, the installation
|
|
|
|
may not overwrite it. In this case, it will create the file
|
|
|
|
/etc/zm/zm.conf.rpmnew.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
For example, this will happen if you are using database account credentials
|
|
|
|
other than zmuser/zmpass.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
Compare /etc/zm/zm.conf to /etc/zm/zm.conf.rpmnew. Verify that zm.conf
|
|
|
|
contains any new config settings that may be in zm.conf.rpmnew.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
2. Verify permissions of the zmuser account.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
Over time, the database account permissions required for normal operation
|
2015-02-09 23:28:35 +08:00
|
|
|
have changed. Verify the zmuser database account has been granted select,
|
2015-08-30 03:01:45 +08:00
|
|
|
insert, update, delete, lock tables, alter, and create permission to the
|
|
|
|
ZoneMinder database:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
mysql -u root -p
|
|
|
|
mysql> show grants for zmuser@localhost;
|
|
|
|
mysql> exit;
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
See step 2 of the Installation section to add missing permissions.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
3. Verify the ZoneMinder Apache configuration file in the folder
|
|
|
|
/etc/httpd/conf.d. You will have a file called "zoneminder.conf" and there
|
|
|
|
may also be a file called "zoneminder.conf.rpmnew". If the rpmnew file
|
|
|
|
exists, inspect it and merge anything new in that file with zoneminder.conf.
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
4. Upgrade the database before starting ZoneMinder.
|
|
|
|
|
|
|
|
Most upgrades can be performed by executing the following command:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
sudo zmupdate.pl
|
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
Recent versions of ZoneMinder don't require any parameters added to the
|
2015-02-09 23:28:35 +08:00
|
|
|
zmupdate command. However, if ZoneMinder complains, you may need to call
|
|
|
|
zmupdate in the following manner:
|
|
|
|
|
2015-02-13 20:50:50 +08:00
|
|
|
sudo zmupdate.pl --user=root --pass=<mysql_root_pwd> --version=<from version>
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2015-09-08 04:50:42 +08:00
|
|
|
5. Now start zoneminder:
|
|
|
|
|
|
|
|
sudo systemctl start zoneminder
|
|
|
|
|