Difference between revisions of "How to Install ZoneMinder-Master ,latest (revised) on UBUNTU 20.04 LTS ( Focal Fossa)"

From ZoneMinder Wiki
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Installing Zoneminder-master'''
'''How to Install ZoneMinder-Master ,latest (revised) on UBUNTU 20.04 LTS ( Focal Fossa)'''




<code>sudo su  
<code>sudo su


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


sudo apt update  
sudo apt-get update


apt install zoneminder </code>
apt install zoneminder</code>




'''Starting mysql8'''
'''Configuring Mysql'''




<code>/etc/init.d/mysql start</code>
<code>/etc/init.d/mysql start


mysql -e "drop database zm;"


'''Configuring Zoneminder'''
mysql -uroot --password=""< /usr/share/zoneminder/db/zm_create.sql 2>/dev/null



<code>chmod 740 /etc/zm/zm.conf
mysql -e "ALTER USER 'zmuser'@localhost IDENTIFIED BY 'zmpass';"


chown root:www-data /etc/zm/zm.conf 
mysql -e "GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;"


adduser www-data
mysql -e "FLUSH PRIVILEGES ;"</code>


video a2enmod cgi 


a2enconf zoneminder
'''Configuring Zoneminder
'''


a2enmod rewrite 
<code>chmod 740 /etc/zm/zm.conf


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


a2enmod expires </code>
adduser www-data video


a2enmod cgi


'''Starting Zoneminder and apache'''
a2enconf zoneminder
 
a2enmod rewrite
 
a2enmod headers


a2enmod expires</code>


<code>systemctl enable zoneminder


service zoneminder start 
'''Starting Zoneminder and apache'''


service apache2 reload</code> 


Open zoneminder web console (http://localhost/zm/)
<code>systemctl enable zoneminder


service zoneminder start


Note:- If you want to re configure mysql 8 data base , Please refer the following link .
service apache2 reload</code>




[https://bkjaya.wordpress.com/2020/11/16/how-to-install-zoneminder-master-latest-on-ubuntu-20-04-lts-focal-fossa/  How to Install ZoneMinder-Master ,latest on UBUNTU 20.04 LTS ( Focal Fossa)]
Open zoneminder web console (http://localhost/zm/)

Latest revision as of 00:41, 16 May 2021

How to Install ZoneMinder-Master ,latest (revised) on UBUNTU 20.04 LTS ( Focal Fossa)


sudo su

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

sudo apt-get update

apt install zoneminder


Configuring Mysql


/etc/init.d/mysql start

mysql -e "drop database zm;"

mysql -uroot --password=""< /usr/share/zoneminder/db/zm_create.sql 2>/dev/null

mysql -e "ALTER USER 'zmuser'@localhost IDENTIFIED BY 'zmpass';"

mysql -e "GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;"

mysql -e "FLUSH PRIVILEGES ;"


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/)