Difference between revisions of "Dummies Guide"
Bkjaya1952 (talk | contribs) |
Bkjaya1952 (talk | contribs) m (Bkjaya1952 moved page Dummies Guide to ZoneMinder Wiki:Dummies Guide: for publishing) |
(No difference)
|
Revision as of 03:41, 4 January 2020
How to install Zoneminder , ( v1.33.16.) with Mysql 8 on Ubuntu 19.10
Since the official Zoneminder eoan has Dependency wait on lgw01-amd64-051 , We will have to install Zoneminder disco on Ubuntu 19.10.
First of all we will have to install mysql-server-8 on Ubuntu 19.10 and enable mysql_native_password
Installation can be done using the synaptic package manager .
Then open the Ubuntu terminal
sudo su
gedit /etc/mysql/my.cnf
Then enter the following line below [mysqld] on the opened my.cnf file and save the file
[mysqld]
default_authentication_plugin= mysql_native_password
Then on the Ubuntu terminal
systemctl restart mysql
Then enter the following commands on the terminal to set root password for mysql server
mysql CREATE USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your password';
mysql GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
mysql FLUSH PRIVILEGES ;
systemctl restart mysql
Then install Zoneminder
The Zoneminder disco deb file is downloaded from https://launchpad.net/~iconnor/+archive/ubuntu/zoneminder-master/+build/18492553/+files/zoneminder_1.33.16~20191229135312-disco_amd64.deb
GDebi Package Installer can be used to install the Zoneminder disco deb file
Before installing Zoneminder disco deb file to overcome dependency issues we will have to download libmysqlclient20and install first using the GDebi Package Installer.
Then install Zoneminder disco deb file that we have downloaded .
Creating user and zmpass
Open the Ubuntu terminal and enter following 5 commands
mysql
CREATE USER 'zmuser'@localhost IDENTIFIED WITH mysql_native_password BY 'zmpass';
GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES ;
mysqladmin -uroot -p reload
It was observed that there are missing *.ini files in /etc/php/7.3/mods-available/ which will make problems in getting zoneminder Console.
Therefore the necessary files have to be copied from /usr/share/php7.3-mysql/mysql
sudo cp /usr/share/php7.3-mysql/mysql/*.ini /etc/php/7.3/mods-available/
sudo service apache2 reload
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
adduser www-data video
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
systemctl enable zoneminder
service zoneminder start
sudo service apache2 reload
Open zoneminder web console (http://localhost/zm/)