How To Install Zoneminder [Ubuntu]

Install Apache2

$sudo systemctl start apache2.service

start – restart – reload – status -> Ctl+C

Install MySQL

$sudo apt-get install apache

$hostname -I | awk'{print $1}’

$sudo ufw app list

$sudo su

#lsb_release -a

#sudo apt-get install tasksel

#tasksel install lamp-server

Add Repository For Zoneminder

#add-apt-repository ppa:iconnor/zonminder-1.32

#apt-get update

#apt-get upgrade

#apt-get dist-upgrade

Configure MySQL

#rm /etc/mysql/my.cnf

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

#nano /etc/mysql/my.cnf

Add in my.cnf -> sql_mode = NO_ENGINE_SUBSTITUTION

Install Zoneminder

#apt-get install zoneminder python-babel-localedata

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

#mysql -uroot -p -e “‘grant locak tables,alter,drop,select,insert,delete,create,index,alter routine,create routine,trigger,execute on zm.* to ‘zmuser’@localhost identified by ‘zmpass’;”

Permission

#chmod 740 /etc/zm/zm.conf

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

#chown -R www-data:www-data /usr/share/zoneminder

#a2enconf zoneminder

#azenmod cgi

#azenmod rewrite

#systemctl enable zoneminder

#nano /etc/php/7.2/apache2/php.ini

-> search-> timezone -> America/Los_Angeles

#service apache2 reload

#server zoneminder start

-> reload – start – status -> Ctl+C