OPERATING SYSTEMSOS Linux

How to install Zoneminder on Ubuntu Server 16.04

UPDATED VIDEO HERE……

This video is a tutorial on how to install Zoneminder on Ubuntu server 16.04.

Here is a great link that has a lot of information on installing zoneminder

https://wiki.zoneminder.com/Ubuntu_Server_16.04_64-bit_with_Zoneminder_1.29.0_the_easy_way

Prequisites needed are
– Apache2
– Mysql
– PHP

As always make sure your system is up to date….
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

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

Edit the mysql config file…..
sudo vi /etc/mysql/my.cnf
(Under mysqld section add….)
sql_mode = NO_ENGINE_SUBSTITUTION

sudo systemctl restart mysql

Install zoneminder…..
sudo apt-get install zoneminder php-gd

mysql -uroot -p (NEED ANGLE BRACKET HERE) /usr/share/zoneminder/db/zm_create.sql

mysql -uroot -p -e “grant all on zm.* to ‘zmuser’@localhost identified by ‘zmpass’;”

mysqladmin -uroot -p reload

sudo chmod 740 /etc/zm/zm.conf

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

sudo adduser www-data video

sudo a2enmod cgi
sudo a2enconf zoneminder
sudo a2enmod rewrite

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

sudo vi /etc/apache2/conf-available/zoneminder.conf
– Add a – before Indexes and a + before FollowSymLinks
– Add this at bottom….
(ANGLE BRACKET)Directory /usr/share/zoneminder/www/api(ANGLE BRACKET)
AllowOverride All
(ANGLE BRACKET)/Directory(ANGLE BRACKET)

sudo systemctl enable zoneminder
sudo systemctl start zoneminder

sudo vi /etc/php/7.0/apache2/php.ini
– add your timezone
date.timezone =

sudo systemctl restart apache2

Now you should be able to visit your zoneminder server web gui
http://(YOUR IP ADDRESS)/zm

If you like the video, please subscribe to my channel. If you have any questions, hit me up in the comments below. Please let me know if there are any tutorials you would like to see.

source

ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *