zoneminder/distros/redhat/readme/README.Fedora

159 lines
6.2 KiB
Plaintext
Raw Permalink Normal View History

2015-10-04 00:04:58 +08:00
What's New
==========
2015-10-04 00:04:58 +08:00
1. The Apache ScriptAlias has been changed from "/cgi-bin/zm/zms" to
"/cgi-bin-zm/zms". This has been to done to avoid this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=973067
2016-03-03 22:33:49 +08:00
IMPORTANT: You must manually inspect the value for PATH_ZMS under Options
and verify it is set to "/cgi-bin-zm/nph-zms". Failure to do so will result
in a broken system. You have been warned.
2016-03-03 22:33:49 +08:00
2. Due to the active state of the ZoneMinder project, we now recommend granting
2015-11-22 05:18:43 +08:00
ALL permission to the ZoneMinder mysql account. This change must be done
manually before ZoneMinder will run. See the installation steps below.
2016-03-03 22:33:49 +08:00
3. This package uses the HTTPS protocol by default to access the web portal.
2015-10-04 00:04:58 +08:00
Requests using HTTP will auto-redirect to HTTPS. See README.https for
more information.
2016-03-03 22:33:49 +08:00
4. This package ships with the new ZoneMinder API enabled.
2015-10-04 00:04:58 +08:00
New installs
============
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:
2016-12-24 03:06:44 +08:00
sudo dnf install mariadb-server
2015-10-04 00:04:58 +08:00
sudo systemctl enable mariadb
sudo systemctl start mariadb.service
mysql_secure_installation
2. Assuming the database is local and 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:
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-10-04 00:04:58 +08:00
The database account credentials, zmuser/zmpass, are arbitrary. Set them to
anything that suits your environment.
2015-10-04 00:04:58 +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.
2016-06-01 20:30:41 +08:00
This version of zoneminder no longer requires you to make a similar change
to the credentials in /usr/share/zoneminder/www/api/app/Config/database.php
This now happens dynamically. Do *not* make any changes to this file.
2015-11-22 05:18:43 +08:00
2015-10-04 00:04:58 +08:00
4. Edit /etc/php.ini, uncomment the date.timezone line, and add your local
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.
If you are not sure of the proper timezone specification to use, look at
http://php.net/date.timezone
2015-10-04 00:04:58 +08:00
5. Disable SELinux
2015-10-04 00:04:58 +08:00
We currently do not have the resources to create and maintain an accurate
SELinux policy for ZoneMinder on Fedora. 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.
To immediately disbale SELinux for the current seesion, issue the following
from the command line:
2015-10-04 00:04:58 +08:00
sudo setenforce 0
2015-10-04 00:04:58 +08:00
To permanently disable SELinux, edit /etc/selinux/config and change the
SELINUX line from "enforcing" to "disabled". This change will take
effect after a reboot.
2016-03-03 22:33:49 +08:00
6. Install mod_ssl or configure /etc/httpd/conf.d/zoneminder.conf to meet your
needs. This package comes preconfigured for HTTPS using the default self
signed certificate on your system. The recommended way to complete this step
is to simply install mod_ssl:
2016-12-24 03:06:44 +08:00
sudo dnf install mod_ssl
2016-03-03 22:33:49 +08:00
If this does not meet your needs, then read README.https to
learn about alternatives. When in doubt, install mod_ssl.
2016-03-03 22:33:49 +08:00
7. Now start the web server:
2015-10-04 00:04:58 +08:00
sudo systemctl enable httpd
sudo systemctl start httpd
2016-03-03 22:33:49 +08:00
8. Now start zoneminder:
2015-10-04 00:04:58 +08:00
sudo systemctl enable zoneminder
sudo systemctl start zoneminder
2016-08-16 22:49:45 +08:00
9. The Fedora repos have a ZoneMinder package available, but it does not
support ffmpeg or libvlc, which many modern IP cameras require. Most users
will want to prevent the ZoneMinder package in the Fedora repos from
overwriting the ZoneMinder package in zmrepo, during a future dnf update. To
prevent that from happening you must edit /etc/yum.repos.d/fedora.repo
and /etc/yum.repos.d/fedora-updates.repo. Add the line "exclude=zoneminder*"
without the quotes under the [fedora] and [fedora-updates] blocks,
respectively.
2015-10-04 00:04:58 +08:00
Upgrades
========
2015-10-04 00:04:58 +08:00
1. Verify /etc/zm/zm.conf.
2015-10-04 00:04:58 +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.
2014-10-13 04:54:54 +08:00
2015-10-04 00:04:58 +08:00
For example, this will happen if you are using database account credentials
other than zmuser/zmpass.
2015-10-04 00:04:58 +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.
2016-06-01 20:30:41 +08:00
This version of zoneminder no longer requires you to make a similar change
to the credentials in /usr/share/zoneminder/www/api/app/Config/database.php
This now happens dynamically. Do *not* make any changes to this file.
2015-11-22 05:18:43 +08:00
2015-10-04 00:04:58 +08:00
2. Verify permissions of the zmuser account.
2015-10-04 00:04:58 +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:
2016-02-03 01:47:55 +08:00
mysql -uroot -p -e "show grants for zmuser@localhost;"
2013-10-06 08:41:28 +08:00
2015-10-04 00:04:58 +08:00
See step 2 of the Installation section to add missing permissions.
2013-10-06 08:41:28 +08:00
2015-10-04 00:04:58 +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.
2016-03-03 22:33:49 +08:00
Verify the SSL REquirements meet your needs. Read README.https if necessary.
2015-10-04 00:04:58 +08:00
4. Upgrade the database before starting ZoneMinder.
Most upgrades can be performed by executing the following command:
2013-10-06 08:41:28 +08:00
2015-10-04 00:04:58 +08:00
sudo zmupdate.pl
Recent versions of ZoneMinder don't require any parameters added to the
zmupdate command. However, if ZoneMinder complains, you may need to call
zmupdate in the following manner:
2013-10-06 08:41:28 +08:00
2013-10-10 07:35:39 +08:00
sudo zmupdate.pl --user=root --pass=<mysql_root_pwd> --version=<from version>
2015-10-04 00:04:58 +08:00
2017-04-15 22:23:28 +08:00
5. Now restart the web server then start zoneminder:
2015-10-04 00:04:58 +08:00
2017-04-15 22:23:28 +08:00
sudo systemctl restart httpd
2015-10-04 00:04:58 +08:00
sudo systemctl start zoneminder