Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:software:install_zoneminder [2018/05/20 08:18 (UTC)]
arfon created by arfon
— (current)
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> 
-====== Install ZoneMinder on Slackware ====== 
-(written for Slackware 14.2 and ZoneMinder 1.31.1 on Slackbuilds) \\ 
  
-AS ROOT - \\ 
- 1) Setup MariaDB ​ 
-     * [[howtos:​databases:​install_mariadb_on_slackware|howtos:​databases:​install_mariadb_on_slackware]] 
- 
- 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: 
-<​code>​ 
-        perl -MCPAN -e '​install Class::​Std::​Fast,​ Data::Dump, SOAP::​WSDL::​Transport::​HTTP,​ IO::​Socket::​Multicast'​ 
-</​code>​ 
- 
- 4) Setup ZM database 
-<​code>​ 
-    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 
-</​code>​ 
-The SELECT command (above) should reply: 
-<​code>​ 
-  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 | 
-  +--------+------------+ 
-</​code>​ 
- 
- 5) Configure Apache (enable PHP) and start it: 
-<​code>​ 
-  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 **** 
-</​code>​ 
- 
- 6) Add "​Include /​etc/​httpd/​extra/​zm.conf"​ to httpd.conf 
-<​code>​ 
-sed -i '​|Include /​etc/​httpd/​extra/​httpd-vhosts.conf|a Include /​etc/​httpd/​extra/​zm.conf'​ /​etc/​httpd/​httpd.conf 
-</​code>​ 
- 
- 7) Start httpd 
-<​code>​ 
-chmod 755 /​etc/​rc.d/​rc.httpd;​ /​etc/​rc.d/​rc.httpd start 
-</​code>​ 
- 
- 8) Start ZoneMinder: 
-<​code>​ 
-chmod 755 /​etc/​rc.d/​rc.zm;​ /​etc/​rc.d/​rc.zm start 
-</​code>​ 
- 
-Installation should be complete, open a web browser and go to: 
- 
-  http://​YOUR_ZM_MACHINE/​zm 
- 
- 
-====== Sources ====== 
-<!-- If you are copying information from another source, then specify that source --> 
-<!-- * Original source: [[http://​some.website.org/​some/​page.html]] --> 
-<!-- Authors are allowed to give credit to themselves! --> 
- * Originally written by [[wiki:​user:​arfon | arfon]] 
-<!-- * Contributions by [[wiki:​user:​yyy | User Y]] --> 
- 
-<!-- Please do not modify anything below, except adding new tags.--> 
-<!-- You must remove the tag-word "​template"​ below before saving your new page --> 
-{{tag>​howtos software ZoneMinder multimedia author_arfon}} 

In Other Languages
QR Code
QR Code howtos:software:install_zoneminder (generated for current page)