Difference between revisions of "Debian 10 Buster with Zoneminder 1.36.x from ZM Repo"

From ZoneMinder Wiki
Jump to navigationJump to search
(No difference)

Revision as of 19:02, 9 September 2019

Debian 10 Buster with Zoneminder 1.33.x from the ZM Master Repro

This install procedure was developed to use the Debian package developed by iconnor. This is from the Master development version of Zoneminder 1.33.x but is a bit more stable than Zoneminder 1.32.x version and, in my opinion, works better and is kept up to date better than Zoneminder on Debian repros.

To begin, install Debian 10 (Buster) along with Apache2, PHP and your favorite database (Mariadb recommended).

Add the repro

sudo nano /etc/apt/sources.list

Add the following line to the end of the file

deb https://zmrepo.zoneminder.com/debian/master buster/

CTRL+o then [Enter] to save

CTRL+x to exit

Install the following and retrieve the key from the repro

sudo apt install apt-transport-https gnupg
wget -O - https://zmrepo.zoneminder.com/debian/archive-keyring.gpg | sudo apt-key add -
sudo apt update

Install Zoneminder

sudo apt install zoneminder

Enable Zoneminder

sudo systemctl enable zoneminder.service

Enable Apache Modules

sudo a2enconf zoneminder
sudo a2enmod rewrite
sudo a2enmod cgi 

Add your timezone to PHP

sudo nano /etc/php/7.3/apache2/php.ini

Search for [Date] (Ctrl + w then type Date and press Enter) and change date.timezone for your time zone. Don’t forget to remove the ; from in front of date.timezone.

[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

CTRL+x to exit

Restart Apache and start Zoneminder

sudo service apache2 reload
sudo systemctl start zoneminder