Quick guide to install Zoneminder on Centos 7 and Centos 8 Stream
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-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
sudo ln -s /etc/zm/www/zoneminder.httpd.conf /etc/httpd/conf.d/zoneminder.conf
Restart Apache:
sudo service httpd restart