[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
This is an old revision of the document!
Install ZoneMinder on Slackware
(written for Slackware 14.2 and ZoneMinder 1.31.1 on Slackbuilds)
AS ROOT -
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 quit
The SELECT command (above) should reply:
MariaDB [(none)]> select User,Host from mysql.user; +--------+------------+ | User | Host | +--------+------------+ | root | 127.0.0.1 | | 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:
http://YOUR_ZM_MACHINE/zm
Sources
* Originally written by arfon