HOW TO INSTALL ZONEMINDER, master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8

Installation of php 7.4

sudo su

apt install -y software-properties-common

add-apt-repository ppa:ondrej/php

apt update

 apt -y install php7.4


Installation of Zoneminder To install Zoneminder Please refer Connor’s web site

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

apt update

apt install zoneminder


rm /etc/mysql/my.cnf

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


sed -i "15i default_authentication_plugin= mysql_native_password" /etc/mysql/my.cnf


/etc/init.d/mysql start



mysql

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

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

FLUSH PRIVILEGES ;

quit

mysqladmin -uroot -p reload

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

sudo apt-get update

sudo apt install zoneminder

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

mysqladmin -uroot -p reload

chmod 740 /etc/zm/zm.conf

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

adduser www-data video

a2enmod cgi

a2enconf zoneminder

a2enmod rewrite

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

systemctl enable zoneminder

service zoneminder start

service apache2 reload

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

Note:-If you want to install docker-zonemider ,please refer the following link

bkjaya1952/docker-zoneminder-master-php7.4-mysql8

Comments

Popular posts from this blog

How to install ivms4200-linux docker image on Ubuntu 19.10 (eoan)

how to use bkjaya1952/smath-studio (a docker repository of SMath Studio-0.99.7030) on Ubuntu 19.10 (eoan)

A Solution to the installation problem of ZONEMINDER,v1.33.14.ON UBUNTU 19.10 (Eoan Ermine) using Mriadb instead of mysql-server-8.0