Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Добавление нужных репозиториев с пакетами:

Добавление репозиториев
  add-apt-repository ppa:iconnor/zoneminder
  add-apt-repository ppa:iconnor/zoneminder-1.32
  add-apt-repository ppa:iconnor/zoneminder-master

В файле /etc/mysql/conf.d/mysql.cnf добавить

[mysqld]
sql_mode = NO_ENGINE_SUBSTITUTION

Настраиваем Mysql

rm /etc/mysql/my.cnf
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
systemctl restart mysql

Установка Zoneminder

apt-get install zoneminder

Добавление базы данных:

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"

mysqladmin -uroot -p reload


Настройка Apache:

chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown -R www-data:www-data /usr/share/zoneminder/
chown -R www-data:www-data /var/cache/zoneminder/


adduser www-data video


a2enmod cgi
a2enmod rewrite
a2enconf zoneminder

systemctl enable zoneminder
systemctl start zoneminder


В файле /etc/php/7.0/apache2/php.ini редактируем временную зону на системную

[Date]
date.timezone = Europe/Kiev

Перезагружаем Apache

systemctrl reload apache2



  • No labels