Sunday, 7 January 2018

Zoneminder on Centos 7 Howto

Quick guide to install Zoneminder on Centos 7

Install Centos Using minimal
yum install update

Add RPM Fusion REPO
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm 

Install zoneminder
yum install zoneminder

Install MariaDB
yum install mariadb

Enable and start service
systemctl enable mariadb
systemctl start  mariadb.service

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

Edit date.timezone in /etc/php.ini

Disable SELinux
setenforce 0
edit /etc/selinux/config
change "enforcing" to "disabled"

Install mod_ssl
yum install mod_ssl

Enable and start httpd service
systemctl enable httpd
systemctl start httpd

Enable and start zoneminder service
systemctl enable zoneminder
systemctl start zoneminder

Open https in firewalld
firewall-cmd --permanent --add-service=https
firewall-cmd --reload

Access Zoneminder via http://server-ip/zm

1 comment:

  1. You're missing these commands which makes apache fail to load the zm site:
    pushd /etc/httpd/conf.d
    ln -s /etc/zm/www/zoneminder.httpd.conf

    ReplyDelete