Environment:
-ArchLinux, ZM 1.29.0, apache 2.4.23, php7.0.3.
-ZM 1.29.0 is source build (build params - see below)
-apache has non standard html doc root ( it is /var/http)
-ZM install script installs:
PHP files in /var/http/zm/www
zms in /var/http/zm/cgi-bin
Situation:
All ZM functions are working except streaming.
When user asks for i.e. event streaming, apache access log says:
Code: Select all
[05/Oct/2016:15:42:57 +0200] "GET /zm/cgi-bin/zms?source=event&mode=jpeg&event=6&frame=1&scale=100&rate=100&maxfps=5&replay=single&connkey=295934&rand=1475674976 HTTP/1.1" 200 943696
apache_eror.log - no any errors to report.
PHP erros log says:
Code: Select all
[05-Oct-2016 15:43:00 Europe/Warsaw] ERR [socket_sendto( /var/zm/zms-295934s.sock ) failed: No such file or directory]
In ZM console options/path I have ZM_PATH_ZMS set to /zm/cgi-bin/zms
My /etc/zm.conf has following:
Code: Select all
....
ZM_PATH_WEB=/var/http/zm/www
ZM_PATH_CGI=/var/http/zm/cgi-bin
.....
Code: Select all
Alias /zm "/var/http/zm"
<Directory "/var/http/zm">
Options -Indexes +MultiViews +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ScriptAlias /cgi-bin "/var/http/zm/cgi-bin"
<Directory "/var/http/zm/cgi-bin/">
AllowOverride All
Options +ExecCGI +FollowSymLinks
Require all granted
php_value short_open_tag 1
</Directory>
Code: Select all
#needed by mythzmserver to work OK
echo "ZM_VERSION=$pkgver" >> zm.conf.in
#needed to stop PHP warnings about already defined ZM_VERSION variable
sed -i 's|define( \"ZM_VERSION|\/\/ define( \"ZM_VERSION|' ./web/includes/config.php.in
#needed as in Archlinux having socket in tempfs type dir causes ZM console is not correctly reflecting ZM status
sed -i 's|/var/run/zm|/var/zm|' ./configure.ac
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-webuser=http \
--with-webgroup=http \
--with-mysql=/usr \
--with-ffmpeg=/usr/include \
--with-webdir=/var/http/zm/www \
--with-cgidir=/var/http/zm/cgi-bin \
--enable-mmap=yes \
LIBS="-lrt"
make || return 1
Maybe somebody has any clue....
BTW: I also tried ZM 1.30. Issue is exactly the same....