Viewing Zoneminder on the web

Forum for questions and support relating to the 1.28.x releases only.
stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Viewing Zoneminder on the web

Post by stevewrightnz1 » Sat Nov 28, 2015 2:56 am

I know that this is probably not the right place to ask this but I ham having a little trouble seeing my ZoneMinder installation from the web.

My network looks like this

1. A Windows 7 Home Machine for day to day stuff.
2. A Raspberry Pi 2 running a LAMP stack and hosting my web pages
3. An Ubuntu i7 machine running a LAMP stack and ZoneMinder.

When I was running ZM on the Pi as well as the web pages I had no trouble logging in remotely. Just tagged /zm onto the web address.

Can someone please point me in the right direction to link the Pi and the Ubuntu box. I suspect that it has something to do with apache and virtual hosts but am at a loss to figure it out. I've discovered that the simple solution of using Symlinks will not work across machines!!

Steve

bbunge
Posts: 2727
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Viewing Zoneminder on the web

Post by bbunge » Sat Nov 28, 2015 2:41 pm

Create a web page on your pi:

<html>

<meta http-equiv="refresh" content="300">

<body>

<h1>site name</h1>

<p>Cameras</p>


<img src="http://ip-of-zm-server/cgi-bin/nph-zms? ... &pass=user">


</body>

</html>

on your ZM machine create an unprivileged user and password user user.

bbunge
Posts: 2727
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Viewing Zoneminder on the web

Post by bbunge » Sat Nov 28, 2015 2:52 pm

Ah.. sorry but this will not work for you unless you port forward your ZM server through the firewall. Which, might be your best bet.

bbunge
Posts: 2727
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Viewing Zoneminder on the web

Post by bbunge » Sat Nov 28, 2015 3:45 pm

Here is something you may want to look into:

https://www.digitalocean.com/community/ ... -extension

rockedge
Posts: 1156
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Viewing Zoneminder on the web

Post by rockedge » Sat Nov 28, 2015 3:50 pm

How do you want the URL to look to reach the zm install? Something like http://192.168.1.4/zm and using the sub-net IPs there is no need to port forward the router. If you want to reach ZM with a URL like http://this.domain.net/zm and maybe to reach your web pages like http://someother.domain.net/my-web-pages.php split between 2 machines you can use a REVERSE PROXY. I have the incoming request go through Hiawatha or Apache which is set up to distribute the request to the proper machine.That way you can use VirtualHost configs to spread the requests to the right machine. PORT Forwarding would be required in this case.

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Sun Dec 20, 2015 9:55 am

Hi Guys
Still having issues

<img src="http://ip-of-zm-server/cgi-bin/nph-zms? ... &pass=user">

gives the following error:

"You don't have permission to access /zm/cgi-bin/nph-zms on this server." in the web page.

I'm fairly sure that this has something to do with the permissions to run the thing that produces video which will also likely fix my issue with not being able to see any video too - and yes the PATH_ZMS is set to: /zm/cgi-bin/nph-zms.

Any one have any ideas?

Steve

User avatar
asker
Posts: 1458
Joined: Sun Mar 01, 2015 12:12 pm

Re: Viewing Zoneminder on the web

Post by asker » Sun Dec 20, 2015 11:42 am

The URL you posted is incorrect - it was missing /zm - not sure if it was a typo

<img src="http://ip-of-zm-server/zm/cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=100&maxfps=5&buffer=1000&user=user&pass=user">
stevewrightnz1 wrote:Hi Guys
Still having issues

<img src="http://ip-of-zm-server/cgi-bin/nph-zms? ... &pass=user">

gives the following error:

"You don't have permission to access /zm/cgi-bin/nph-zms on this server." in the web page.

I'm fairly sure that this has something to do with the permissions to run the thing that produces video which will also likely fix my issue with not being able to see any video too - and yes the PATH_ZMS is set to: /zm/cgi-bin/nph-zms.

Any one have any ideas?

Steve
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Sun Dec 20, 2015 6:23 pm

