20210628 - Upgrade of php fixed the page rendering issue.

Welcome to the Slackware Documentation Project

This is an old revision of the document!

Install ZoneMinder on Slackware

(written for Slackware 14.2 and ZoneMinder 1.31.1 on Slackbuilds)

1) Setup MariaDB

2) Install FFMPEG (from Slackbuilds).

3) Install ZoneMinder (from Slackbuilds).

3a) If you want to use ONVIF cameras:

  • Install perl-Data-UUID (from Slackbuilds)
  • Install other Perl modules via cpan:
        perl -MCPAN -e 'install Class::Std::Fast, Data::Dump, SOAP::WSDL::Transport::HTTP, IO::Socket::Multicast'

4) Setup ZM database

    mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql 
    mysql -u root -p 
      grant select,insert,update,delete,lock tables,alter,create on zm.* to 'zmuser'@localhost identified by 'zmpass'; #NOTE: zmuser and zmpass is found in /etc/zm.conf
      select User,Host from mysql.user;  #Check and make zmuser was created

The SELECT command (above) should reply:

  MariaDB [(none)]> select User,Host from mysql.user;
  | User   | Host       |
  | root   |  |
  | root   | ::1        |
  |        | localhost  |
  | root   | localhost  |
  | zmuser | localhost  |
  |        | zoneminder |
  | root   | zoneminder |

5) Configure Apache (enable PHP) and start it:

  sed -i 's|#Include /etc/httpd/mod_php.conf|Include /etc/httpd/mod_php.conf|' /etc/httpd/httpd.conf
  sed -i 's|DirectoryIndex index.html|DirectoryIndex index.html index.htm index.pl index.php|' /etc/httpd/httpd.conf
  sed -i 's|;date.timezone =|date.timezone = America/Chicago|' /etc/php.ini
  #**** CHANGE America/Chicago to your correct timezone ****

6) Add “Include /etc/httpd/extra/zm.conf” to httpd.conf

sed -i '|Include /etc/httpd/extra/httpd-vhosts.conf|a Include /etc/httpd/extra/zm.conf' /etc/httpd/httpd.conf

7) Start httpd

chmod 755 /etc/rc.d/rc.httpd; /etc/rc.d/rc.httpd start

8) Start ZoneMinder:

chmod 755 /etc/rc.d/rc.zm; /etc/rc.d/rc.zm start

Installation should be complete, open a web browser and go to:



In Other Languages
Translations of this page?:
QR Code
QR Code howtos:software:install_zoneminder (generated for current page)