Comment 4 for bug 1159361

Revision history for this message
Alain Danger (alain-danger) wrote :

Using zoneminder 1.26.5 under ubuntu 14.04 AMD64

The problem seems to be the socket is not created under /tmp/zm.

Tested several solutions here and there, regarding cgi-bin directories and "ScriptAlias" but none worked.

Here's the error :

May 3 23:12:37 mx2 zmc_dvideo0[2006]: INF [Monitor-1: 13000 - Capturing at 25.00 fps]
May 3 23:12:39 mx2 web_php[1583]: ERR [socket_sendto( /tmp/zm/zms-425345s.sock ) failed: No such file or directory]
May 3 23:12:39 mx2 web_php[1583]: ERR [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-425345s.sock ) failed: No such file or directory - checkStreamForErrors()]
May 3 23:12:52 mx2 web_php[1584]: ERR [socket_sendto( /tmp/zm/zms-425345s.sock ) failed: No such file or directory]
May 3 23:12:52 mx2 web_php[1584]: ERR [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-425345s.sock ) failed: No such file or directory - checkStreamForErrors()]

My /etc/zm/apache.conf

Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
  php_flag register_globals off
  php_value short_open_tag 1
  Options Indexes FollowSymLinks
  AllowOverride All
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
</Directory>
ScriptAlias /cgi-bin /usr/lib/cgi-bin
<Directory "/usr/lib/cgi-bin">
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        AllowOverride All
        # The code unfortunately uses short tags in many places
        php_value short_open_tag 1
</Directory>