2016-07-03 18:21:13 +08:00
|
|
|
Ubuntu
|
|
|
|
======
|
2014-07-13 20:25:30 +08:00
|
|
|
|
2015-12-19 04:08:56 +08:00
|
|
|
.. contents::
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
Easy Way: Ubuntu 16.04
|
|
|
|
----------------------
|
|
|
|
These instructions are for a brand new ubuntu 16.04 system which does not have ZM
|
|
|
|
installed.
|
2014-07-16 21:36:10 +08:00
|
|
|
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
It is recommended that you use an Ubuntu Server install and select the LAMP option
|
|
|
|
during install to install Apache, MySQL and PHP. If you failed to do this you can
|
|
|
|
achieve the same result by running:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2017-09-29 06:03:39 +08:00
|
|
|
sudo tasksel install lamp-server
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
During installation it will ask you to set up a master/root password for the MySQL.
|
2017-09-29 06:03:39 +08:00
|
|
|
Installing LAMP is not ZoneMinder specific so you will find plenty of resources to
|
|
|
|
guide you with a quick search.
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 1:** Either run commands in this install using sudo or use the below to become root
|
2015-08-15 08:00:11 +08:00
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
sudo -i
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 2:** Update Repos
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
.. topic :: Latest Release
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2018-01-21 07:34:37 +08:00
|
|
|
ZoneMinder is now part of the current standard Ubuntu repository, but
|
|
|
|
sometimes the official repository can lag behind. The find out check our
|
2018-01-21 07:46:15 +08:00
|
|
|
`releases page <https://github.com/ZoneMinder/zoneminder/releases>`_ for
|
|
|
|
the latest release.
|
2018-01-21 07:34:37 +08:00
|
|
|
|
|
|
|
Alternatively, the ZoneMinder project team maintains a ppa, which is updated immediately
|
|
|
|
following a new release of ZoneMinder. To use this repository instead of the
|
|
|
|
official Ubuntu repository, enter the following from the command line:
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
add-apt-repository ppa:iconnor/zoneminder
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
Update repo and upgrade.
|
2014-07-16 21:36:10 +08:00
|
|
|
|
2015-08-15 08:00:11 +08:00
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
apt-get update
|
|
|
|
apt-get upgrade
|
|
|
|
apt-get dist-upgrade
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 3:** Configure MySQL
|
2014-07-16 21:36:10 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
.. sidebar :: Note
|
2014-07-16 21:36:10 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
The MySQL default configuration file (/etc/mysql/mysql.cnf)is read through
|
|
|
|
several symbolic links beginning with /etc/mysql/my.cnf as follows:
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
| /etc/mysql/my.cnf -> /etc/alternatives/my.cnf
|
2016-07-03 18:21:13 +08:00
|
|
|
| /etc/alternatives/my.cnf -> /etc/mysql/mysql.cnf
|
|
|
|
| /etc/mysql/mysql.cnf is a basic file
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
Certain new defaults in MySQL 5.7 are currently causing some issues with ZoneMinder,
|
|
|
|
the workaround is to modify the sql_mode setting of MySQL.
|
|
|
|
|
|
|
|
To better manage the MySQL server it is recommended to copy the sample config file and
|
|
|
|
replace the default my.cnf symbolic link.
|
2015-08-24 01:20:04 +08:00
|
|
|
|
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
rm /etc/mysql/my.cnf (this removes the current symbolic link)
|
|
|
|
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
To change MySQL settings:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
nano /etc/mysql/my.cnf
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
In the [mysqld] section add the following
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
sql_mode = NO_ENGINE_SUBSTITUTION
|
|
|
|
|
|
|
|
CTRL+o then [Enter] to save
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
CTRL+x to exit
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
Restart MySQL
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
2016-07-05 05:52:37 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
systemctl restart mysql
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 4:** Install ZoneMinder
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
apt-get install zoneminder
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 5:** Configure the ZoneMinder Database
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
|
|
|
|
mysql -uroot -p -e "grant select,insert,update,delete,create,alter,index,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';"
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
**Step 6:** Set permissions
|
2016-07-03 18:21:13 +08:00
|
|
|
|
|
|
|
Set /etc/zm/zm.conf to root:www-data 740 and www-data access to content
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
chmod 740 /etc/zm/zm.conf
|
|
|
|
chown root:www-data /etc/zm/zm.conf
|
|
|
|
chown -R www-data:www-data /usr/share/zoneminder/
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 7:** Configure Apache correctly:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
a2enconf zoneminder
|
|
|
|
a2enmod cgi
|
|
|
|
a2enmod rewrite
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 8:** Enable and start Zoneminder
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
systemctl enable zoneminder
|
2016-07-05 05:15:01 +08:00
|
|
|
systemctl start zoneminder
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 9:** Edit Timezone in PHP
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
nano /etc/php/7.0/apache2/php.ini
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
Search for [Date] (Ctrl + w then type Date and press Enter) and change
|
2016-07-05 05:15:01 +08:00
|
|
|
date.timezone for your time zone, see [this](http://php.net/manual/en/timezones.php).
|
|
|
|
**Don't forget to remove the ; from in front of date.timezone**
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2015-12-19 04:08:56 +08:00
|
|
|
::
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
[Date]
|
|
|
|
; Defines the default timezone used by the date functions
|
|
|
|
; http://php.net/date.timezone
|
|
|
|
date.timezone = America/New_York
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
CTRL+o then [Enter] to save
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
CTRL+x to exit
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 10:** Reload Apache service
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2015-08-15 08:28:03 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
systemctl reload apache2
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 11:** Making sure ZoneMinder works
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
1. Open up a browser and go to ``http://hostname_or_ip/zm`` - should bring up ZoneMinder Console
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
2. (Optional API Check)Open up a tab in the same browser and go to ``http://hostname_or_ip/zm/api/host/getVersion.json``
|
2015-08-17 03:13:28 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
If it is working correctly you should get version information similar to the example below:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
{
|
|
|
|
"version": "1.29.0",
|
|
|
|
"apiversion": "1.29.0.1"
|
|
|
|
}
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
**Congratulations** Your installation is complete
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
PPA install may need some tweaking of ZMS_PATH in ZoneMinder options. `Socket_sendto or no live streaming`_
|
|
|
|
|
|
|
|
Easy Way: Ubuntu 14.x
|
2016-07-05 05:52:37 +08:00
|
|
|
---------------------
|
2015-12-19 04:08:56 +08:00
|
|
|
**These instructions are for a brand new ubuntu 14.x system which does not have ZM installed.**
|
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 1:** Either run commands in this install using sudo or use the below to become root
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
|
|
|
|
|
|
|
sudo -i
|
|
|
|
|
|
|
|
**Step 2:** Install ZoneMinder
|
2015-08-15 08:00:11 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
add-apt-repository ppa:iconnor/zoneminder
|
|
|
|
apt-get update
|
|
|
|
apt-get install zoneminder
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
(just press OK for the prompts you get)
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
**Step 3:** Set up DB
|
2015-08-24 01:20:04 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
|
2015-12-19 04:08:56 +08:00
|
|
|
mysql -uroot -p -e "grant select,insert,update,delete,create,alter,index,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';"
|
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
**Step 4:** Set up Apache
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
a2enconf zoneminder
|
|
|
|
a2enmod rewrite
|
|
|
|
a2enmod cgi
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 5:** Make zm.conf readable by web user.
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
sudo chown www-data:www-data /etc/zm/zm.conf
|
|
|
|
|
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 6:** Edit Timezone in PHP
|
|
|
|
|
|
|
|
::
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
nano /etc/php5/apache2/php.ini
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
Search for [Date] (Ctrl + w then type Date and press Enter) and change
|
2016-07-05 05:15:01 +08:00
|
|
|
date.timezone for your time zone, see [this](http://php.net/manual/en/timezones.php).
|
|
|
|
**Don't forget to remove the ; from in front of date.timezone**
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
[Date]
|
|
|
|
; Defines the default timezone used by the date functions
|
|
|
|
; http://php.net/date.timezone
|
|
|
|
date.timezone = America/New_York
|
|
|
|
|
|
|
|
CTRL+o then [Enter] to save
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
CTRL+x to exit
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 7:** Restart Apache service and start ZoneMinder
|
2015-08-15 08:00:11 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
service apache2 reload
|
2016-07-05 05:15:01 +08:00
|
|
|
service zoneminder start
|
|
|
|
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:15:01 +08:00
|
|
|
**Step 8:** Making sure ZoneMinder works
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
1. Open up a browser and go to ``http://hostname_or_ip/zm`` - should bring up ZoneMinder Console
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
2. (Optional API Check)Open up a tab in the same browser and go to ``http://hostname_or_ip/zm/api/host/getVersion.json``
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
If it is working correctly you should get version information similar to the example below:
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
::
|
2015-08-15 08:00:11 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
{
|
|
|
|
"version": "1.29.0",
|
|
|
|
"apiversion": "1.29.0.1"
|
|
|
|
}
|
2015-08-24 01:20:04 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
**Congratulations** Your installation is complete
|
2014-07-13 20:25:30 +08:00
|
|
|
|
2015-12-19 04:08:56 +08:00
|
|
|
Harder Way: Build Package From Source
|
2016-07-03 18:21:13 +08:00
|
|
|
-------------------------------------
|
2015-12-19 04:08:56 +08:00
|
|
|
(These instructions assume installation from source on a ubuntu 15.x+ system)
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
**Step 1:** Grab the package installer script
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
wget https://raw.githubusercontent.com/ZoneMinder/ZoneMinder/master/utils/do_debian_package.sh
|
|
|
|
chmod a+x do_debian_package.sh
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-02-22 23:18:46 +08:00
|
|
|
**Step 2:** Update the system
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
sudo apt-get update
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
**Step 3** Create the package
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
To build the latest master snapshot:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2017-04-25 05:01:24 +08:00
|
|
|
./do_debian_package.sh --snapshot=NOW --branch=master --type=local
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
To build the latest stable release:
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2017-04-25 05:01:24 +08:00
|
|
|
./do_debian_package.sh --snapshot=stable --type=local
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2017-04-25 05:01:24 +08:00
|
|
|
Note that the distribution will be guessed using ``lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'``
|
|
|
|
which simply extracts your distribution name - like "vivid", "trusty" etc. You
|
|
|
|
can always specify it using --distro=your distro name if you know it. As far as the script
|
2016-07-05 05:52:37 +08:00
|
|
|
goes, it checks if your distro is "trusty" in which case it pulls in pre-systemd
|
|
|
|
release configurations and if its not "trusty" it assumes its based on systemd
|
|
|
|
and pulls in systemd related config files.
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
(At the end the script will ask if you want to retain the checked out version of
|
|
|
|
ZoneMinder. If you are a developer and are making local changes, make sure you
|
|
|
|
select "y" so that the next time you do the build process mentioned here, it
|
|
|
|
keeps your changes. Selecting any other value than "y" or "Y" will delete the
|
|
|
|
checked out code and only retain the package)
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
This should now create a bunch of .deb files
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
**Step 4:** Install the package
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
sudo gdebi zoneminder_<version>_<arch>.deb
|
|
|
|
(example sudo gdebi zoneminder_1.29.0-vivid-2016012001_amd64.deb)
|
2015-12-19 04:08:56 +08:00
|
|
|
|
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
**This will report DB errors - ignore - you need to configure the DB and some other stuff**
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-01-22 22:39:19 +08:00
|
|
|
**Step 5:** Post install configuration
|
2015-12-19 04:08:56 +08:00
|
|
|
|
2016-07-05 05:52:37 +08:00
|
|
|
Now that you have installed from your own package you can resume following the
|
2016-07-05 05:15:01 +08:00
|
|
|
standard install guide for your version, start at the step after Install Zoneminder.
|
2014-07-13 20:25:30 +08:00
|
|
|
|
2016-07-03 18:21:13 +08:00
|
|
|
Hints
|
|
|
|
-----
|
|
|
|
Make sure ZoneMinder and APIs work with security
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
1. Enable OPT_AUTH in ZoneMinder
|
|
|
|
2. Log out of ZoneMinder in browser
|
2016-07-05 05:52:37 +08:00
|
|
|
3. Open a new tab in the *same browser* (important) and go to
|
|
|
|
``http://localhost/zm/api/host/getVersion.json`` - should give you "Unauthorized"
|
|
|
|
along with a lot more of text
|
2016-07-03 18:21:13 +08:00
|
|
|
4. Go to another tab in the SAME BROWSER (important) and log into ZM
|
|
|
|
5. Repeat step 3 and it should give you the ZM and API version
|
|
|
|
|
|
|
|
Socket_sendto or no live streaming
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
After you have setup your camera make sure you can view Monitor streams, if not
|
|
|
|
check some of the common causes:
|
|
|
|
|
|
|
|
* Check Apache cgi module is enabled.
|
|
|
|
* Check Apache /etc/apache2/conf-enabled/zoneminder.conf ScriptAlias matches PATH_ZMS.
|
|
|
|
|
|
|
|
ScriptAlias **/zm/cgi-bin** /usr/lib/zoneminder/cgi-bin
|
|
|
|
|
|
|
|
From console go to ``Options->Path`` and make sure PATH_ZMS is set to **/zm/cgi-bin/**\ nph-zms.
|
|
|
|
|
|
|
|
|
|
|
|
Changed Default DB User
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
If you have changed your DB login/password from zmuser/zmpass, you need to
|
2017-04-22 01:43:16 +08:00
|
|
|
update these values in zm.conf.
|
2016-07-03 18:21:13 +08:00
|
|
|
|
|
|
|
1. Edit zm.conf to change ZM_DB_USER and ZM_DB_PASS to the values you used.
|