|
|
Line 1: |
Line 1: |
|
| |
|
| | | https://wiki.zoneminder.com/HOW_TO_INSTALL_ZONEMINDER-master_ON_UBUNTU_19.10_(eoan),_with_php_7.4_%26_mysql_8 |
| '''HOW TO INSTALL ZONEMINDER-master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8
| |
| '''
| |
| | |
| '''Installation of php 7.4'''
| |
| | |
| <code>sudo su apt install -y software-properties-common
| |
| | |
| add-apt-repository ppa:ondrej/php
| |
| | |
| apt update</code>
| |
| | |
| '''Installation of MySQL-server'''
| |
| | |
| <code>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</code> | |
| | |
| '''Installation of Zoneminder To install Zoneminder Please refer Connor’s web site'''
| |
| | |
| <code>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
| |
| | |
| systemctl enable zoneminder
| |
| | |
| service zoneminder start
| |
| | |
| service apache2 reload</code>
| |
| | |
| Open zoneminder web console (http://localhost/zm/)
| |