Difference between revisions of "File:Zm-php 7.4-mysql 8.pdf"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 1: Line 1:
HOW TO INSTALL ZONEMINDER, v1.34.0. ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8
'''HOW TO INSTALL ZONEMINDER, v1.34.0. ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8
'''
'''Installation of php 7.4'''


Installation of php 7.4
sudo su apt install -y software-properties-common


sudo su apt install -y software-properties-common
add-apt-repository ppa:ondrej/php  
add-apt-repository ppa:ondrej/php  
apt update  
apt update  


Installation of MySQL-server
'''Installation of MySQL-server'''


apt install mysql-server
apt install mysql-server
rm /etc/mysql/my.cnf
rm /etc/mysql/my.cnf
cp /etc/mysql/mysql.conf.d/mysqld.cnf /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
sed -i "15i default_authentication_plugin= mysql_native_password" /etc/mysql/my.cnf
/etc/init.d/mysql start
/etc/init.d/mysql start


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


mysql
mysql
CREATE USER 'zmuser'@localhost IDENTIFIED WITH mysql_native_password BY 'zmpass';
CREATE USER 'zmuser'@localhost IDENTIFIED WITH mysql_native_password BY 'zmpass';
GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES ;
FLUSH PRIVILEGES ;
quit
quit
mysqladmin -uroot -p reload
mysqladmin -uroot -p reload


add-apt-repository ppa:iconnor/zoneminder-master  
add-apt-repository ppa:iconnor/zoneminder-master  
apt-get update  
apt-get update  
apt install zoneminder
apt install zoneminder


mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysqladmin -uroot -p reload
mysqladmin -uroot -p reload
chmod 740 /etc/zm/zm.conf
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
adduser www-data video
adduser www-data video
a2enmod cgi
a2enmod cgi
a2enconf zoneminder
a2enconf zoneminder
a2enmod rewrite
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
chown -R www-data:www-data /usr/share/zoneminder/
systemctl enable zoneminder
systemctl enable zoneminder
service zoneminder start
service zoneminder start
service apache2 reload
service apache2 reload


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


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


[https://hub.docker.com/r/bkjaya1952/docker-zoneminder-master-php7.4-mysql8
[https://hub.docker.com/r/bkjaya1952/docker-zoneminder-master-php7.4-mysql8
]
]

Revision as of 13:19, 4 February 2020

HOW TO INSTALL ZONEMINDER, v1.34.0. 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

Installation of MySQL-server

apt install mysql-server

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

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

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

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

apt-get update

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

[https://hub.docker.com/r/bkjaya1952/docker-zoneminder-master-php7.4-mysql8 ]

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current13:07, 4 February 2020 (54 KB)Bkjaya1952 (talk | contribs)HOW TO INSTALL ZONEMINDER, v1.34.0. ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8

There are no pages that use this file.