Zoneminder (Ubuntu 18.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 71: Zeile 71:


<pre>
<pre>
...
zmaudit.pl -c
</pre>
 
<pre>
DBI connect('database=;host=','',...) failed: Access denied for user 'pi'@'localhost' (using password: NO) at /usr/share/perl5/ZoneMinder/Config.pm line 117.
Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.
</pre>
</pre>



Version vom 30. Mai 2020, 11:59 Uhr

Voraussetzungen

LAMP-Server (Installation PHP ist unter Apache HTTP beschrieben):

Apache HTTP

MariaDB

Installation

sudo apt-get install zoneminder vlc-plugin-base
sudo systemctl enable zoneminder.service

Konfiguration

MySQL

sudo mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
sudo mysql -uroot -p -e "grant all on zm.* to 'zmuser'@localhost identified by 'zmpass';"
sudo mysqladmin -uroot -p reload 

Apache HTTP

sudo chmod 740 /etc/zm/zm.conf 
sudo chown root:www-data /etc/zm/zm.conf
sudo chown -R www-data:www-data /var/cache/zoneminder/
sudo adduser www-data video
sudo a2enmod cgi
sudo a2enmod rewrite
sudo a2enconf zoneminder
sudo vi /etc/php/7.3/apache2/php.ini
date.timezone = Europe/Vienna
sudo systemctl restart apache2

Links

https://wiki.zoneminder.com/Raspberry_Pi_4_-_Raspbian#Install_and_Configure_Zoneminder


Neustart

sudo systemctl start zoneminder.service
sudo systemctl status zoneminder.service

Probleme

['zmaudit.pl -c' exited abnormally, exit status 255]

zmaudit.pl -c
DBI connect('database=;host=','',...) failed: Access denied for user 'pi'@'localhost' (using password: NO) at /usr/share/perl5/ZoneMinder/Config.pm line 117.
Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 166.

Links

https://zoneminder.com/

https://github.com/ZoneMinder/zoneminder

https://wiki.zoneminder.com/Hardware_Compatibility_List


Zurück zu Zoneminder