How to Install ZoneMinder Master on UBUNTU 20.04 LTS (Focal Fossa)

From ZoneMinder Wiki
Revision as of 10:03, 25 March 2021 by Bkjaya1952 (talk | contribs)
Jump to navigationJump to search

How to Install ZoneMinder-Master ,v 1.35.4 on UBUNTU 20.04 LTS ( Focal Fossa)


sudo su


sudo add-apt-repository ppa:iconnor/zoneminder-master


sudo apt update


apt install zoneminder


Configuring Mysql and Changing root password


rm /etc/mysql/my.cnf


cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf


/etc/init.d/mysql start


mysql


ALTER USER 'root'@'localhost' IDENTIFIED BY 'yourpassword';


FLUSH PRIVILEGES ;


quit


Creating zm sql data base


mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql


mysql


CREATE USER 'zmuser'@localhost IDENTIFIED BY 'zmpass';


(If CREATE does not work try with ALTER )


GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;


FLUSH PRIVILEGES ;


quit


mysqladmin -uroot -p reload


(Note:- Here use the 'yourpassword' created for 'root'@'localhost' earlier )


Configuring Zoneminder


chmod 740 /etc/zm/zm.conf


chown root:www-data /etc/zm/zm.conf


adduser www-data video


a2enmod cgi


a2enconf zoneminder


a2enmod rewrite


a2enmod headers


a2enmod expires


Starting Zoneminder and apache


systemctl enable zoneminder


service zoneminder start


service apache2 reload


Open zoneminder web console (http://localhost/zm/)