Yep - typo copied from above but the actual one is:

<img src="http://[ip.address}/zm/cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=100&maxfps=5&buffer=1000&user=zmuser&pass=zmpass">

I tried zmuser/zmpass as that combination seems to be what is required my mysql so assumed that it should work elsewhere.

I've a funny feeling that /zm/cgi-bin/nph-zms is either not where it's supposed to be or that there is something wrong with the permissions for accessing it. When I right click the image placeholder and View image on the above i get "You don't have permission to access /zm/cgi-bin/nph-zms on this server."

Steve

User avatar
asker
Posts: 1458
Joined: Sun Mar 01, 2015 12:12 pm

Re: Viewing Zoneminder on the web

Post by asker » Sun Dec 20, 2015 7:35 pm

A simple way to find out is to log into ZM and play a live stream (via the web console). When you see it working, right click and do a view source - that will show you the HTML code - compare that code with what you are trying to do

zmuser/zmpass is not the right login creds - you need to put in the ZM portal login/pass
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Mon Dec 21, 2015 9:31 am

Right - tried changing the login creds to the one I get in to ZM with - no luck. Note I have not managed to get the streaming working at all even though the path is set to PATH_ZMS is set to: /zm/cgi-bin/nph-zms. everything else seems to work OK though I do get errors when I try to look at the camera feed - sample below.

I think there is a permission thing going on somewhere with access to /zm/cgi-bin/nph-zms which means I can't run it???

Steve


2015-12-21 22:05:33.861188 web_js 16219 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-830232s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-12-21 22:05:33.768080 web_php 16219 ERR socket_sendto( /var/run/zm/zms-830232s.sock ) failed: No such file or directory includes/functions.php 2347
2015-12-21 22:05:30.753823 web_js 16219 ERR getStreamCmdResponse stream error: socket_bind( /var/run/zm/zms-830232w.sock ) failed: Address already in use - checkStreamForErrors() ?view=watch
2015-12-21 22:05:30.658674 web_php 16219 ERR socket_bind( /var/run/zm/zms-830232w.sock ) failed: Address already in use includes/functions.php 2347
2015-12-21 22:05:30.627642 web_php 16218 ERR socket_sendto( /var/run/zm/zms-830232s.sock ) failed: No such file or directory includes/functions.php 2347
2015-12-21 22:05:27.614025 web_js 16218 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-830232s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-12-21 22:05:27.534481 web_php 16218 ERR socket_sendto( /var/run/zm/zms-830232s.sock ) failed: No such file or directory includes/functions.php 2347
2015-12-21 21:08:11.032220 zmdc 10786 ERR 'zmupdate.pl -c' exited abnormally, exit status 9 zmdc.pl
2015-12-21 07:12:47.841331 web_php 10637 ERR socket_sendto( /var/run/zm/zms-914460s.sock ) failed: No such file or directory includes/functions.php 2347
2015-12-21 07:12:44.832279 web_js 10637 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-914460s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2015-12-21 07:12:44.751670 web_php 10637 ERR socket_sendto( /var/run/zm/zms-914460s.sock ) failed: No such file or directory includes/functions.php 2347

User avatar
asker
Posts: 1458
Joined: Sun Mar 01, 2015 12:12 pm

Re: Viewing Zoneminder on the web

Post by asker » Mon Dec 21, 2015 1:56 pm

Ah, if your regular streaming is not working, neither will direct linking to zms. The error you posted above typically reflects a misconfigured apache configuration (except for the address in use, which may be an after-effect of misconfiguration, not sure)

Let's start here:

1) Please post the exact contents of the following files (I assume you are on ubuntu?)

