Difference between revisions of "How to Install ZoneMinder, v1.34.12. on UBUNTU 20.04 LTS ( Focal Fossa)"
Bkjaya1952 (talk | contribs) (Created page with "'''Installation of Zoneminder To install Zoneminder v1.34.12. (stable)Please refer Connor’s web site Open the terminal and run following commands. ''' [code]sudo su sudo...") |
Bkjaya1952 (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
''' | ''' | ||
<code>sudo su | |||
Line 11: | Line 11: | ||
apt install zoneminder | apt install zoneminder</code> | ||
Line 17: | Line 17: | ||
<code>rm /etc/mysql/my.cnf | |||
Line 23: | Line 23: | ||
/etc/init.d/mysql start | /etc/init.d/mysql start</code> | ||
<code>mysql | |||
Line 35: | Line 35: | ||
quit | quit</code> | ||
Line 41: | Line 41: | ||
''' | ''' | ||
<code>mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql</code> | |||
<code>mysql | |||
CREATE USER 'zmuser'@localhost IDENTIFIED BY 'zmpass'; | CREATE USER 'zmuser'@localhost IDENTIFIED BY 'zmpass'; | ||
Line 54: | Line 55: | ||
FLUSH PRIVILEGES ; | FLUSH PRIVILEGES ; | ||
quit | quit </code> | ||
<code>mysqladmin -uroot -p reload</code> | |||
'''Configuring Zoneminder''' | '''Configuring Zoneminder''' | ||
<code>chmod 740 /etc/zm/zm.conf | |||
chown root:www-data /etc/zm/zm.conf | chown root:www-data /etc/zm/zm.conf | ||
Line 78: | Line 78: | ||
a2enmod headers | a2enmod headers | ||
a2enmod expires | a2enmod expires<c/ode> | ||
'''Starting Zoneminder and apache | |||
''' | |||
systemctl enable zoneminder | <code>systemctl enable zoneminder | ||
service zoneminder start | service zoneminder start | ||
service apache2 reload | service apache2 reload</code> | ||
Open zoneminder web console (http://localhost/zm/) | Open zoneminder web console (http://localhost/zm/) |
Latest revision as of 03:10, 27 May 2020
Installation of Zoneminder To install Zoneminder v1.34.12. (stable)Please refer Connor’s web site Open the terminal and run following commands.
sudo su
sudo add-apt-repository ppa:iconnor/zoneminder-1.34
sudo apt-get 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
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<c/ode>
Starting Zoneminder and apache
systemctl enable zoneminder
service zoneminder start
service apache2 reload
Open zoneminder web console (http://localhost/zm/)