2015-02-09 23:28:35 +08:00
|
|
|
What's New
|
|
|
|
==========
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2018-04-20 04:36:43 +08:00
|
|
|
1. See the ZoneMinder release notes for a list of new features:
|
|
|
|
https://github.com/ZoneMinder/zoneminder/releases
|
2015-02-09 23:28:35 +08:00
|
|
|
|
2018-06-01 21:51:53 +08:00
|
|
|
2. The contents of the ZoneMinder Apache config file have changed. In
|
|
|
|
addition, this ZoneMinder package now requires you to manually symlink the
|
|
|
|
ZoneMinder Apache config file. See new install step 6 and upgrade step 3
|
|
|
|
below for details.
|
|
|
|
|
2015-02-09 23:28:35 +08:00
|
|
|
New installs
|
|
|
|
============
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2016-12-24 03:06:44 +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 by running:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2018-04-20 04:36:43 +08:00
|
|
|
sudo yum install mariadb-server
|
|
|
|
sudo systemctl enable mariadb
|
|
|
|
sudo systemctl start mariadb.service
|
|
|
|
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
|
|
|
|
2016-02-03 01:47:55 +08:00
|
|
|
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
|
|
|
|
mysql -uroot -p -e "grant all on zm.* to \
|
|
|
|
'zmuser'@localhost identified by 'zmpass';"
|
|
|
|
mysqladmin -uroot -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
|
2016-03-19 06:42:34 +08:00
|
|
|
anything that suits your environment.
|
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
|
2017-06-06 04:39:19 +08:00
|
|
|
something other than zmuser/zmpass, you must now create a config file under
|
|
|
|
/etc/zm/conf.d and set your credentials there. For example, create the file
|
|
|
|
/etc/zm/conf.d/zm-db-user.conf and add the following content to it:
|
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
ZM_DB_USER = {username of the sql account you want to use}
|
|
|
|
ZM_DB_PASS = {password of the sql account you want to use}
|
2017-06-06 04:39:19 +08:00
|
|
|
|
|
|
|
Once the file has been saved, set proper file & ownership permissions on it:
|
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
sudo chown root:apache *.conf
|
|
|
|
sudo chmod 640 *.conf
|
2015-11-22 05:18:43 +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
|
|
|
|
2018-04-20 04:36:43 +08:00
|
|
|
6. Configure the web server
|
|
|
|
|
|
|
|
This package uses the HTTPS protocol by default to access the web portal,
|
|
|
|
using rhe default self signed certificate on your system. Requests using
|
|
|
|
HTTP will auto-redirect to HTTPS.
|
|
|
|
|
|
|
|
Inspect the web server configuration file and verify it meets your needs:
|
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
/etc/zm/www/zoneminder.conf
|
2018-04-20 04:36:43 +08:00
|
|
|
|
|
|
|
If you are running other web enabled services then you may need to edit
|
|
|
|
this file to suite. See README.https to learn about other alternatives.
|
2016-03-03 22:33:49 +08:00
|
|
|
|
2018-04-20 04:36:43 +08:00
|
|
|
When in doubt, proceed with the default:
|
2016-03-03 22:33:49 +08:00
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
sudo ln -s /etc/zm/www/zoneminder.conf /etc/httpd/conf.d/
|
2018-06-15 02:42:07 +08:00
|
|
|
sudo yum install mod_ssl
|
2016-03-03 22:33:49 +08:00
|
|
|
|
|
|
|
7. Now start the web server:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
sudo systemctl enable httpd
|
|
|
|
sudo systemctl start httpd
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2016-03-03 22:33:49 +08:00
|
|
|
8. Now start zoneminder:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2018-04-20 07:40:05 +08:00
|
|
|
sudo systemctl enable zoneminder
|
|
|
|
sudo systemctl start zoneminder
|
|
|
|
|
|
|
|
9. Optionally configure the firewall
|
|
|
|
|
|
|
|
All Redhat distros ship with the firewall enabled. That means you will not
|
|
|
|
be able to access the ZoneMinder web console from a remote machine until
|
|
|
|
changes are made to the firewall.
|
|
|
|
|
|
|
|
What follows are a set of minimal commands to allow remote access to the
|
|
|
|
ZoneMinder web console and also allow ZoneMinder's ONVIF discovery to
|
|
|
|
work. The following commands do not put any restrictions on which remote
|
|
|
|
machine(s) have access to the listed ports or services.
|
|
|
|
|
|
|
|
sudo firewall-cmd --permanent --zone=public --add-service=http
|
|
|
|
sudo firewall-cmd --permanent --zone=public --add-service=https
|
|
|
|
sudo firewall-cmd --permanent --zone=public --add-port=3702/udp
|
|
|
|
sudo firewall-cmd --reload
|
|
|
|
|
|
|
|
Additional changes to the firewall may be required, depending on your
|
|
|
|
security requirements and how you use the system. It is up to you to verify
|
|
|
|
these commands are sufficient.
|
|
|
|
|
|
|
|
10. Access the ZoneMinder web console
|
|
|
|
|
|
|
|
You may now access the ZoneMinder web console from your web browser using
|
|
|
|
an appropriate url. Here are some examples:
|
|
|
|
|
|
|
|
http://localhost/zm (works from the local machine only)
|
|
|
|
http://{machine name}/zm (works only if dns is configured for your network)
|
|
|
|
http://{ip address}/zm
|
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
|
|
|
|
2017-06-06 04:39:19 +08:00
|
|
|
1. Conf.d folder support has been added to ZoneMinder 1.31.0. Any custom
|
|
|
|
changes previously made to zm.conf must now be made in one or more custom
|
|
|
|
config files, created under the conf.d folder. Do this now. See
|
|
|
|
/etc/zm/conf.d/README for details. Once you recreate any custom config changes
|
|
|
|
under the conf.d folder, they will remain in place indefinitely.
|
2015-11-22 05:18:43 +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-11-22 05:18:43 +08:00
|
|
|
have increased. Verify the zmuser database account has been granted all
|
|
|
|
permission to the ZoneMinder database:
|
2015-02-09 06:16:31 +08:00
|
|
|
|
2016-02-03 01:47:55 +08:00
|
|
|
mysql -uroot -p -e "show grants for zmuser@localhost;"
|
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
|
2018-04-20 04:36:43 +08:00
|
|
|
/etc/zm/www. You will have a file called "zoneminder.conf" and there
|
2015-09-08 04:50:42 +08:00
|
|
|
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.
|
2016-03-03 22:33:49 +08:00
|
|
|
Verify the SSL REquirements meet your needs. Read README.https if necessary.
|
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
|
|
|
|
2017-04-15 22:23:28 +08:00
|
|
|
5. Now restart the web server then start zoneminder:
|
2015-09-08 04:50:42 +08:00
|
|
|
|
2017-04-15 22:23:28 +08:00
|
|
|
sudo systemctl restart httpd
|
2015-09-08 04:50:42 +08:00
|
|
|
sudo systemctl start zoneminder
|
|
|
|
|
2017-04-15 22:23:28 +08:00
|
|
|
|