Difference between revisions of "HOW TO INSTALL ZONEMINDER-master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8"
Bkjaya1952 (talk | contribs) (Created page with " '''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-comm...") |
Bkjaya1952 (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
'''HOW TO INSTALL ZONEMINDER-master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8 | '''HOW TO INSTALL ZONEMINDER-master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8 | ||
''' | ''' | ||
'''At the moment PHP mysqli connector does not have support for caching_sha2_password. We will have to use mysql_native_password until the PHP 7.4 is revised to support caching_sha2_password.''' | |||
'''Installation of php 7.4''' | '''Installation of php 7.4''' | ||
<code>sudo su apt install -y software-properties-common | <code>sudo su apt install -y software-properties-common | ||
Line 10: | Line 15: | ||
add-apt-repository ppa:ondrej/php | add-apt-repository ppa:ondrej/php | ||
apt update | apt update | ||
apt -y install php7.4</code> | |||
<code>apt install | |||
'''Installation of Zoneminder To install Zoneminder Please refer Connor’s web site''' | |||
<code>add-apt-repository ppa:iconnor/zoneminder-master | |||
apt-get update | |||
apt install zoneminder | |||
rm /etc/mysql/my.cnf | rm /etc/mysql/my.cnf | ||
Line 24: | Line 37: | ||
/etc/init.d/mysql start</code> | /etc/init.d/mysql start</code> | ||
<code>mysql | <code>mysql | ||
Line 38: | Line 50: | ||
mysqladmin -uroot -p reload | 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 | |||
systemctl enable zoneminder | systemctl enable zoneminder | ||
Line 61: | Line 69: | ||
Open zoneminder web console (http://localhost/zm/) | Open zoneminder web console (http://localhost/zm/) | ||
Note:- If you get an error message on timezone in logs , you will have to enter the timezone in /etc/php/7.4/apache2/php.ini |
Latest revision as of 03:12, 27 May 2020
HOW TO INSTALL ZONEMINDER-master ON UBUNTU 19.10 (eoan), with php 7.4 & mysql 8
At the moment PHP mysqli connector does not have support for caching_sha2_password. We will have to use mysql_native_password until the PHP 7.4 is revised to support caching_sha2_password.
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-get 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
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
adduser www-data video
a2enmod cgi
a2enconf zoneminder
a2enmod rewrite
systemctl enable zoneminder
service zoneminder start
service apache2 reload
Open zoneminder web console (http://localhost/zm/)
Note:- If you get an error message on timezone in logs , you will have to enter the timezone in /etc/php/7.4/apache2/php.ini