« ZoneMinder » : différence entre les versions
Aller à la navigation
Aller à la recherche
| Ligne 63 : | Ligne 63 : | ||
<font color =grey>...</font> | <font color =grey>...</font> | ||
</IfModule> | </IfModule> | ||
<font color =grey>...</font> | |||
# vi /etc/apache2/sites-enabled/default-ssl.conf | |||
<IfModule mod_ssl.c> | |||
<VirtualHost _default_:443 <font color = green>*:30000 *:30002 *:30004</font> <font color =grey>...</font> > | |||
ServerAdmin webmaster@localhost | |||
<font color =grey>...</font> | <font color =grey>...</font> | ||
# service apache2 restart | # service apache2 restart | ||
Version du 5 mai 2021 à 11:20
# apt update && apt upgrade
# apt install software-properties-common
# add-apt-repository ppa:iconnor/zoneminder-master
# apt install zoneminder
# adduser www-data video
# mysql_secure_installation
# vi /etc/zm/zm.conf
# ZoneMinder database password ZM_DB_PASS=zmpass
# mysql -U
mysql> ALTER USER 'zmuser'@'localhost' IDENTIFIED BY 'mdpnouveau'; mysql> FLUSH PRIVILEGES; mysql> exit
# vi /etc/php/7.4/apache2/php.ini
[Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = Europe/Madrid
# timedatectl set-timezone Europe/Madrid
# a2enconf zoneminder # a2enmod rewrite # a2enmod headers # a2enmod expires # a2enmod ssl # a2ensite default-ssl # systemctl enable zoneminder # service zoneminder start # service apache2 reload
multicast
MIN_STREAMING_PORT 30000
# vi /etc/apache2/ports.conf
...
<IfModule ssl_module>
Listen 443
Listen 30000
Listen 30001
Listen 30002
Listen 30003
Listen 30004
...
...
</IfModule>
...
# vi /etc/apache2/sites-enabled/default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443 *:30000 *:30002 *:30004 ... >
ServerAdmin webmaster@localhost
...
# service apache2 restart