1) /etc/zm/zm.conf (you can mask your password)
2) /etc/apache2/apache.conf
3) /etc/apache2/sites-enabled --> the contents of the conf files(s) thee
4) Please paste a screenshot of your PATH_ZMS setting (please don't type it out)

thx
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Mon Dec 21, 2015 6:42 pm

OK, A bit bigger than I expected

/etc/zm/zm.conf:
# ==========================================================================
#
# ZoneMinder Base Configuration, $Date$, $Revision$
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Path to installed data directory, used mostly for finding DB upgrade scripts
ZM_PATH_DATA=/usr/share/zoneminder

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/lib/x86_64-linux-gnu

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc/zm

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder/www

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/lib/zoneminder/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data

# ZoneMinder database type: so far only mysql is supported
ZM_DB_TYPE=mysql

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=*****

# ZoneMinder database password
ZM_DB_PASS=*****

# Host of this machine
ZM_SERVER_HOST=
=================================================================================================
/etc/apache2/apache2.conf :

# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `-- ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
# together by including all remaining configuration files when starting up the
# web server.
#
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations,
# respectively.
#
# They are activated by symlinking available configuration files from their
# respective *-available/ counterparts. These should be managed by using our
# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
# their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
# the default configuration, apache2 needs to be started/stopped with
# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will n$
# work with the default configuration.
# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" $
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combin$
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
ServerName localhost
ServerAdmin stevewrightnz@hotmail.com
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
=================================================================================================

/etc/apache2/sites-enabled/zm.stevewright.nz.conf

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port t$
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
ServerName zm.stevewright.nz

#DocumentRoot /var/www/html
Redirect "/" "https://zm.stevewright.nz/"

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>


<VirtualHost *:443>
ServerName zm.stevewright.nz
#ServerAlias zm.stevewright.nz
#DocumentRoot /var/www/html/
DocumentRoot /usr/share/zoneminder/www
<Directory />
Options FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from All
</Directory>

<Directory /usr/share/zoneminder/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

SSLEngine on
#Letsencrypt certificates
SSLCertificateFile /etc/letsencrypt/live/zm.stevewright.nz/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/zm.stevewright.nz/privkey.p$
SSLCertificateChainFile /etc/letsencrypt/live/zm.stevewright.nz/fullcha$

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
HostNameLookups double
</VirtualHost>

=================================================================================================
ZM-Path.png
zm paths as requested
ZM-Path.png (57.2 KiB) Viewed 17088 times
=================================================================================================

User avatar
asker
Posts: 1458
Joined: Sun Mar 01, 2015 12:12 pm

Re: Viewing Zoneminder on the web

Post by asker » Mon Dec 21, 2015 7:06 pm

I should have asked this earlier - when you try and access ZM, what error do you see in
/var/log/apache2/error_log ?
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Tue Dec 22, 2015 3:58 am

Here's some of yesterdays. "client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms" seems to be a recurring theme.

Steve
=======================================================================================

Mon Dec 21 22:40:07.926207 2015] [access_compat:error] [pid 16591] [client 192.168.20.104:55490] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 22:40:11.373328 2015] [:error] [pid 16591] [client 192.168.20.104:55490] ERR [Insufficient permissions to view log entries], referer: https://sub.domain.com/index.php?view=log
[Mon Dec 21 22:40:59.179847 2015] [access_compat:error] [pid 16591] [client 192.168.20.104:55497] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 22:41:04.213223 2015] [access_compat:error] [pid 16589] [client 192.168.20.104:55499] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 22:47:05.305407 2015] [access_compat:error] [pid 16600] [client 192.168.20.104:55541] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:05.501325 2015] [access_compat:error] [pid 16600] [client 192.168.20.104:55541] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:08.715642 2015] [:error] [pid 16600] [client 192.168.20.104:55541] ERR [socket_sendto( /var/run/zm/zms-311259s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=3
Error, insufficient privileges for requested action
[Mon Dec 21 22:47:09.050371 2015] [:error] [pid 16600] [client 192.168.20.104:55541] PHP Notice: Undefined offset: 3 in /usr/share/zoneminder/www/skins/classic/views/settings.php on line 30, referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:09.050398 2015] [:error] [pid 16600] [client 192.168.20.104:55541] PHP Notice: Undefined offset: 2 in /usr/share/zoneminder/www/skins/classic/views/settings.php on line 30, referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:09.050406 2015] [:error] [pid 16600] [client 192.168.20.104:55541] PHP Notice: Undefined offset: 1 in /usr/share/zoneminder/www/skins/classic/views/settings.php on line 30, referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:11.571829 2015] [:error] [pid 16680] [client 192.168.20.104:55543] ERR [socket_bind( /var/run/zm/zms-311259w.sock ) failed: Address already in use], referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:11.847098 2015] [:error] [pid 16600] [client 192.168.20.104:55541] ERR [socket_sendto( /var/run/zm/zms-311259s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:47:14.644787 2015] [:error] [pid 16680] [client 192.168.20.104:55543] ERR [socket_sendto( /var/run/zm/zms-311259s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=3
[Mon Dec 21 22:49:03.685838 2015] [:error] [pid 16589] [client 192.168.20.104:55549] INF [User "web" logged out], referer: https://sub.domain.com/index.php?view=logout
[Mon Dec 21 22:49:18.163832 2015] [:error] [pid 16593] [client 192.168.20.104:55556] INF [Login successful for user "Steve"], referer: https://sub.domain.com/index.php
[Mon Dec 21 22:49:18.163913 2015] [:error] [pid 16593] [client 192.168.20.104:55556] PHP Notice: Undefined index: object in /usr/share/zoneminder/www/includes/actions.php on line 769, referer: https://sub.domain.com/index.php
[Mon Dec 21 22:49:26.455224 2015] [access_compat:error] [pid 16678] [client 192.168.20.104:55557] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 22:49:26.756653 2015] [access_compat:error] [pid 16678] [client 192.168.20.104:55557] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 22:49:29.451506 2015] [:error] [pid 16678] [client 192.168.20.104:55557] ERR [socket_sendto( /var/run/zm/zms-146425s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 22:51:20.882999 2015] [mpm_prefork:notice] [pid 16585] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 22:51:21.996323 2015] [mpm_prefork:notice] [pid 17262] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 22:51:21.996358 2015] [core:notice] [pid 17262] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 22:52:34.608645 2015] [mpm_prefork:notice] [pid 17262] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 22:52:35.731689 2015] [mpm_prefork:notice] [pid 17354] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 22:52:35.731721 2015] [core:notice] [pid 17354] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 22:52:55.175249 2015] [mpm_prefork:notice] [pid 17354] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 22:52:56.282278 2015] [mpm_prefork:notice] [pid 17407] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 22:52:56.282316 2015] [core:notice] [pid 17407] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 23:01:43.577471 2015] [mpm_prefork:notice] [pid 17407] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 23:01:44.690698 2015] [mpm_prefork:notice] [pid 20479] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 23:01:44.690752 2015] [core:notice] [pid 20479] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 23:05:29.238292 2015] [mpm_prefork:notice] [pid 20479] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 23:05:30.354797 2015] [mpm_prefork:notice] [pid 23176] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 23:05:30.354849 2015] [core:notice] [pid 23176] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 23:08:15.195266 2015] [mpm_prefork:notice] [pid 23176] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 23:08:16.304652 2015] [mpm_prefork:notice] [pid 23282] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 23:08:16.304701 2015] [core:notice] [pid 23282] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 23:08:40.919922 2015] [access_compat:error] [pid 23286] [client 192.168.20.104:55811] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:08:41.126292 2015] [access_compat:error] [pid 23286] [client 192.168.20.104:55811] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:08:43.619360 2015] [:error] [pid 23286] [client 192.168.20.104:55811] ERR [socket_sendto( /var/run/zm/zms-595197s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:09:49.734243 2015] [access_compat:error] [pid 23513] [client 192.168.20.104:55831] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:14:50.150749 2015] [access_compat:error] [pid 23513] [client 192.168.20.104:55871] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:14:55.297084 2015] [access_compat:error] [pid 23309] [client 192.168.20.104:55877] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:14:56.631199 2015] [access_compat:error] [pid 23309] [client 192.168.20.104:55877] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:15:05.510889 2015] [access_compat:error] [pid 23287] [client 192.168.20.104:55888] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:15:10.085838 2015] [access_compat:error] [pid 23287] [client 192.168.20.104:55888] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms
[Mon Dec 21 23:16:35.957385 2015] [:error] [pid 23288] [client 192.168.20.104:55891] PHP Notice: Undefined variable: Server in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 46, referer: https://sub.domain.com/index.php
[Mon Dec 21 23:16:52.744183 2015] [:error] [pid 23289] [client 192.168.20.104:55892] PHP Notice: Undefined index: object in /usr/share/zoneminder/www/includes/actions.php on line 769, referer: https://sub.domain.com/index.php?view=monitor&mid=1
[Mon Dec 21 23:16:58.088210 2015] [access_compat:error] [pid 23315] [client 192.168.20.104:55894] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:16:58.288257 2015] [access_compat:error] [pid 23315] [client 192.168.20.104:55894] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:17:00.719324 2015] [:error] [pid 23315] [client 192.168.20.104:55894] ERR [socket_sendto( /var/run/zm/zms-627737s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:20:53.872673 2015] [access_compat:error] [pid 23286] [client 192.168.20.104:55922] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:20:54.103067 2015] [access_compat:error] [pid 23286] [client 192.168.20.104:55922] AH01797: client denied by server configuration: /usr/lib/zoneminder/cgi-bin/nph-zms, referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:20:56.574353 2015] [:error] [pid 23286] [client 192.168.20.104:55922] ERR [socket_sendto( /var/run/zm/zms-127852s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:20:59.663956 2015] [:error] [pid 23286] [client 192.168.20.104:55922] ERR [socket_sendto( /var/run/zm/zms-127852s.sock ) failed: No such file or directory], referer: https://sub.domain.com/index.php?view=watch&mid=1
[Mon Dec 21 23:37:14.711374 2015] [mpm_prefork:notice] [pid 23282] AH00169: caught SIGTERM, shutting down
[Mon Dec 21 23:37:15.823194 2015] [mpm_prefork:notice] [pid 24430] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f configured -- resuming normal operations
[Mon Dec 21 23:37:15.823243 2015] [core:notice] [pid 24430] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 21 23:39:03.439603 2015] [:error] [pid 24456] [client 192.168.20.104:56109] INF [User "Steve" logged out], referer: https://sub.domain.com/index.php?view=logout
[Mon Dec 21 23:39:03.439764 2015] [:error] [pid 24456] [client 192.168.20.104:56109] PHP Notice: Undefined index: object in /usr/share/zoneminder/www/includes/actions.php on line 769, referer: https://sub.domain.com/index.php?view=logout
[Tue Dec 22 07:22:01.194672 2015] [:error] [pid 24436] [client 192.168.20.104:55845] INF [Login successful for user "Steve"], referer: https://sub.domain.com/
[Tue Dec 22 07:22:01.194790 2015] [:error] [pid 24436] [client 192.168.20.104:55845] PHP Notice: Undefined index: object in /usr/share/zoneminder/www/includes/actions.php on line 769, referer: https://sub.domain.com/

stevewrightnz1
Posts: 49
Joined: Mon Jun 08, 2015 9:57 am
Location: New Zealand
Contact:

Re: Viewing Zoneminder on the web

Post by stevewrightnz1 » Thu Dec 24, 2015 2:59 am

Ok, Managed to get it all going finally - had to comment out the / directory like so in Apache2
#<Directory />
#Options FollowSymLinks
#AllowOverride None
#Order Deny,Allow
#Deny from All
#</Directory>

Now need to try and sort out the correct directory statements so that I can reinstate it -or the corrected version of itm

Also had to do this for Apache 2.4.7
#Order allow,deny
#Allow from all
Require all granted

Thanks for all the help
Steve

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests