Howto Install Zoneminder on Centos 7 Quick Summary

Quick guide to install Zoneminder on Centos 7

Install Centos Using minimal

yum install update

Add RPM Fusion REPO

yum localinstall --nogpgcheck 

Install zoneminder

yum install zoneminder

Install MariaDB

yum install mariadb-server

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 https://server-ip/zm

3 Replies to “Howto Install Zoneminder on Centos 7 Quick Summary”

  1. Thanks so much for this blog on setting up Zoneminder with CentOS 7. I followed the README file in the ZoneMinder package, but your site was much easier to follow with bold commands.

    I wanted to share a few minor changes to your instructions, not an issue for seasoned linux users, but could stump beginners.

    change ---> yum install mariadb
    to -------> yum install mariadb-server

    (looks like font issue)
    change ---> firewall-cmd –permanent –add-service=https
    to -------> firewall-cmd –-permanent –-add-service=https

    (looks like font issue)
    change ---> firewall-cmd –reload
    to -------> firewall-cmd –-reload

    (just change to https since you opened https on firewall)
    change ---> Access Zoneminder via http://server-ip/zm
    to -------> Access Zoneminder via https://server-ip/zm

    Again - much praise for sharing!


  2. Great guide! I had a bit of trouble accessing Zoneminder, I received a 404 error. A little Googling solved the problem. I needed to create a symbolic link:

    sudo ln -s /etc/zm/www/zoneminder.httpd.conf /etc/httpd/conf.d/zoneminder.conf

    Then restart Apache:

    sudo service httpd restart

    After this, Zoneminder was running and ready to configure my cameras.

Comments are closed.