Yesterday I installed Zoneminder on my office computer, following this : https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Ubuntu 18.04
Zoneminder 1.32.3 from iconnor ppa
Testing stream with an USB - local Cam, appeared the socket error, due to a wrong cgi path in my zoneminder.conf
After many tries, I solved the issue by editing my nginx conf for Zoneminder:Socket /var/run/zm/zms-010422s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information.
Code: Select all
nano /etc/nginx/zoneminder.conf
Code: Select all
location /cgi-bin {
auth_basic off;
alias /usr/lib/zoneminder/cgi-bin;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
to
Code: Select all
location /zm/cgi-bin {
auth_basic off;
alias /usr/lib/zoneminder/cgi-bin;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
Code: Select all
service nginx restart
systemctl restart zoneminder