User Tools

Site Tools


tech:zoneminder:start

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech:zoneminder:start [2016/08/04 10:35]
rk4n3
tech:zoneminder:start [2021/08/27 20:49] (current)
rk4n3
Line 1: Line 1:
-====== ​Zenteknix Technical Information:​ ZoneMinder  ​======+<typo fs:​xx-large;​ fw:​bold;>​ZoneMinder</​typo>​ \\ 
 +====== ​Installation on Ubuntu ​====== 
 +Original article at: [[https://​wiki.zoneminder.com/​Ubuntu_Server_18.04_64-bit_with_Zoneminder_1.30.4_the_easy_way]] \\ 
 +  * Install Ubuntu 
 +  * Set up storage ... 
 +    * MariaDB storage at ''/​var/​lib/​mysql''​ 
 +    * Apache storage at ''/​var/​www''​ // (or ''/​var/​www/​html''​) // 
 +    * ZoneMinder data/video storage under ''/​var/​cache/​zoneminder''​ 
 +  * <​del>​Configure PPA for ZoneMinder: [[https://​launchpad.net/​~iconnor/​+archive/​ubuntu/​zoneminder]]</​del> ​ \\ // Not up-to-date // <​code>​sudo add-apt-repository ppa:​iconnor/​zoneminder 
 +sudo apt-get update</​code>​ 
 +  * Instead, get this package: ''​wget --no-check-certificate https://​173.163.189.225/​zoneminder-1.30.4-bionic-amd64.deb''​ 
 +  * Install MariaDB: ''​apt install mariadb-server''​ 
 +    * Add to ''​[mysqld]''​ section in /​etc/​mysql/​mariadb.conf.d:​ ''​sql_mode = NO_ENGINE_SUBSTITUTION''​ 
 +  * Install Apache: ''​apt install apache2''​ 
 +  * Install Zoneminder: ​ ''​apt install ./​zoneminder-1.30.4-bionic-amd64.deb''​ 
 +  * Enable Zoneminder service to start at boot:  ''​systemctl enable zoneminder.service''​ 
 +  * Add ''​www-data''​ to the sudo group (to enable use of local video devices): ''​adduser www-data video''​ 
 +  * Start Zoneminder: ''​systemctl start zoneminder.service''​ 
 +  * Enable CGI and Zoneminder configuration in Apache:<​code>​a2enmod cgi 
 +a2enmod rewrite 
 +a2enconf zoneminder</​code>​ 
 +  * Add timezone to PHP:  ''​vim /​etc/​php/​7.2/​apache2/​php.ini''​ \\ Find [Date] and add timezone spec entry 
 +  * Change permissions in /​usr/​share/​zoneminder/: ​ ''​chown -R www-data:​www-data /​usr/​share/​zoneminder/''​ 
 +  * Restart Apache: ''​service apache2 restart''​ 
 +  * **IMPORTANT FINAL STEP:** 
 +    * Open Zoneminder in a web browser (http://​server-ip/​zm) 
 +    * Click on Options - Paths 
 +    * Change ''​PATH_ZMS''​ to ''/​zm/​cgi-bin/​nph-zms''​
  
 +====== Resources ======
 [[:​tech:​zoneminder:​cameras:​start|Camera Information]] [[:​tech:​zoneminder:​cameras:​start|Camera Information]]
  
-===== Troubleshooting =====+====== Troubleshooting =====
 + 
 +==== Auto-Upgrade Failure on Ubuntu ==== 
 +Post-install script is at ''/​var/​lib/​dpkg/​info/​zoneminder.postinst''​
  
 ==== Video Playback in Browser not working ==== ==== Video Playback in Browser not working ====
 ZoneMinder uses a CGI program called ''​nph-zms''​ as a vehicle for the browser to hook up to and update the video stream(s). ​ If a message like this appears in the apache log: ZoneMinder uses a CGI program called ''​nph-zms''​ as a vehicle for the browser to hook up to and update the video stream(s). ​ If a message like this appears in the apache log:
 +<WRAP prewrap>
 <​code>​ <​code>​
 [Thu Aug 04 02:​03:​02.420973 2016] [:error] [pid 12461:tid 139862547818240] [client 192.168.0.220:​53274] ERR [socket_sendto( /​home/​zm/​tmp/​zms-296737s.sock ) failed: No such file or directory], referer: http://​192.168.0.11:​8080/​zm/​index.php?​view=watch&​mid=1 [Thu Aug 04 02:​03:​02.420973 2016] [:error] [pid 12461:tid 139862547818240] [client 192.168.0.220:​53274] ERR [socket_sendto( /​home/​zm/​tmp/​zms-296737s.sock ) failed: No such file or directory], referer: http://​192.168.0.11:​8080/​zm/​index.php?​view=watch&​mid=1
 </​code>​ </​code>​
 +</​WRAP>​
 ... this probably means that the ZoneMinder CGI program(s) can't be executed, due to either apache config, actual file locations, etc ... ... this probably means that the ZoneMinder CGI program(s) can't be executed, due to either apache config, actual file locations, etc ...
   * Make sure a CGI module is enabled for apache   * Make sure a CGI module is enabled for apache
   * Make sure the apache config addresses directory setup for ZoneMinder'​s CGI programs/​location   * Make sure the apache config addresses directory setup for ZoneMinder'​s CGI programs/​location
   * Make sure the ZoneMinder CGI location is accessible inside the web site's space   * Make sure the ZoneMinder CGI location is accessible inside the web site's space
 +  * Make sure the ZoneMinder settings, under the "​Paths"​ section, have the right path to the ''​nph-zms''​ program
  
 ==== Montage View Issues ==== ==== Montage View Issues ====
tech/zoneminder/start.1470324924.txt.gz · Last modified: 2016/08/04 10:35 by rk4n3