Darius121 wrote:OK, let me know if you want me to generate some debugging or log information for comparison.
1. Do you have analog/USB cameras ? I have no luck compiling support of them - cmake doesn't detect V4L. However, I didn't investigated the matter.
2. Can you check my port under nginx?
You need to install ZM, nginx, php-fpm
Config for nginx I use
/usr/local/etc/nginx/nginx.conf
Code: Select all
user www;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_tokens off;
gzip on;
gzip_comp_level 4;
gzip_min_length 1100;
gzip_buffers 64 8k;
gzip_http_version 1.1;
gzip_proxied any;
gzip_types text/plain application/xml application/x-javascript text/css;
client_max_body_size 10m;
include /usr/local/etc/nginx/sites/*;
}
Create sites folder with ZM config
Code: Select all
server {
listen 80;
server_name zm.local
keepalive_timeout 70;
root /usr/local/www/zoneminder;
index index.php index.html index.htm;
# access_log /home/www/zoneminder/logs/access.log main;
# error_log /home/www/zoneminder/logs/error.log;
proxy_buffering off;
location = /cgi-bin/nph-zms {
proxy_buffering off;
root /usr/local/www/zonemindeR;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/www/zoneminder/cgi-bin/nph-zms;
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
}
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
proxy_buffering off;
fastcgi_param DOCUMENT_ROOT /usr/local/www/zoneminder;
fastcgi_param SCRIPT_FILENAME /usr/local/www/zoneminder$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED /usr/local/www/zoneminder$fastcgi_script_name;
include fastcgi_params;
}
}
Edit
/usr/local/etc/php-fpm.conf to use unix sockets.
Code: Select all
; Note: This value is mandatory.
;listen = 127.0.0.1:9000
listen = /tmp/php-fpm.sock
; Set listen(2) backlog.
; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 65535
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
listen.owner = www
listen.group = www
listen.mode = 0660
Enable stuff in
/etc/rc.conf and start daemons
Code: Select all
# NGIX
nginx_enable="YES"
fcgiwrap_enable="YES"
fcgiwrap_user="www"
# PHP
php_fpm_enable="YES"
3. Signal 4 should be confirmed. Make some events and try to play it. zms should crash.
4. Also, I have incorrect titles in monitor view -
http://i.imgur.com/pUUOYkE.png
5. php notices in database.
select User from Monitors; That's due to E_ALL error reporting used in index.php
6. One of .pl's throwing error, but this one is harmless and, obviously, trivial.
Code: Select all
'zmtelemetry.pl' exited abnormally, exit status 9